Skip to content

Commit e5a2674

Browse files
committed
Fix value for options
1 parent cadade3 commit e5a2674

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

dist/index.js

Lines changed: 4 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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,11 @@ async function bundleInstall(gemfile, lockFile, platform, engine, rubyVersion, b
240240
return false
241241
}
242242

243+
// Before the lockfile exists, we need to specify which Bundler version to use explicitly
244+
const optionsWithBundlerVersion = { env: { ...process.env, BUNDLER_VERSION: bundlerVersion } }
245+
243246
// config
244247
const path = 'vendor/bundle'
245-
const optionsWithBundlerVersion = {options: {env: {...process.env, BUNDLER_VERSION: bundlerVersion}}}
246248

247249
await exec.exec('bundle', ['config', '--local', 'path', path], optionsWithBundlerVersion)
248250

windows.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async function downloadAndExtract(engine, version, url, base, rubyPrefix) {
6868
})
6969

7070
await common.measure('Extracting Ruby', async () =>
71-
exec.exec('7z', ['x', downloadPath, `-xr!${base}\\share\\doc`, `-o${parentDir}`], {silent: true}))
71+
exec.exec('7z', ['x', downloadPath, `-xr!${base}\\share\\doc`, `-o${parentDir}`], { silent: true }))
7272

7373
if (base !== path.basename(rubyPrefix)) {
7474
await io.mv(path.join(parentDir, base), rubyPrefix)

0 commit comments

Comments
 (0)