Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pull ruby build #911

Merged
merged 44 commits into from
Jun 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
7de903c
Fix `rbenv install --list` exit status
mislav Oct 3, 2022
55fb8a2
Merge pull request #2059 from rbenv/list-exit-status
mislav Oct 3, 2022
55575fd
ruby-build 20221004
mislav Oct 4, 2022
42ef890
Add JRuby 9.3.9.0
headius Oct 24, 2022
ffa1fc4
Merge pull request #2068 from headius/jruby_9.3.9.0
hsbt Oct 24, 2022
2be9da5
ruby-build 20221025
hsbt Oct 24, 2022
10b05a9
Add TruffleRuby and TruffleRuby GraalVM 22.3.0
eregon Oct 25, 2022
b53ab98
ruby-build 20221026
eregon Oct 25, 2022
004aef3
Use OpenSSL 3.0.7 for ruby 3.1
richardTowers Nov 1, 2022
f42aca2
Merge pull request #2075 from richardTowers/openssl-3-0-7
mislav Nov 1, 2022
0ddb8c1
ruby-build 20221101
mislav Nov 1, 2022
c99a2fc
Mark Ruby 2.6 as EOL
mislav Nov 1, 2022
41e3f5c
Mark Ruby 2.7 as unsupported
mislav Nov 1, 2022
971043c
Merge pull request #2077 from rbenv/ruby-eol
mislav Nov 2, 2022
6c15f63
Add definition for Ruby 3.2.0-preview3
koic Nov 11, 2022
cae596e
Update to openssl 1.1.1s
mislav Nov 15, 2022
e32592f
Merge pull request #2088 from rbenv/openssl-1.1.1s
mislav Nov 15, 2022
e6a7b33
Do not automatically enable YJIT nor attempt to detect rustc
mislav Nov 16, 2022
4202ace
Merge pull request #2091 from rbenv/cleanup-yjit
mislav Nov 16, 2022
66311de
ruby-build 20221116
mislav Nov 16, 2022
fd12e58
truffleruby+graalvm-dev builds are now based on Java 17
eregon Nov 21, 2022
5eb8c65
ruby-build 20221121
eregon Nov 21, 2022
f346ea9
JRuby 9.4.0.0
headius Nov 23, 2022
6810337
ruby-build 20221123
eregon Nov 23, 2022
03c2445
Add definition for Ruby 3.1.3, 3.0.5, and 2.7.7
koic Nov 24, 2022
a4316df
Merge pull request #2096 from koic/add_definition_for_ruby_3_1_3_and_…
hsbt Nov 24, 2022
4f4f307
ruby-build 20221124
hsbt Nov 24, 2022
2503703
Add definition for Ruby 3.2.0 RC 1
koic Dec 6, 2022
80cef45
ruby-build 20221206
eregon Dec 6, 2022
40cca22
Added 3.2.0
hsbt Dec 25, 2022
676e40f
Merge pull request #2115 from rbenv/3-2-0
hsbt Dec 25, 2022
9d92a69
ruby-build 20221225
hsbt Dec 25, 2022
a4c1cbb
Development of 3.3.0 started.
hsbt Dec 26, 2022
a02df97
Merge pull request #2116 from rbenv/3-3-0-dev
hsbt Dec 26, 2022
7a60c65
Warn EOL status for all of rbx packages
hsbt Dec 26, 2022
fa46d54
Removed rbx updater
hsbt Dec 26, 2022
9a7489d
Fixes #2119
hsbt Dec 28, 2022
e741c92
Merge pull request #2120 from rbenv/replace-svn-git
hsbt Dec 28, 2022
716a7df
Use git instead of svn
hsbt Dec 28, 2022
ce13d28
Completely removed subversion feature
hsbt Dec 28, 2022
697bcff
Merge pull request #2121 from rbenv/drop-svn-support
hsbt Dec 28, 2022
5924f15
Add TruffleRuby and TruffleRuby GraalVM 22.3.1
eregon Jan 24, 2023
08f2956
ruby-build 20230124
eregon Jan 24, 2023
dd35e85
Merge ruby-build v20230124
jasonkarns Jun 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions bin/node-build
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,6 @@ install_git() {
install_package_using "git" 2 "$@"
}

install_svn() {
install_package_using "svn" 2 "$@"
}

install_binary() {
local url name

Expand Down Expand Up @@ -610,23 +606,6 @@ fetch_git() {
fi
}

fetch_svn() {
local package_name="$1"
local svn_url="$2"
local svn_rev="$3"

echo "Checking out ${svn_url}..." >&2

if type svn &>/dev/null; then
svn co -r "$svn_rev" "$svn_url" "${package_name}" >&4 2>&1
elif type svnlite &>/dev/null; then
svnlite co -r "$svn_rev" "$svn_url" "${package_name}" >&4 2>&1
else
echo "error: please install Subversion and try again" >&2
exit 1
fi
}

build_package() {
local package_name="$1"
shift
Expand Down
2 changes: 1 addition & 1 deletion bin/nodenv-install
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ for option in "${OPTIONS[@]}"; do
;;
"l" | "list" )
node-build --list
[ -t 1 ] && {
[ ! -t 1 ] || {
echo
echo "Only latest stable releases for each Node implementation are shown."
echo "Use 'nodenv install --list-all / -L' to show all local versions."
Expand Down
13 changes: 12 additions & 1 deletion test/nodenv.bats
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ stub_node_build() {
stub_node_build 'echo node-build "$@"'

run nodenv-install 4.1.2
assert_success <<OUT
assert_success
assert_output <<OUT
node-build 4.1.2 ${NODENV_ROOT}/versions/4.1.2

NOTE: to activate this Node version as the new default, run: nodenv global 4.1.2
Expand All @@ -53,6 +54,16 @@ OUT
unstub nodenv-local
}

@test "list latest versions" {
stub_node_build "--list : echo 4.1.2"

run nodenv-install --list
assert_success
assert_output "4.1.2"

unstub node-build
}

@test "list available versions" {
stub_node_build \
"--definitions : echo 0.8.7 0.10.4 0.11.0 1.0.0 4.1.2 | tr ' ' $'\\n'"
Expand Down