diff options
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 |