Commit graph

97 commits

Author SHA1 Message Date
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
Jeremy Daer
df045bdc07 Drop the default package mirror
37signals are dropping AWS, which means goodbye to S3 and CloudFront.

The CloudFront mirror (dqw8nmjcqpjn7.cloudfront.net) was introduced ages
ago to address intermittent unavailability from some upstream sources.
These days, it mainly serves non-MRI packages like OpenSSL and libyaml.

Ruby releases are now served by Fastly (cache.ruby-lang.org) which has
bypassed the ruby-build mirror since 2015. Other sources (GitHub, RubyGems,
Maven) have their own CDNs.

This change removes the default `RUBY_BUILD_MIRROR_URL` and S3 release
mirroring. Custom mirror support remains.
2025-09-12 09:49:34 -07:00
Jason Karns
77bd50f8ed
Readme gains examples of installing custom defs
Add examples of passing a custom build definition file in place of a
'known' ruby version. This is meant to more clearly document how users
might use a custom build definition for a recently-released ruby that is
not yet bundled in ruby-build.

Additionally, document in the readme how to use `RUBY_BUILD_DEFINITIONS`
path environment variable to provide a _collection_ of custom build
definitions. This is meant to give guidance on how an organization might
share multiple custom build definitions, or downstream users of
ruby-build (like asdf-ruby) might publish unreleased rubies for
installation.

- quibbling over wording: custom build defs _are_ recognized by
  ruby-build, just not bundled or available out of the box.
2025-05-23 11:19:42 -04:00
Benoit Daloze
6c937c819c Add an environment variable to always build openssl/libssl
* This is useful when one wants to avoid depending e.g. on which openssl version
  is installed in Homebrew, notably for https://github.com/ruby/setup-ruby/issues/668
