8000 Enforce bundler version 1 for ruby 2.3.0 and 2.3.1 · bpinto/setup-ruby@8579e56 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8579e56

Browse files
committed
Enforce bundler version 1 for ruby 2.3.0 and 2.3.1
Fix ruby#148
1 parent a358e49 commit 8579e56

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

bundler.js

Lines changed: 3 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
0