summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2024-04-18 16:29:10 +0900
committergit <svn-admin@ruby-lang.org>2025-10-28 11:06:17 +0000
commit7bd7bcbf3e683e3d4d88696b72444e6c14685cc2 (patch)
treef724f6577ab5cdf93d9c7c723ed8c158acb7b9a2
parentceb2b569af29ae515042c5fbab533e003ac42a4d (diff)
[ruby/rubygems] Removed default bundler spec from specification directory
https://github.com/ruby/rubygems/commit/6fbbde48e2
-rw-r--r--lib/rubygems/commands/setup_command.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/rubygems/commands/setup_command.rb b/lib/rubygems/commands/setup_command.rb
index 2b9c522a6b..8fcece5d5c 100644
--- a/lib/rubygems/commands/setup_command.rb
+++ b/lib/rubygems/commands/setup_command.rb
@@ -393,7 +393,7 @@ By default, this RubyGems will install gem as:
Dir.chdir("bundler") do
built_gem = Gem::Package.build(new_bundler_spec)
begin
- Gem::Installer.at(
+ installer = Gem::Installer.at(
built_gem,
env_shebang: options[:env_shebang],
format_executable: options[:format_executable],
@@ -401,7 +401,10 @@ By default, this RubyGems will install gem as:
bin_dir: bin_dir,
install_dir: default_dir,
wrappers: true
- ).install
+ )
+ installer.install
+ File.delete installer.spec_file
+ installer.write_default_spec
ensure
FileUtils.rm_f built_gem
end