summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands/update_command.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2023-12-26 20:55:39 +0100
committerHiroshi SHIBATA <[email protected]>2024-01-11 13:51:52 +0900
commit3980cebda5438b3f7803015f37c25d94c0573b5f (patch)
treee896c00eb7d2de0d692fa4ee05ee979a5dbb0106 /lib/rubygems/commands/update_command.rb
parentaa908aa0655b6c0a566675e1ef9104aae7a84925 (diff)
[rubygems/rubygems] Make `gem update --system` respect ruby version constraints
https://github.com/rubygems/rubygems/commit/36052abbe2
Diffstat (limited to 'lib/rubygems/commands/update_command.rb')
-rw-r--r--lib/rubygems/commands/update_command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/commands/update_command.rb b/lib/rubygems/commands/update_command.rb
index 170cdd297f..144f67acc5 100644
--- a/lib/rubygems/commands/update_command.rb
+++ b/lib/rubygems/commands/update_command.rb
@@ -282,7 +282,7 @@ command to remove old versions.
check_oldest_rubygems version
installed_gems = Gem::Specification.find_all_by_name "rubygems-update", requirement
- installed_gems = update_gem("rubygems-update", version) if installed_gems.empty? || installed_gems.first.version != version
+ installed_gems = update_gem("rubygems-update", requirement) if installed_gems.empty? || installed_gems.first.version != version
return if installed_gems.empty?
install_rubygems installed_gems.first