mirror of
https://github.com/rbenv/ruby-build.git
synced 2026-05-14 16:36:53 -04:00
* 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> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| stubs | ||
| tmp | ||
| arguments.bats | ||
| build.bats | ||
| cache.bats | ||
| checksum.bats | ||
| compiler.bats | ||
| definitions.bats | ||
| fetch.bats | ||
| hooks.bats | ||
| installer.bats | ||
| mirror.bats | ||
| output.bats | ||
| rbenv.bats | ||
| test_helper.bash | ||
| version.bats | ||