mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 14:34:21 +02:00
Use latest Bundler on CRuby 2.6 and 2.7 as their default Bundler is too old
This commit is contained in:
@@ -55,6 +55,10 @@ export function isStableVersion(rubyVersion) {
|
||||
return /^\d+(\.\d+)*$/.test(rubyVersion)
|
||||
}
|
||||
|
||||
export function hasBundlerDefaultGem(engine, rubyVersion) {
|
||||
return isBundler1Default(engine, rubyVersion) || isBundler2Default(engine, rubyVersion)
|
||||
}
|
||||
|
||||
export function isBundler1Default(engine, rubyVersion) {
|
||||
if (engine === 'ruby') {
|
||||
return floatVersion(rubyVersion) >= 2.6 && floatVersion(rubyVersion) < 2.7
|
||||
|
||||
Reference in New Issue
Block a user