mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
parent
583e06e28f
commit
7e084ed707
Notes:
git
2021-12-15 18:05:47 +09:00
14 changed files with 73 additions and 66 deletions
|
@ -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}.#{$$}"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue