From d4f9058279445615aabc6dc51d9be3ccdf206580 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Fri, 3 Apr 2020 23:59:35 +0200 Subject: [PATCH] Reorder --- dist/index.js | 6 +++--- index.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index 4ef0ee9..d2dec9b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1113,12 +1113,12 @@ async function installBundler(platform, rubyPrefix, engine, rubyVersion) { throw new Error(`Cannot parse bundler input: ${bundlerVersion}`) } - if (engine === 'rubinius') { - console.log(`Rubinius only supports the version of Bundler shipped with it`) - } else if (engine === 'ruby' && isHeadVersion(rubyVersion) && bundlerVersion === '2') { + if (engine === 'ruby' && isHeadVersion(rubyVersion) && bundlerVersion === '2') { console.log(`Using the Bundler version shipped with ${engine}-${rubyVersion}`) } else if (engine === 'truffleruby' && bundlerVersion === '1') { console.log(`Using the Bundler version shipped with ${engine}`) + } else if (engine === 'rubinius') { + console.log(`Rubinius only supports the version of Bundler shipped with it`) } else { const gem = path.join(rubyPrefix, 'bin', 'gem') await exec.exec(gem, ['install', 'bundler', '-v', `~> ${bundlerVersion}`, '--no-document']) diff --git a/index.js b/index.js index f77e0bf..70f3b8d 100644 --- a/index.js +++ b/index.js @@ -155,12 +155,12 @@ async function installBundler(platform, rubyPrefix, engine, rubyVersion) { throw new Error(`Cannot parse bundler input: ${bundlerVersion}`) } - if (engine === 'rubinius') { - console.log(`Rubinius only supports the version of Bundler shipped with it`) - } else if (engine === 'ruby' && isHeadVersion(rubyVersion) && bundlerVersion === '2') { + if (engine === 'ruby' && isHeadVersion(rubyVersion) && bundlerVersion === '2') { console.log(`Using the Bundler version shipped with ${engine}-${rubyVersion}`) } else if (engine === 'truffleruby' && bundlerVersion === '1') { console.log(`Using the Bundler version shipped with ${engine}`) + } else if (engine === 'rubinius') { + console.log(`Rubinius only supports the version of Bundler shipped with it`) } else { const gem = path.join(rubyPrefix, 'bin', 'gem') await exec.exec(gem, ['install', 'bundler', '-v', `~> ${bundlerVersion}`, '--no-document'])