[rubygems/rubygems] Add 'call for update' to RubyGems install command.

05811f8248
This commit is contained in:
Josef Šimánek 2022-09-11 05:40:55 +02:00 committed by Hiroshi SHIBATA
parent ceeefb5870
commit c7d043065c
Notes: git 2022-11-11 08:24:29 +00:00
6 changed files with 243 additions and 0 deletions

View file

@ -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