From a0d08243d4c6736c034018b67373bc4f399614a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 16 Jul 2025 11:55:37 +0200 Subject: [PATCH] Add workaround for Ruby 3.1 after RubyGems 3.7.0 release --- dist/index.js | 4 +++- rubygems.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index d231f96..9d18b04 100644 --- a/dist/index.js +++ b/dist/index.js @@ -71454,8 +71454,10 @@ async function rubygemsLatest(gem, platform, engine, rubyVersion) { const floatVersion = common.floatVersion(rubyVersion) if (common.isHeadVersion(rubyVersion)) { console.log('Ruby master builds use included RubyGems') - } else if (floatVersion >= 3.1) { + } else if (floatVersion >= 3.2) { await exec.exec(gem, ['update', '--system']) + } else if (floatVersion >= 3.1) { + await exec.exec(gem, ['update', '--system', '3.6.9']) } else if (floatVersion >= 3.0) { await exec.exec(gem, ['update', '--system', '3.5.23']) } else if (floatVersion >= 2.6) { diff --git a/rubygems.js b/rubygems.js index f96cfca..9c4609c 100644 --- a/rubygems.js +++ b/rubygems.js @@ -39,8 +39,10 @@ async function rubygemsLatest(gem, platform, engine, rubyVersion) { const floatVersion = common.floatVersion(rubyVersion) if (common.isHeadVersion(rubyVersion)) { console.log('Ruby master builds use included RubyGems') - } else if (floatVersion >= 3.1) { + } else if (floatVersion >= 3.2) { await exec.exec(gem, ['update', '--system']) + } else if (floatVersion >= 3.1) { + await exec.exec(gem, ['update', '--system', '3.6.9']) } else if (floatVersion >= 3.0) { await exec.exec(gem, ['update', '--system', '3.5.23']) } else if (floatVersion >= 2.6) {