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

[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

View file

@ -277,11 +277,13 @@ class TestGemCommandsSetupCommand < Gem::TestCase
engine_defaults_rb = File.join lib_rubygems_defaults, 'jruby.rb'
os_defaults_rb = File.join lib_rubygems_defaults, 'operating_system.rb'
old_gauntlet_rubygems_rb = File.join lib, 'gauntlet_rubygems.rb'
old_builder_rb = File.join lib_rubygems, 'builder.rb'
old_format_rb = File.join lib_rubygems, 'format.rb'
old_bundler_c_rb = File.join lib_bundler, 'c.rb'
files_that_go = [old_builder_rb, old_format_rb, old_bundler_c_rb]
files_that_go = [old_gauntlet_rubygems_rb, old_builder_rb, old_format_rb, old_bundler_c_rb]
files_that_stay = [securerandom_rb, engine_defaults_rb, os_defaults_rb]
create_dummy_files(files_that_go + files_that_stay)