diff options
author | Hiroshi SHIBATA <[email protected]> | 2021-01-04 10:09:05 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2021-01-04 13:14:43 +0900 |
commit | 5537adf719a37a30b17d39111cc03700f353aa2d (patch) | |
tree | 7523de9950b8a0118143f4ee0029aee17d043e04 /lib/rubygems/commands/install_command.rb | |
parent | 35c3a24c8cbcccff1108079360e2063fc354b4bd (diff) |
Track RubyGems master(3.3.0.dev) branch at 55634a8af18a52df86c4275d70fa1179118bcc20
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4021
Diffstat (limited to 'lib/rubygems/commands/install_command.rb')
-rw-r--r-- | lib/rubygems/commands/install_command.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/rubygems/commands/install_command.rb b/lib/rubygems/commands/install_command.rb index 70825b88fd..a528ea087e 100644 --- a/lib/rubygems/commands/install_command.rb +++ b/lib/rubygems/commands/install_command.rb @@ -27,6 +27,8 @@ class Gem::Commands::InstallCommand < Gem::Command :without_groups => [], }) + defaults.merge!(install_update_options) + super 'install', 'Install a gem into the local repository', defaults add_install_update_options @@ -43,8 +45,9 @@ class Gem::Commands::InstallCommand < Gem::Command end def defaults_str # :nodoc: - "--both --version '#{Gem::Requirement.default}' --document --no-force\n" + - "--install-dir #{Gem.dir} --lock" + "--both --version '#{Gem::Requirement.default}' --no-force\n" + + "--install-dir #{Gem.dir} --lock\n" + + install_update_defaults_str end def description # :nodoc: |