Commit graph

2,652 commits

Author SHA1 Message Date
Benoit Daloze
17c061e067 ruby-build 20260503 v20260503 2026-05-03 16:14:36 +02:00
Benoit Daloze
b0a21cdfce
Merge pull request #2621 from amatsuda/fix-resolve-version-ruby-prefix
Fix definition lookup for ruby-prefixed names like `ruby-dev`
2026-05-03 16:13:58 +02:00
Akira Matsuda
e98dffb562
Fix definition lookup for ruby-prefixed names like ruby-dev
`resolve_version` strips the leading `ruby-` from its argument and
then only looks for the stripped form in the definitions directory.
For canonical definitions whose filename retains the `ruby-` prefix
(currently `ruby-dev`) the exact-match step searches for `dev`,
which does not exist, and the grep fallback's `^dev[-.]` anchor
also misses the `ruby-dev` line in the definitions list. Result:
`ruby-build ruby-dev` reports "definition not found" even though
the file is shipped.

Try the original (unstripped) argument first in the exact-match
loop, then fall back to the stripped form. Numeric-version inputs
(`ruby-3.4.9`, `3.4`, `ruby-3.4`) and other implementations
(`mruby-dev`, `jruby-dev`) are unaffected because their existing
code paths still match.

Regression introduced in #2610.
2026-05-03 22:16:26 +09:00
Mislav Marohnić
84bcde9fde
ruby-build 20260501 v20260501 2026-05-01 12:26:22 +02:00
Jean Boussier
92d57fdbb6
Support building with version prefix (#2610)
* Support building with version prefix

Commonly in CI pipelines and other scripts, users may
want to install the latest from a specific series, e.g.
`3.4` or `jruby-10.0`.

```bash
$ bin/ruby-build 3.4 /tmp/3.4
...
Downloading ruby-3.4.9.tar.gz...

$ bin/ruby-build 4.0 /tmp/4.0
...
Downloading ruby-4.0.2.tar.gz...
```

Also support `--resolve`:

```bash
$ bin/ruby-build --resolve 3.4
3.4.9
```

* Improve version name resolution from prefix

- `ruby-build --resolve` now prints canonical definition names, always
  stripping the "ruby-" prefix from output (e.g. "ruby-3.4" => "3.4.9").

- Fix sorting versions so that "jruby" correctly resolves to "jruby-10.x"
  instead of to "jruby-9.x".

- Support bare "ruby" argument to select the latest CRuby version, since
  that was already possible for "jruby", "mruby", et al.

- Case-normalize version inputs so that arguments like "JRuby" or
  "TruffleRuby" resolve to their lowercase definitions.

- Simplify definition file lookup: all code paths now go through
  resolve_version.

- Restore the named-pipe + `--dir` check to correctly abort early.

- Update README and man page: bump Ruby version numbers in examples, add
  Ruby implementations section, document the `--resolve` option.

* Clarify what ruby-build considers to be "latest" Ruby version

* Print usage error message if `--resolve` wasn't passed an argument

---------

Co-authored-by: Mislav Marohnić <git@mislav.net>
2026-05-01 12:25:11 +02:00
Mislav Marohnić
9061a957e7
Merge pull request #2620 from rbenv/mruby-4.0.0
Add mruby-4.0.0
2026-04-29 17:26:28 +02:00
Mislav Marohnić
20abbb0618
Add mruby-4.0.0 2026-04-29 17:18:23 +02:00
Benoit Daloze
f723aa7bf0 ruby-build 20260426 v20260426 2026-04-26 23:37:45 +02:00
Benoit Daloze
ffca2ee5a9
Merge pull request #2619 from eregon/truffleruby-34.0.1
Add TruffleRuby and TruffleRuby GraalVM 34.0.1
2026-04-26 23:37:34 +02:00
Benoit Daloze
9e2a72a666 Add TruffleRuby and TruffleRuby GraalVM 34.0.1 2026-04-26 23:32:02 +02:00
Hiroshi SHIBATA
1c4ddb5320
ruby-build 20260422 v20260422 2026-04-22 10:15:49 +09:00
Mislav Marohnić
82be834195
Merge pull request #2576 from mikelolasagasti/droppingOfCertPemFile
Support RHEL 9+/Fedora 34+ CA bundle path
2026-04-21 20:21:57 +02:00
Mislav Marohnić
2b0f711360
Merge pull request #2614 from hasumikin/picoruby-3.4.2
Add PicoRuby 3.4.2 with new r2p2 executable
2026-04-21 20:20:27 +02:00
Charles Oliver Nutter
4c5ef3e9ec
Merge pull request #2617 from headius/jruby-10.1.0.0
Add JRuby 10.1.0.0
2026-04-21 23:09:45 +09:00
Charles Oliver Nutter
c11e986163 Add JRuby 10.1.0.0 2026-04-21 22:45:19 +09:00
GitHub Actions Bot
68a0d76e14 Added 4.0.3 with OpenSSL 3.0.20 2026-04-21 09:03:17 +00:00
Benoit Daloze
90b52b26b7 ruby-build 20260412 v20260412 2026-04-12 14:18:21 +02:00
Benoit Daloze
759428c8a6
Merge pull request #2616 from eregon/truffleruby-34.0.0
Add TruffleRuby and TruffleRuby GraalVM 34.0.0
2026-04-12 14:18:12 +02:00
Benoit Daloze
9c5f2601be Add TruffleRuby and TruffleRuby GraalVM 34.0.0 2026-04-12 14:10:22 +02:00
Benoit Daloze
79f3ddb562 Darwin-x86_64 is no longer supported on TruffleRuby
* See https://github.com/truffleruby/truffleruby/issues/4011
2026-04-12 14:09:19 +02:00
HASUMI Hitoshi
d27dd19c24 Add PicoRuby 3.4.2 with new r2p2 executable
This commit adds PicoRuby 3.4.2 and introduces a new artifacts: r2p2.

Version numbering context:
PicoRuby's version numbers are aligned with mruby's VM code specification compatibility.
Version 3.4 indicates compatibility with mruby 3.4 VM code format, or RITE0300.
Version 3.4.2 indicates minor bug fix in PicoRuby.

Build artifact changes:
Starting from version 3.4.2, PicoRuby has replaced the irb executable with r2p2 executable(POSIX version of PicoRuby shell system including IRB).
The new build produces three executables:
- picoruby: main Ruby interpreter
- picorbc: Ruby bytecode compiler
- r2p2: interactive REPL (replaces picoirb)

Implementation:
- Added conditional symlink logic in `build_package_picoruby()`: symlinks picoirb as irb if present
  - If there's no picoirb in artifacts, symlink for irb is not created
- Added picoruby-3.4.2 definition file
2026-04-10 10:53:36 +09:00
Charles Oliver Nutter
63d8d38219
Merge pull request #2615 from headius/jruby-10.0.5.0
Add JRuby 10.0.5.0
2026-04-06 13:31:26 -05:00
Charles Oliver Nutter
0bdc2c78d0 Add JRuby 10.0.5.0 2026-04-06 13:28:41 -05:00
Hiroshi SHIBATA
d099da0514
ruby-build 20260327 v20260327 2026-03-27 09:13:23 +09:00
GitHub Actions Bot
07deac8d23 Added 3.2.11 with OpenSSL 3.0.19 2026-03-26 23:58:29 +00:00
Benoit Daloze
03b4d45e4e
Merge pull request #2613 from eregon/no-more-truffleruby-on-darwin-amd64
Darwin-x86_64 is no longer supported on TruffleRuby
2026-03-26 13:49:09 +01:00
Benoit Daloze
c07e80e8b4 Darwin-x86_64 is no longer supported on TruffleRuby
* See https://github.com/truffleruby/truffleruby/issues/4011
2026-03-26 13:46:30 +01:00
Hiroshi SHIBATA
b46653bc1d
Merge pull request #2612 from rbenv/fix-openssl-version
Fix OpenSSL version requirement in `update-cruby` for Ruby 4.x
2026-03-26 12:59:56 +09:00
Hiroshi SHIBATA
7858b1231d
Fix OpenSSL version requirement in update-cruby for Ruby 4.x
Ruby >= 4.0 requires OpenSSL >= 1.1.1, but the script hardcoded
needs_openssl:1.0.2-3.x.x for all versions. Add version-based
condition to use needs_openssl:1.1.1-3.x.x for Ruby 4.x and later.

Ref: https://github.com/rbenv/ruby-build/pull/2608

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 12:38:50 +09:00
Hiroshi SHIBATA
98609f51ae
ruby-build 20260326 v20260326 2026-03-26 10:36:45 +09:00
GitHub Actions Bot
36d491d7b2 Added 3.3.11 with OpenSSL 3.0.19 2026-03-26 01:18:24 +00:00
Hiroshi SHIBATA
ff102e144b
Merge pull request #2611 from rbenv/dependabot/github_actions/mislav/bump-homebrew-formula-action-4
Bump mislav/bump-homebrew-formula-action from 3 to 4
2026-03-24 08:25:32 +09:00
dependabot[bot]
bdd3b680e7
Bump mislav/bump-homebrew-formula-action from 3 to 4
Bumps [mislav/bump-homebrew-formula-action](https://github.com/mislav/bump-homebrew-formula-action) from 3 to 4.
- [Release notes](https://github.com/mislav/bump-homebrew-formula-action/releases)
- [Commits](https://github.com/mislav/bump-homebrew-formula-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: mislav/bump-homebrew-formula-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-23 08:52:55 +00:00
Hiroshi SHIBATA
aa270b3d33
Merge pull request #2608 from mitto/fix-ruby-4.0.2-openssl-version-requirement
Fix openssl version requirement for ruby 4.0.2
2026-03-20 07:16:47 +09:00
mitto nagisa
24994156d7 fix openssl version requirement for ruby 4.0.2
relates #2598 #2601
2026-03-20 05:24:40 +09:00
Hiroshi SHIBATA
e0074453e0
ruby-build 20260317 v20260317 2026-03-17 09:04:00 +09:00
GitHub Actions Bot
b436edf0bc Added 4.0.2 with OpenSSL 3.0.19 2026-03-16 23:36:52 +00:00
Hiroshi SHIBATA
6643698de6
ruby-build 20260311 v20260311 2026-03-11 21:08:07 +09:00
GitHub Actions Bot
096c946c65 Added 3.4.9 with OpenSSL 3.0.19 2026-03-11 10:32:41 +00:00
Charles Oliver Nutter
b5b751c5a6
Merge pull request #2607 from headius/jruby-10.0.4.0
Add JRuby 10.0.4.0
2026-03-04 08:34:49 -08:00
Charles Oliver Nutter
60e0df794f Add JRuby 10.0.4.0 2026-03-04 10:31:48 -06:00
Mislav Marohnić
a6d4d3a023
ruby-build 20260222 v20260222 2026-02-22 21:09:37 +01:00
Hiroshi SHIBATA
7c977fae13
Merge pull request #2604 from byroot/ruby-sha
Support building from arbitrary git revision
2026-02-20 20:52:18 +09:00
Jean Boussier
23a3fa9f11 Support building from arbitrary git revision
While bisecting, or building a nightly Ruby CI and some other situations,
it is useful to be able to build a specific Ruby revision rather than
just the tip of Ruby's master branch.
2026-02-19 08:42:16 +01:00
Benoit Daloze
d395d1ae53
Merge pull request #2603 from eregon/fix-jruby-dev
Fix jruby-dev to use updated URLs and support arm64 too
2026-02-05 22:40:19 +01:00
Benoit Daloze
8d505cf0ca Fix jruby-dev to use updated URLs and support arm64 too 2026-02-05 20:43:25 +01:00
Charles Oliver Nutter
95b166eb70
Merge pull request #2602 from headius/jruby-10.0.3.0
Add JRuby 10.0.3.0
2026-02-02 15:20:55 -08:00
Charles Oliver Nutter
e70935a0a1 Add JRuby 10.0.3.0 2026-02-02 17:19:01 -06:00
Mislav Marohnić
2c978c3c16
Merge pull request #2601 from glaszig/ruby4-openssl
fix openssl version requirement range for ruby >= 4
2026-01-26 19:44:25 +01:00
glaszig
c316982a31 fix openssl version requirement range for ruby >= 4
resolves #2598
2026-01-22 17:46:57 -03:00