diff options
author | Josef Šimánek <[email protected]> | 2022-09-11 05:40:55 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2022-11-11 17:24:08 +0900 |
commit | c7d043065c058f20ce30c61bb3ce127cb15cc0a8 (patch) | |
tree | dc36ca3f11e09451564500fa241fe3fdc521fde7 /lib/rubygems/commands/install_command.rb | |
parent | ceeefb5870c144ddc069b2c9b8a19dbd4947a947 (diff) |
[rubygems/rubygems] Add 'call for update' to RubyGems install command.
https://github.com/rubygems/rubygems/commit/05811f8248
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6715
Diffstat (limited to 'lib/rubygems/commands/install_command.rb')
-rw-r--r-- | lib/rubygems/commands/install_command.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rubygems/commands/install_command.rb b/lib/rubygems/commands/install_command.rb index 071687c63f..c04c01f258 100644 --- a/lib/rubygems/commands/install_command.rb +++ b/lib/rubygems/commands/install_command.rb @@ -5,6 +5,7 @@ require_relative "../dependency_installer" require_relative "../local_remote_options" require_relative "../validator" require_relative "../version_option" +require_relative "../update_suggestion" ## # Gem installer command line tool @@ -17,6 +18,7 @@ class Gem::Commands::InstallCommand < Gem::Command include Gem::VersionOption include Gem::LocalRemoteOptions include Gem::InstallUpdateOptions + include Gem::UpdateSuggestion def initialize defaults = Gem::DependencyInstaller::DEFAULT_OPTIONS.merge({ @@ -168,6 +170,8 @@ You can use `i` command instead of `install`. show_installed + say update_suggestion if eglible_for_update? + terminate_interaction exit_code end |