Fixup rubygems: latest to work with Rubies < 2.3

This commit is contained in:
MSP-Greg
2023-12-28 13:20:54 +02:00
committed by Benoit Daloze
parent 961f85197f
commit 251b9047a8
4 changed files with 8 additions and 1 deletions
Generated Vendored
+3
View File
@@ -65133,6 +65133,9 @@ async function rubygemsLatest(gem, platform, engine, rubyVersion) {
await exec.exec(gem, ['update', '--system', '3.4.22'])
} else if (floatVersion >= 2.3) {
await exec.exec(gem, ['update', '--system', '3.3.27'])
} else if (floatVersion >= 1.9) {
await exec.exec(`${gem} install rubygems-update -v 2.7.11 --no-document`)
await exec.exec('update_rubygems')
} else {
console.log(`Cannot update RubyGems for Ruby version ${rubyVersion}`)
}