Skip to content

Commit

Permalink
[rubygems/rubygems] Forbid downgrading past the originally shipped ve…
Browse files Browse the repository at this point in the history
…rsion on Ruby 3.1

rubygems/rubygems@68bef90339
  • Loading branch information
deivid-rodriguez authored and matzbot committed Jan 24, 2022
1 parent 663833b commit 4317a67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rubygems/commands/update_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,9 @@ def which_to_update(highest_installed_gems, gem_names, system = false)
#
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")
Expand Down

0 comments on commit 4317a67

Please sign in to comment.