Commit graph

2054 commits

Author SHA1 Message Date
Mislav Marohnić
55fb8a2460
Merge pull request #2059 from rbenv/list-exit-status
Fix `rbenv install --list` exit status
2022-10-03 13:36:55 +02:00
Mislav Marohnić
7de903c560
Fix rbenv install --list exit status 2022-10-03 13:28:58 +02:00
Mislav Marohnić
a4ac4be47f
ruby-build 20220930 2022-09-30 20:17:36 +02:00
Mislav Marohnić
e2cbfa954b
Release with gh instead of with hub (#2056) 2022-09-30 20:17:25 +02:00
Mislav Marohnić
bdd9d36e44
Merge pull request #2055 from rbenv/list-stderr
List output: only print stderr notice if printing to a terminal
2022-09-29 16:38:20 +02:00
Mislav Marohnić
2b955e7ee3
List output: only print stderr notice if printing to a terminal
This makes it easier to redirect `rbenv install -l` output without having to silence stderr to get rid of the extra notice.
2022-09-29 15:44:48 +02:00
Mislav Marohnić
ecb9d22853
Touch up README for comprehension and clarity (#2051) 2022-09-25 13:06:19 +02:00
Mislav Marohnić
cde170b581
Suggest rbenv global if there is no explicit global setting (#2052)
Upon installing their first Ruby version on the system, the user may want to set it as their default; otherwise the default will remain "system" and any `gem install` attempts will fail with a permission error.

This suggestion is skipped if the user already has chosen an explicit default, even if it's "system".
2022-09-25 11:20:43 +02:00
Hiroshi SHIBATA
2443ff3d56
Merge pull request #2049 from rbenv/support-opensuse-openssl
Allow OPENSSL_VERSION_TEXT string match without last line for OpenSUSE
2022-09-22 19:14:29 +09:00
Hiroshi SHIBATA
feb5253b1d
Merge pull request #2044 from casperisfine/homebrew-gmp
macOS: Use GMP from homebrew
2022-09-22 16:23:45 +09:00
Jean Boussier
1f9b792168 macOS: Use GMP from homebrew
MRI's BigInt use GMP under the hood if available, and if not
fallbacks to an homemade implementation with much worse performance.

Without GMP:
```
>> Benchmark.realtime { Integer('1' * (10 ** 7)) }
=> 13.80743500002427
```

With GMP
```
>> Benchmark.realtime { Integer('1' * (10 ** 7)) }
=> 0.4098639999865554
```

macOS not being a common production platform, it's not a huge deal
but it would still preferable to compile with `gmp.h` if present.

I'd also suggest to print a warning if compiling on macOS and gmp
isn't installed, but I don't know if it's desirable.

NB: `--with-gmp-dir` was only added recently, so this will only
apply to MRI >= 3.2, as well as rubies on which this flag was backported.
2022-09-22 08:56:34 +02:00
Hiroshi SHIBATA
7fdf6ecfe0
Allow OPENSSL_VERSION_TEXT string match without last line for OpenSUSE 2022-09-22 13:08:23 +09:00
Mislav Marohnić
ef66bd1f3c
Merge pull request #2042 from jamacku/master
ci(lint): add shell linter - Differential ShellCheck
2022-09-16 19:19:06 +02:00
Charles Oliver Nutter
5f063af6aa Add JRuby 9.3.8.0 2022-09-13 19:50:38 +02:00
Jan Macku
ecdf0fb391 ci(lint): Add differential-shellcheck action
It performs differential ShellCheck scans and report results directly in pull request.

documentation: https://github.com/redhat-plumbers-in-action/differential-shellcheck

Signed-off-by: Jan Macku <jamacku@redhat.com>
2022-09-13 14:11:46 +02:00
Varun Sharma
91da74d88e Add minimum GitHub token permissions for workflows
Signed-off-by: Varun Sharma <varunsh@stepsecurity.io>
2022-09-11 12:35:58 +02:00
Hiroshi SHIBATA
5690c5d075
ruby-build 20220910.1 2022-09-10 15:01:09 +09:00
Hiroshi SHIBATA
1c1bd7b461
enable YJIT with 3.2.0-preview2 2022-09-10 14:56:25 +09:00
Hiroshi SHIBATA
9adbe64fc3
ruby-build 20220910 2022-09-10 14:37:30 +09:00
Hiroshi SHIBATA
0872173377
Merge pull request #2040 from rbenv/fix-yjit-condition
bash didn't provide \d
2022-09-10 14:37:11 +09:00
Hiroshi SHIBATA
87c525d479
not needed + 2022-09-10 14:33:18 +09:00
Hiroshi SHIBATA
7260a2c837
bash didn't provide \d 2022-09-10 14:29:40 +09:00
Hiroshi SHIBATA
019c011542
ruby-build 20220909 2022-09-09 11:12:11 +09:00
Hiroshi SHIBATA
7bbe41c182
Merge pull request #2039 from rbenv/3-2-0-preview2
Added 3.2.0-preview2
2022-09-09 11:11:35 +09:00
Hiroshi SHIBATA
f023ddc0c4
Added 3.2.0-preview2 2022-09-09 10:33:20 +09:00
Hiroshi SHIBATA
a9ed743143
Merge pull request #2031 from maximecb/patch-1
Fix required rustc version for YJIT in output
2022-09-02 11:29:54 +09:00
Maxime Chevalier-Boisvert
61b68bbad4
Fix required rustc version for YJIT in output 2022-09-01 22:17:43 -04:00
Hiroshi SHIBATA
b0ef7c8bd0
Merge pull request #2030 from rbenv/relax-rustc-version
Relax rustc version to 1.58.1
2022-09-01 18:09:13 +09:00
Hiroshi SHIBATA
e71c4b9468
Fix * regex usage of bash
suggested by @k0kubun

Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
2022-09-01 17:54:45 +09:00
Hiroshi SHIBATA
d0c0ac3d11
Relax rustc version from 1.58.1 2022-09-01 13:57:37 +09:00
Benoit Daloze
1f6b94cc93 uname -m is aarch64 on Linux 2022-08-30 12:36:04 +02:00
Hiroshi SHIBATA
2a8cde928b
Merge pull request #2029 from rbenv/enable-yjit-again2
Enable YJIT only x86_64 and arm64
2022-08-30 08:03:54 +09:00
Hiroshi SHIBATA
373e71aa10
Use -o for or condition
Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
2022-08-30 07:47:38 +09:00
Hiroshi SHIBATA
ccce79a5a7
Followed up https://github.com/rbenv/ruby-build/pull/2028 2022-08-30 07:32:19 +09:00
Hiroshi SHIBATA
5f8eab95a6
Merge pull request #2028 from rbenv/enable-yjit-again
Re-enable YJIT with arm64
2022-08-30 07:17:42 +09:00
Hiroshi SHIBATA
32f0e3040b
YJIT support arm64 and aarch64 arch 2022-08-30 07:02:49 +09:00
Benoit Daloze
7f756a7bce ruby-build 20220825 2022-08-25 20:43:06 +02:00
Charles Oliver Nutter
bd08de2e60
Add JRuby 9.3.7.0 (#2026) 2022-08-16 22:41:53 +02:00
Benoit Daloze
a753b24551 Show the log file to make it easy to follow progress
* Fixes https://github.com/rbenv/ruby-build/issues/1721
2022-08-06 13:04:40 +02:00
Benoit Daloze
44c91aa270 ruby-build 20220726 2022-07-26 15:18:20 +02:00
Benoit Daloze
0bdfebe7bc Add TruffleRuby 22.2.0 2022-07-26 15:06:48 +02:00
Benoit Daloze
8d6e276663 TruffleRuby 22.2+ is available on darwin-aarch64 2022-07-26 15:06:48 +02:00
Benoit Daloze
d04f81fb75 ruby-build 20220725 2022-07-25 18:46:36 +02:00
Benoit Daloze
e139c26bdf Only check the opensslv.h header to find the system openssl version
* `openssl version` can be another version than the header, for instance with
  `apt-get install --no-install-recommends ca-certificates libssl1.0-dev` on Ubuntu 18.04:
  https://github.com/rbenv/ruby-build/discussions/2014#discussioncomment-3224237
2022-07-25 18:46:18 +02:00
Benoit Daloze
7866a26bed ruby-build 20220721 2022-07-21 13:41:23 +02:00
Hiroshi SHIBATA
cfb1fe850b Use inline patch instead of curl download 2022-07-21 13:38:53 +02:00
Hiroshi SHIBATA
7b24ca370e Apply patch for implicitly declaration error of OpenSSL 1.1.1q 2022-07-21 13:38:53 +02:00
Benoit Daloze
7399e92f1f Remove extra paren 2022-07-14 19:42:01 +02:00
Noah Gibbs
f9299a6332 Update bin/ruby-build
Co-authored-by: Mislav Marohnić <hi@mislav.net>
2022-07-14 19:42:01 +02:00
Noah Gibbs
b32d291a0f Update bin/ruby-build
Co-authored-by: Mislav Marohnić <hi@mislav.net>
2022-07-14 19:42:01 +02:00