Commit graph

522 commits

Author SHA1 Message Date
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
jnozsc
bd9e6fbcb7 compatible with macOS 11 2020-06-22 22:31:11 -07:00
Mislav Marohnić
9b7acf605a
Merge pull request #1442 from deivid-rodriguez/fix_bash_4.4_warning
Fix a bash 4.4 warning when installing jruby
2020-06-08 12:12:55 +02:00
Benoit Daloze
24d65c18ed ruby-build 20200520 2020-05-20 16:42:52 +02:00
Ryan Lopopolo
978d03f62b Fix artichoke-dev installer
The existing install function wiped out the prefix that build_package_copy
copied the binaries to. The subsequently created symlinks point to files
that don't exist on disk.
2020-05-20 16:39:40 +02:00
Benoit Daloze
e80bfee5ed ruby-build 20200519 2020-05-19 22:20:55 +02:00
Benoit Daloze
d00f2e9da4 ruby-build 20200518 2020-05-18 16:42:25 +02:00
Benoit Daloze
8cf308a619
Merge pull request #1402 from metalefty/list-exclude-eol
The list `rbenv install -l` is too long, show latest stable releases by default
2020-05-18 16:36:56 +02:00
David Rodríguez
01c0df912a
Fix a bash 4.4 warning when installing jruby
In particular, the following:

```
/path/to/bin/ruby-build: line 739: warning: command substitution: ignored null byte in input
```
2020-05-18 16:36:31 +02:00
deepj
c27fc59ad8 Add artichoke-dev to install the latest Artichoke nightly build
Allow to install the latest official Artichoke nightly build from https://github.com/artichoke/nightly/releases
2020-04-29 22:59:52 +02:00
Koichiro Iwao
e2b65f5dd5 Merge branch 'master' into list-exclude-eol 2020-04-27 11:20:31 +09:00
Jason Karns
1c83641418
Merge pull request #1419 from metalefty/rewording
s/all built-in definitions/all local definitions/
2020-04-12 09:04:38 -04:00
Brent Odell
d7a3be1532
ruby-build 20200401 2020-03-31 18:25:12 -05:00
Koichiro Iwao
c76bf6fb80
s/all available definitions/all local definitions/
"available" implies ruby-build will be checking online sources but
actually ruby-build doesn't do that. "local definitions" may be
prefered.

Pointed out by jasonkarns.
2020-03-20 18:08:04 +09:00
Koichiro Iwao
66647e3953
s/all built-in definitions/all available definitions/
Suggested by mislav: https://github.com/rbenv/ruby-build/pull/1402#discussion_r389060742

> I wonder should we substitute "built-in" with something like "all
> available definitions". Since ruby-build will additionally pick up
> definitions found under the paths listed in RUBY_BUILD_DEFINITIONS,
> these definitions will get listed even if they are not "built-in".
> Therefore, "built-in" feels like a misnomer here.
2020-03-19 18:16:16 +09:00
Koichiro Iwao
b2c25b6801
skip cd in to DEFINITION_DIR in subshell
as it is not necessary. Pointed out by @mislav in review.
2020-03-07 21:28:28 +09:00
Koichiro Iwao
47c18a46dc
revert adding -d options alias for --definitions
This is out of scope of this PR.
2020-03-07 21:19:11 +09:00
Koichiro Iwao
ad48baadb9
rename some functions to reflect more closely what it does
Pointed out by @mislav in review
2020-03-07 21:19:11 +09:00
Koichiro Iwao
67ac0b45d6
the short list now shows only latest stable versions
for each Ruby implementations like the following.

    2.4.9
    2.5.7
    2.6.5
    2.7.0
    jruby-9.2.9.0
    maglev-1.0.0
    mruby-2.1.0
    rbx-3.107
    truffleruby-19.3.1
2020-03-06 22:23:46 +09:00
Koichiro Iwao
e67a940d3e
do not exclude warn_unsupported versions in short list
it is not actually EoL'ed.  `warn_unsupported` indicates
that the versions are nearing EoL.
2020-03-06 22:13:41 +09:00
Koichiro Iwao
92da5bb1f1 -rc, -preview, -dev versions are also removed from short list 2020-03-03 15:13:39 +09:00
Benoit Daloze
7ec5e411bf ruby-build 20200224 2020-02-24 21:37:05 +01:00
Koichiro Iwao
12b17e6e93
rbenv-install: show the short list by default
As suggested by @eregon, now we have "-l/--list" option for the short
list of versions. Behaviour of `ruby-build --definitions` is kept as
before for compatibility.

rbenv-install:
  -L/--list-all       full list
  -l/--list           short list

