Skip to content

Commit 1482e91

Browse files
committed
Install the exact same Bundler version as in the lockfile if there is a lockfile
1 parent 3e7640a commit 1482e91

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

dist/index.js

Lines changed: 2 additions & 3 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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,8 @@ function readBundledWithFromGemfileLock(lockFile) {
181181
const nextLine = lines[bundledWithLine+1]
182182
if (nextLine && /^\d+/.test(nextLine.trim())) {
183183
const bundlerVersion = nextLine.trim()
184-
const majorVersion = bundlerVersion.match(/^\d+/)[0]
185-
console.log(`Using Bundler ${majorVersion} from ${lockFile} BUNDLED WITH ${bundlerVersion}`)
186-
return majorVersion
184+
console.log(`Using Bundler ${bundlerVersion} from ${lockFile} BUNDLED WITH ${bundlerVersion}`)
185+
return bundlerVersion
187186
}
188187
}
189188
}

0 commit comments

Comments
 (0)