summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands/setup_command.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2020-02-01 11:14:04 +0900
committerHiroshi SHIBATA <[email protected]>2020-02-01 11:14:57 +0900
commit600a715c9bde99fe2e9a669465d78833445273e8 ()
tree8244622e8cc02b40dd0dad29d30fc60a11342396 /lib/rubygems/commands/setup_command.rb
parentadc303131187654d8ce83f3db17eefa3d5bae26c (diff)
Merge the current master branch of rubygems/rubygems.
Just started to develop RubyGems 3.2.0.
-rw-r--r--lib/rubygems/commands/setup_command.rb19
1 files changed, 18 insertions, 1 deletions
@@ -20,7 +20,8 @@ class Gem::Commands::SetupCommand < Gem::Command
:force => true,
:site_or_vendor => 'sitelibdir',
:destdir => '', :prefix => '', :previous_version => '',
- :regenerate_binstubs => true
add_option '--previous-version=VERSION',
'Previous version of RubyGems',
@@ -89,6 +90,11 @@ class Gem::Commands::SetupCommand < Gem::Command
options[:regenerate_binstubs] = value
end
add_option '-f', '--[no-]force',
'Forcefully overwrite binstubs' do |value, options|
options[:force] = value
@@ -181,6 +187,7 @@ By default, this RubyGems will install gem as:
say "RubyGems #{Gem::VERSION} installed"
regenerate_binstubs if options[:regenerate_binstubs]
uninstall_old_gemcutter
@@ -626,6 +633,16 @@ abort "#{deprecation_message}"
command.invoke(*args)
end
private
def target_bin_path(bin_dir, bin_file)