[rubygems/rubygems] Remove old gauntlet_rubygems file on rubygems upgrade

The file was removed at
65b709b095,
shipped with rubygems 2.6.5.

739159a120
This commit is contained in:
David Rodríguez 2020-05-04 13:08:29 +02:00 committed by Hiroshi SHIBATA
parent c982c5efac
commit 0e195c82c1
Notes: git 2020-05-08 14:14:11 +09:00
2 changed files with 6 additions and 1 deletions

View file

@ -604,6 +604,9 @@ abort "#{deprecation_message}"
to_remove = old_lib_files - lib_files
gauntlet_rubygems = File.join(lib_dir, 'gauntlet_rubygems.rb')
to_remove << gauntlet_rubygems if File.exist? gauntlet_rubygems
to_remove.delete_if do |file|
file.start_with? 'defaults'
end