From 4317a6750dceb917ee9c2be7a8191f6bde103f94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Sun, 23 Jan 2022 05:25:12 +0100 Subject: [rubygems/rubygems] Forbid downgrading past the originally shipped version on Ruby 3.1 https://github.com/rubygems/rubygems/commit/68bef90339 --- lib/rubygems/commands/update_command.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/rubygems/commands') diff --git a/lib/rubygems/commands/update_command.rb b/lib/rubygems/commands/update_command.rb index ecaf717871..42d6f6046b 100644 --- a/lib/rubygems/commands/update_command.rb +++ b/lib/rubygems/commands/update_command.rb @@ -336,7 +336,9 @@ command to remove old versions. # def oldest_supported_version @oldest_supported_version ||= - if Gem.ruby_version > Gem::Version.new("3.0.a") + if Gem.ruby_version > Gem::Version.new("3.1.a") + Gem::Version.new("3.3.3") + elsif Gem.ruby_version > Gem::Version.new("3.0.a") Gem::Version.new("3.2.3") elsif Gem.ruby_version > Gem::Version.new("2.7.a") Gem::Version.new("3.1.2") -- cgit v1.2.3