[rubygems/rubygems] Fix ruby setup.rb leaving traces in source folder

It's the `Gem::Installer` below what installs executables, and the code
being deleted here is now actually creating a `gems/` folder in the root
of the source repo when running `ruby setup.rb`.

0e69a8b0d6
This commit is contained in:
David Rodríguez 2023-12-14 22:59:15 +01:00 committed by git
parent 4d5bfa7c3b
commit 7c72755da8

View file

@ -395,12 +395,6 @@ By default, this RubyGems will install gem as:
each {|default_gem| rm_r File.join(bundler_spec.gems_dir, default_gem) } each {|default_gem| rm_r File.join(bundler_spec.gems_dir, default_gem) }
end end
bundler_bin_dir = new_bundler_spec.bin_dir
mkdir_p bundler_bin_dir, mode: 0o755
bundler_spec.executables.each do |e|
cp File.join("bundler", new_bundler_spec.bindir, e), File.join(bundler_bin_dir, e)
end
require_relative "../installer" require_relative "../installer"
Dir.chdir("bundler") do Dir.chdir("bundler") do