2024-11-13 14:27:42 +01:00
Benoit Daloze
20496b54b6 Suggest to install rubies in a user-writable directory in the README
Otherwise `gem install` and `bundle install` (without `--path`) won't work without `sudo`.
In fact the previous example install command wouldn't work at all without `sudo`.
2024-11-06 12:17:55 +01:00
Benoit Daloze
ac39910944 Clarify --list and --definitions in the README
The previous docs would make users think only a few Ruby versions were available.
2024-11-06 10:26:53 +01:00
Benoit Daloze
a22ff72e32
Support ruby-build ruby-X.Y.Z DIR (#2448)
* By searching a X.Y.Z definition if no ruby-X.Y.Z definition is not found.
* Add test and documentation.

Co-authored-by: Mislav Marohnić <git@mislav.net>
2024-09-23 19:15:29 +02:00
Jason Karns
15bdff9b58
Clarify RUBY_BUILD_ROOT env var (#2392)
* Clarify RUBY_BUILD_ROOT env var

The RUBY_BUILD_ROOT itself does not default to share/ruby-build/ but rather must point to a directory that has definitions under `share/ruby-build/`.

* Deprecate RUBY_BUILD_ROOT

It's a feature of questionable utility, it's difficult to describe in documentation, and has been superseded by RUBY_BUILD_DEFINITIONS.

---------

Co-authored-by: Mislav Marohnić <git@mislav.net>
2024-05-30 16:34:31 +02:00
Mislav Marohnić
4c46e63e4f
readme: update markdown syntax for warning label 2023-11-21 17:25:51 +01:00
Mislav Marohnić
91c95bbf8f
Respect NO_COLOR and CLICOLOR_FORCE (#2295)
http://bixense.com/clicolors/
2023-11-07 16:05:27 +01:00
Mislav Marohnić
224e942bd7
Tweak basic usage instructions 2023-11-03 18:00:45 +01:00
Benoit Daloze
216084d334 Add RUBY_BUILD_TARBALL_OVERRIDE to override the ruby tarball URL
* Update the check for whether a package is a ruby.
2023-10-12 11:48:03 +02:00
Masato Ohba
46878c9646
Remove brew update instruction (#2151)
because `brew update` runs automatically on `brew upgrade` by default since long time ago.
2023-02-20 16:00:59 +01:00
Mislav Marohnić
ecb9d22853
Touch up README for comprehension and clarity (#2051) 2022-09-25 13:06:19 +02:00
Mingxiang Xue
b034b8cd37 Add RUBY_BUILD_MIRROR_PACKAGE_URL to specify the complete mirror URL
Signed-off-by: Mingxiang Xue <mingxiangxue@gmail.com>
2020-07-18 00:36:59 +08:00
eladeyal-intel
1e94192659 shorter git command chains 2020-01-31 17:23:02 +02:00
Mislav Marohnić
a963078456
Clarify <SHA2> 2019-10-09 14:11:12 +02:00
Mislav Marohnić
dafe7058f5
Clarify "package mirrors" section further 2019-10-09 14:08:21 +02:00
Ross Bragg
0dc5ad7248 Add example of mirrored URL. 2019-09-23 12:27:21 -04:00
Mislav Marohnić
9219a43caf
Merge pull request #1198 from yyuu/http-client-based-on-envvar
Allow overriding HTTP client type based on environment variable of `RUBY_BUILD_HTTP_CLIENT`
2018-08-22 11:27:06 +00:00
Mislav Marohnić
6b4bd271e4 Document environment variables used for downloading 2018-08-22 13:22:40 +02:00
Benoit Daloze
ad4a9fefdd Support patches for TruffleRuby too 2018-06-15 20:17:13 +02:00
Mislav Marohnić
bf66facbe7 README touch-ups 2017-08-23 10:07:25 +02:00
Ryan Lue
096a212d8f Update README overhaul 2017-07-10 15:00:21 +08:00
Ryan Lue
ab06a8b1f8 Update README overhaul 2017-07-10 14:58:56 +08:00
Ryan Lue
af2df4e74a Overhaul README 2017-07-10 14:49:08 +08:00
Michael Ledin
c45d6430a8 Homebrew upgrade for HEAD package. 2016-12-05 21:30:46 +03:00
MartinKoerner
4fac6e411d Clarify reinstalling behavior for HEAD package 2016-09-07 09:02:54 +02:00
Kuniaki IGARASHI
1e37ad8b9b Change github repo names to rbenv. 2015-11-29 12:02:51 +09:00
ReadmeCritic
f9a3092d18 Update README URLs based on HTTP redirects 2015-11-25 11:27:24 -08:00
Jason Karns
9e25687d2a Remove license from readme
LICENSE already exists as its own file (https://github.com/sstephenson/ruby-build/blob/master/LICENSE)
2015-10-30 09:02:10 -04:00
Reed Loden
b1454d44ac 37signals renamed themselves to Basecamp, so update sponsor in README
See https://37signals.com/ for announcement post.
2015-07-17 23:47:45 -07:00
Erik Michaels-Ober
45b75ed95e Update examples to use 2.2.0 2014-12-25 10:06:58 -06:00
Mislav Marohnić
f118b173af Extra definitions paths via RUBY_BUILD_DEFINITIONS
This is a colon-separated list of directories that will get searched for
build definition in order from left to right.
2014-08-17 12:20:53 -07:00
Mislav Marohnić
ff75ca7204 Support changing RUBY_BUILD_ROOT
This is to allow specifying an alternate path where `share/ruby-build/*`
definitions reside. Useful in tests as well.
2014-08-17 12:20:53 -07:00
Will Jordan
70d8e39492 Add link to suggested build environment to README 2014-07-23 14:14:40 -07:00
Mislav Marohnić
a11107f38c Update Readme for MD5 -> SHA2 checksum change 2014-05-23 15:07:14 +07:00
Rajiv Aaron Manglani
d5f01fdf30 link to releases in readme. 2014-04-07 16:17:46 -04:00
Erik Michaels-Ober
556db9ab57 Revert "Add installation instructions for Arch Linux"
This reverts commit 6cf348e426. See
https://github.com/sstephenson/ruby-build/issues/526#issuecomment-37889552.
2014-03-18 14:20:09 +01:00
Erik Michaels-Ober
6cf348e426 Add installation instructions for Arch Linux
Closes https://github.com/sstephenson/ruby-build/issues/526.
2014-03-17 16:41:40 +01:00
Erik Michaels-Ober
36cb25d2a0 ruby-build 20140214 💘 2014-02-14 09:49:06 +01:00
Eric Lindvall
93828a2d16 Add MAKE_INSTALL_OPTS configuration option 2014-01-21 19:29:02 -08:00
Eric Lindvall
3ec9cfaa7e Add mention of RUBY_MAKE_INSTALL_OPTS in README 2014-01-21 19:04:13 -08:00
Mislav Marohnić
f4a34da868 Add examples how to use the --patch option to the Readme
[ci skip]
2013-12-20 19:06:50 +01:00
Eric Bouchut
4d0416ab00 Fix typo in the README file 2013-09-13 13:21:07 +02:00
Eloy Durán
967cae7b17 Add description of RUBY_CFLAGS to README. 2013-09-07 00:36:13 +02:00
Erik Michaels-Ober
419f16e35c Reformat LICENSE and REAMDE
Wrap at 80 characters.
2013-09-01 13:26:05 +01:00
Yamashita Yuu
f8a00cdc0a Homebrew homepage location changed 2013-08-06 22:53:42 +09:00
Erik Michaels-Ober
1d254ef671 ruby-build 20130806 2013-08-06 08:43:06 +02:00
Marc Huffnagle
ae365a3771 Updated README.md to use https to clone ruby-build 2013-03-29 11:22:09 -04:00