8000 Bundler higher than ~> 2.4.0 will require Ruby 3.0 or later · ruby/setup-ruby@bb3a055 · GitHub
[go: up one dir, main page]

Skip to co 65FB ntent

Commit bb3a055

Browse files
deivid-rodriguezeregon
authored andcommitted
Bundler higher than ~> 2.4.0 will require Ruby 3.0 or later
1 parent 02c9ccc commit bb3a055

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

bundler.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ export async function installBundler(bundlerVersionInput, rubygemsInputSet, lock
108108

109109
// Use Bundler 1 when we know Bundler 2 does not work
110110
// Use Bundler 2.3 when we use Ruby 2.3.2-2.5
111+
// Use Bundler 2.4 when we use Ruby 2.6-2.7
111112
if (bundlerVersion.startsWith('2')) {
112113
if (engine === 'ruby' && floatVersion <= 2.2) {
113114
console.log('Bundler 2 requires Ruby 2.3+, using Bundler 1 on Ruby <= 2.2')
@@ -118,6 +119,9 @@ export async function installBundler(bundlerVersionInput, rubygemsInputSet, lock
118119
} else if (engine === 'ruby' && floatVersion <= 2.5) {
119120
console.log('Ruby 2.3.2-2.5 only works with Bundler 2.3')
120121
bundlerVersion = '2.3'
122+
} else if (engine === 'ruby' && floatVersion <= 2.7) {
123+
console.log('Ruby 2.6-2.7 only works with Bundler 2.4')
124+
bundlerVersion = '2.4'
121125
} else if (engine === 'jruby' && rubyVersion.startsWith('9.1')) { // JRuby 9.1 targets Ruby 2.3, treat it the same
122126
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')
123127
bundlerVersion = '1'

dist/index.js

Lines changed: 4 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