Use latest Bundler on CRuby 2.6 and 2.7 as their default Bundler is too old

This commit is contained in:
Benoit Daloze
2022-07-26 21:55:37 +02:00
parent bb1d54ff77
commit e8f04a3cee
3 changed files with 29 additions and 8 deletions
+4
View File
@@ -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