Skip to content

Commit 7bd7bcb

Browse files
hsbtmatzbot
authored andcommitted
[ruby/rubygems] Removed default bundler spec from specification directory
ruby/rubygems@6fbbde48e2
1 parent ceb2b56 commit 7bd7bcb

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

lib/rubygems/commands/setup_command.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,15 +393,18 @@ def install_default_bundler_gem(bin_dir)
393393
Dir.chdir("bundler") do
394394
built_gem = Gem::Package.build(new_bundler_spec)
395395
begin
396-
Gem::Installer.at(
396+
installer = Gem::Installer.at(
397397
built_gem,
398398
env_shebang: options[:env_shebang],
399399
format_executable: options[:format_executable],
400400
force: options[:force],
401401
bin_dir: bin_dir,
402402
install_dir: default_dir,
403403
wrappers: true
404-
).install
404+
)
405+
installer.install
406+
File.delete installer.spec_file
407+
installer.write_default_spec
405408
ensure
406409
FileUtils.rm_f built_gem
407410
end

0 commit comments

Comments
 (0)