ruby-build:
  -d/--definitions    full list
  -l/--list           short list
2020-02-19 11:01:43 +09:00
Koichiro Iwao
45ec7a7cfd
ruby-build: add short option "-d" alias to "--definitions" 2020-02-19 10:18:49 +09:00
Benoit Daloze
4dbdc0b6ac ruby-build 20200218 2020-02-18 21:24:15 +01:00
Benoit Daloze
c702ee7fe9 ruby-build 20200214 2020-02-14 14:58:45 +01:00
Benoit Daloze
cda9b11733 Make sure to install to a clean prefix
* Otherwise, existing files in the prefix could easily conflict and
  potentially cause very hard to debug errors.
* This is particularly important for *-dev builds which might be
  repeatedly installed to the same directory.
2020-02-13 22:05:46 +01:00
Koichiro Iwao
e06bf905df
Add new option to exclude EoL'ed versions
when showing available versions
2020-01-30 14:57:11 +09:00
Benoit Daloze
901d0e9703 ruby-build 20200115 2020-01-15 10:31:13 +01:00
Mislav Marohnić
c937a09731 ruby-build 20191225 2019-12-25 17:30:35 +01:00
Mislav Marohnić
abaa3a5bed ruby-build 20191223 2019-12-23 15:38:32 +01:00
Mislav Marohnić
75e9514394 ruby-build 20191205 2019-12-05 11:32:02 +01:00
Benoit Daloze
a9adec33f7 ruby-build 20191124 2019-11-24 12:30:16 +01:00
Benoit Daloze
47074b9174 Use openssl from Homebrew for TruffleRuby on macOS
* The openssl built by ruby-build was not used by TruffleRuby,
  and causes https://github.com/oracle/truffleruby/issues/1818
* Improve error message when openssl from Homebrew is not available.
* Change the definition code so it checks the operating system too.
2019-11-21 16:41:12 +01:00
Benoit Daloze
f0a393d20a Use the full path to the post-install hook to help debugging issues
* See https://github.com/oracle/truffleruby/issues/1818
2019-11-21 12:23:11 +01:00
Koichiro Iwao
2fa12aa897
Set default MAKE=gmake on FreeBSD again
as an workaround for Ruby bug 16331: https://bugs.ruby-lang.org/issues/16331

Due to this bug, build will fail with FreeBSD's make after #1368.
The bug is already fixed in MRI upstream but GNU make is still required
when building older releases of Ruby. Use GNU make rather than switching
make/gmake depending of Ruby version.

See also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241633
2019-11-20 18:11:43 +09:00
Mislav Marohnić
7a627b31ca ruby-build 20191111 2019-11-11 11:45:30 +01:00
Grant Guthrie
015b248956 Keep use_homebrew_openssl function 2019-11-08 15:31:13 -05:00
Grant Guthrie
9d96a6b83d Don’t look for homebrew openssl 2019-11-08 10:01:00 -05:00
Mislav Marohnić
9383de3f57 ruby-build 20191105 2019-11-05 13:34:42 +01:00
Mislav Marohnić
ed46d03947 Include header files with mruby
Fix #1311
2019-11-05 11:03:49 +01:00
Mislav Marohnić
dc88fdf833 Merge branch 'handle-non-git-patches' 2019-11-05 09:48:43 +01:00
Mislav Marohnić
c2822aa095 Merge remote-tracking branch 'origin/master' into handle-non-git-patches 2019-11-05 09:40:10 +01:00
Mislav Marohnić
0d3e3b8b8e Ensure missing curl/wget/aria2c error message is shown on Linux
https://travis-ci.org/rbenv/ruby-build/builds/607144159

Ref. #1234
2019-11-04 17:13:08 +01:00
Mislav Marohnić
e2b1da83bb Assert error shown when curl, wget, & aria2c are unavailable
Closes #1234
2019-11-04 14:48:46 +01:00
Mislav Marohnić
c660cfcd03 Use mktemp to securely initialize the build directory
Hopefully this works between BSD and GNU mktemp.

Closes #540
2019-11-02 19:17:41 +01:00
Mislav Marohnić
f6e8dc1ebd ruby-build 20191102 2019-11-02 13:16:26 +01:00
Mislav Marohnić
c30d4cba91 Fix verifying Java 9+ versions
Ref. #1135
2019-11-02 13:09:38 +01:00
Mislav Marohnić
9d78f06d1d Fix requiring Java 8 for JRuby 9.2
Ref. #1372, fix #1373, fix #1246
2019-11-02 11:33:08 +01:00
Mislav Marohnić
e4904cd49e ruby-build 20191031 2019-10-31 15:34:09 +01:00