mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
[rubygems/rubygems] Always avoid "Updating rubygems-update" message
The fact that under the hood the upgrade is done through a rubygems-update gem is an implementation detail that does not really help users to know. Plus, it reads a bit weird. https://github.com/rubygems/rubygems/commit/0fa5c50258
This commit is contained in:
parent
3980cebda5
commit
0156b7416c
@ -244,7 +244,7 @@ command to remove old versions.
|
||||
|
||||
@installer = Gem::DependencyInstaller.new update_options
|
||||
|
||||
say "Updating #{name}" unless options[:system] && options[:silent]
|
||||
say "Updating #{name}" unless options[:system]
|
||||
begin
|
||||
@installer.install name, Gem::Requirement.new(version)
|
||||
rescue Gem::InstallError, Gem::DependencyError => e
|
||||
|
||||
@ -79,7 +79,6 @@ class TestGemCommandsUpdateCommand < Gem::TestCase
|
||||
end
|
||||
|
||||
out = @ui.output.split "\n"
|
||||
assert_equal "Updating rubygems-update", out.shift
|
||||
assert_equal "Installing RubyGems 9", out.shift
|
||||
assert_equal "RubyGems system software updated", out.shift
|
||||
|
||||
@ -123,7 +122,6 @@ class TestGemCommandsUpdateCommand < Gem::TestCase
|
||||
end
|
||||
|
||||
out = @ui.output.split "\n"
|
||||
assert_equal "Updating rubygems-update", out.shift
|
||||
assert_empty out
|
||||
|
||||
err = @ui.error.split "\n"
|
||||
@ -179,7 +177,6 @@ class TestGemCommandsUpdateCommand < Gem::TestCase
|
||||
end
|
||||
|
||||
out = @ui.output.split "\n"
|
||||
assert_equal "Updating rubygems-update", out.shift
|
||||
assert_equal "Installing RubyGems 9", out.shift
|
||||
assert_equal "RubyGems system software updated", out.shift
|
||||
|
||||
@ -213,7 +210,6 @@ class TestGemCommandsUpdateCommand < Gem::TestCase
|
||||
end
|
||||
|
||||
out = @ui.output.split "\n"
|
||||
assert_equal "Updating rubygems-update", out.shift
|
||||
assert_equal "Installing RubyGems 9", out.shift
|
||||
assert_equal "RubyGems system software updated", out.shift
|
||||
|
||||
@ -270,7 +266,6 @@ class TestGemCommandsUpdateCommand < Gem::TestCase
|
||||
end
|
||||
|
||||
out = @ui.output.split "\n"
|
||||
assert_equal "Updating rubygems-update", out.shift
|
||||
assert_equal "Installing RubyGems 8", out.shift
|
||||
assert_equal "RubyGems system software updated", out.shift
|
||||
|
||||
@ -381,7 +376,6 @@ class TestGemCommandsUpdateCommand < Gem::TestCase
|
||||
end
|
||||
|
||||
out = @ui.output.split "\n"
|
||||
assert_equal "Updating rubygems-update", out.shift
|
||||
assert_equal "Installing RubyGems 9", out.shift
|
||||
assert_equal "RubyGems system software updated", out.shift
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user