Skip to content

Commit fdcfbcf

Browse files
bpintoeregon
authored andcommitted
Enforce bundler version 1 for ruby 2.3.0 and 2.3.1
Fix #148
1 parent a358e49 commit fdcfbcf

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

bundler.js

+3
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ export async function installBundler(bundlerVersionInput, lockFile, platform, ru
7272
if (engine === 'ruby' && rubyVersion.match(/^2\.[012]/)) {
7373
console.log('Bundler 2 requires Ruby 2.3+, using Bundler 1 on Ruby <= 2.2')
7474
bundlerVersion = '1'
75+
} else if (engine === 'ruby' && rubyVersion.match(/^2\.3\.[01]/)) {
76+
console.log('Ruby 2.3.0 and 2.3.1 have shipped with an old rubygems that only works with Bundler 1')
77+
bundlerVersion = '1'
7578
} else if (engine === 'jruby' && rubyVersion.startsWith('9.1')) { // JRuby 9.1 targets Ruby 2.3, treat it the same
7679
console.log('JRuby 9.1 has a bug with Bundler 2 (https://github.com/ruby/setup-ruby/issues/108), using Bundler 1 instead on JRuby 9.1')
7780
bundlerVersion = '1'

dist/index.js

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)