Skip to content

Commit bb3a0c6

Browse files
committed
Bundler 2 is shipped with truffleruby-head now
1 parent 8e77d9e commit bb3a0c6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/index.js

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

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ async function installBundler(bundlerVersionInput, lockFile, platform, rubyPrefi
223223
bundlerVersion = '1'
224224
}
225225

226-
if (engine === 'ruby' && common.isHeadVersion(rubyVersion) && bundlerVersion === '2') {
226+
if ((engine === 'ruby' || engine === 'truffleruby') && common.isHeadVersion(rubyVersion) && bundlerVersion === '2') {
227227
console.log(`Using Bundler 2 shipped with ${engine}-${rubyVersion}`)
228-
} else if (engine === 'truffleruby' && bundlerVersion === '1') {
228+
} else if (engine === 'truffleruby' && !common.isHeadVersion(rubyVersion) && bundlerVersion === '1') {
229229
console.log(`Using Bundler 1 shipped with ${engine}`)
230230
} else {
231231
const gem = path.join(rubyPrefix, 'bin', 'gem')

0 commit comments

Comments
 (0)