1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Don't redownload rubygems-update package if already there

This makes it easier to test the upgrade process locally and should be
more efficient in certain cases where the user has already upgraded in
the past.

https://github.com/rubygems/rubygems/commit/ed6cc88494
This commit is contained in:
David Rodríguez 2021-12-21 10:04:15 +01:00 committed by git
parent 56a0f34d31
commit dd022c1f76

View file

@ -286,9 +286,8 @@ command to remove old versions.
check_oldest_rubygems version
update_gem 'rubygems-update', version
installed_gems = Gem::Specification.find_all_by_name 'rubygems-update', requirement
installed_gems = update_gem('rubygems-update', version) if installed_gems.empty?
version = installed_gems.first.version
install_rubygems version