From 819c372fe9fc828232aee092a195763de9f032eb Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Wed, 8 Jan 2020 22:05:37 +0100 Subject: [PATCH] Install Bundler 1 on Windows for Ruby < 2.6 without Bundler --- dist/index.js | 2 +- windows.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index bea0df2..4e9fe41 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6495,7 +6495,7 @@ async function downloadExtractAndSetPATH(ruby) { core.exportVariable('PATH', newPath) if (!fs.existsSync(`${rubyPrefix}\\bin\\bundle.cmd`)) { - await exec.exec(`${rubyPrefix}\\bin\\gem install bundler --no-document`) + await exec.exec(`${rubyPrefix}\\bin\\gem install bundler -v "~> 1" --no-document`) } return rubyPrefix diff --git a/windows.js b/windows.js index ce3e530..d9f1a61 100644 --- a/windows.js +++ b/windows.js @@ -28,7 +28,7 @@ export async function downloadExtractAndSetPATH(ruby) { core.exportVariable('PATH', newPath) if (!fs.existsSync(`${rubyPrefix}\\bin\\bundle.cmd`)) { - await exec.exec(`${rubyPrefix}\\bin\\gem install bundler --no-document`) + await exec.exec(`${rubyPrefix}\\bin\\gem install bundler -v "~> 1" --no-document`) } return rubyPrefix