Merge RubyGems and Bundler master

Merge from 793ad95ecb
This commit is contained in:
Hiroshi SHIBATA 2021-12-14 21:14:58 +09:00
parent 583e06e28f
commit 7e084ed707
Notes: git 2021-12-15 18:05:47 +09:00
14 changed files with 73 additions and 66 deletions

View file

@ -12,8 +12,6 @@ class Gem::Commands::SetupCommand < Gem::Command
ENV_PATHS = %w[/usr/bin/env /bin/env].freeze
def initialize
require 'tmpdir'
super 'setup', 'Install RubyGems',
:format_executable => false, :document => %w[ri],
:force => true,
@ -253,6 +251,8 @@ By default, this RubyGems will install gem as:
Dir.chdir path do
bin_file = "gem"
require 'tmpdir'
dest_file = target_bin_path(bin_dir, bin_file)
bin_tmp_file = File.join Dir.tmpdir, "#{bin_file}.#{$$}"