Add support for truffleruby+graalvm

* Using ruby-build to avoid duplicating too much logic.
This commit is contained in:
Benoit Daloze
2021-08-07 20:05:23 +02:00
parent d9a8687ae9
commit 7edf159e98
7 changed files with 77 additions and 15 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ export function isBundler1Default(engine, rubyVersion) {
export function isBundler2Default(engine, rubyVersion) {
if (engine === 'ruby') {
return floatVersion(rubyVersion) >= 2.7
} else if (engine === 'truffleruby') {
} else if (engine.startsWith('truffleruby')) {
return floatVersion(rubyVersion) >= 21.0
} else if (engine === 'jruby') {
return floatVersion(rubyVersion) >= 9.3