Skip to content

Commit a0d0824

Browse files
deivid-rodriguezeregon
authored andcommitted
Add workaround for Ruby 3.1 after RubyGems 3.7.0 release
1 parent a4f8389 commit a0d0824

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

dist/index.js

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

rubygems.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ async function rubygemsLatest(gem, platform, engine, rubyVersion) {
3939
const floatVersion = common.floatVersion(rubyVersion)
4040
if (common.isHeadVersion(rubyVersion)) {
4141
console.log('Ruby master builds use included RubyGems')
42-
} else if (floatVersion >= 3.1) {
42+
} else if (floatVersion >= 3.2) {
4343
await exec.exec(gem, ['update', '--system'])
44+
} else if (floatVersion >= 3.1) {
45+
await exec.exec(gem, ['update', '--system', '3.6.9'])
4446
} else if (floatVersion >= 3.0) {
4547
await exec.exec(gem, ['update', '--system', '3.5.23'])
4648
} else if (floatVersion >= 2.6) {

0 commit comments

Comments
 (0)