version.h: bump version to mruby 4.0.0

update MRUBY_RUBY_VERSION to "4.0", MRUBY_RELEASE_MAJOR to 4,
MRUBY_RELEASE_MINOR to 0. update README.md references accordingly.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2026-03-03 11:10:18 +09:00
parent a3861dcb53
commit 736ec46ba0
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -32,8 +32,8 @@
## What is mruby
mruby is the lightweight implementation of the Ruby language complying to (part
of) the [ISO standard][ISO-standard] with more recent features provided by Ruby 3.x.
Also, its syntax is Ruby 3.x compatible except for pattern matching.
of) the [ISO standard][ISO-standard] with more recent features provided by Ruby 4.x.
Also, its syntax is Ruby 4.x compatible.
You can link and embed mruby within your application. The "mruby" interpreter
program and the interactive "mirb" shell are provided as examples. You can also
@@ -47,7 +47,7 @@ of the Ministry of Economy, Trade and Industry of Japan.
## How to get mruby
To get mruby, you can download the stable version 3.4.0 from the official mruby
To get mruby, you can download the stable version 4.0.0 from the official mruby
GitHub repository or clone the trunk of the mruby source tree with the "git
clone" command. You can also install and compile mruby using [ruby-install](https://github.com/postmodern/ruby-install), [ruby-build](https://github.com/rbenv/ruby-build), [rvm](https://github.com/rvm/rvm), [conda](https://anaconda.org/channels/conda-forge/packages/mruby/overview) or [Homebrew](https://formulae.brew.sh/formula/mruby).
+3 -3
View File
@@ -27,7 +27,7 @@ MRB_BEGIN_DECL
/*
* The version of Ruby used by mruby.
*/
#define MRUBY_RUBY_VERSION "3.4"
#define MRUBY_RUBY_VERSION "4.0"
/*
* Ruby engine.
@@ -37,12 +37,12 @@ MRB_BEGIN_DECL
/*
* Major release version number.
*/
#define MRUBY_RELEASE_MAJOR 3
#define MRUBY_RELEASE_MAJOR 4
/*
* Minor release version number.
*/
#define MRUBY_RELEASE_MINOR 4
#define MRUBY_RELEASE_MINOR 0
/*
* Tiny release version number.