Skip to content

Commit c6e924e

Browse files
jsvdmislav
andauthored
workaround jruby#7799 by updating rubygems for JRuby 9.2.x (#2246)
Co-authored-by: Mislav Marohnić <[email protected]>
1 parent 2054401 commit c6e924e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

bin/ruby-build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,11 @@ build_package_jruby() {
747747

748748
install_jruby_launcher() {
749749
cd "${PREFIX_PATH}/bin"
750+
# workaround for https://github.com/jruby/jruby/issues/7799
751+
local jruby_version
752+
jruby_version="$(./ruby -e 'puts JRUBY_VERSION' 2>/dev/null)"
753+
[[ $jruby_version != "9.2."* ]] ||
754+
./ruby gem update -q --silent --system 3.3.26 --no-document --no-post-install-message >&4 2>&1
750755
{ ./ruby gem install jruby-launcher
751756
} >&4 2>&1
752757
}

test/build.bats

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,7 @@ DEF
589589
assert_success
590590

591591
assert_build_log <<OUT
592+
jruby -e puts JRUBY_VERSION
592593
jruby gem install jruby-launcher
593594
OUT
594595

0 commit comments

Comments
 (0)