diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-09-23 21:59:35 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-09-23 22:01:44 +0900 |
commit | b717f73402dc6f2d6ba6a1d72d9c8543a4f2cd27 (patch) | |
tree | 9d4a4c198aa124592552c66e2a3e6d130b6486eb /lib/rubygems/mock_gem_ui.rb | |
parent | a46841612c846f00f31ff63d886620d66cdea5b3 (diff) | |
download | ruby-b717f73402dc6f2d6ba6a1d72d9c8543a4f2cd27.tar.gz |
Revert "Manually merged from https://github.com/rubygems/rubygems/pull/2636"
31a6eaabc165d8a222e176f2c809d90622d88ec2 is obsoleted with
https://github.com/rubygems/rubygems/pull/3820
Diffstat (limited to 'lib/rubygems/mock_gem_ui.rb')
-rw-r--r-- | lib/rubygems/mock_gem_ui.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/rubygems/mock_gem_ui.rb b/lib/rubygems/mock_gem_ui.rb index 9ece75881c..ec244fb7c6 100644 --- a/lib/rubygems/mock_gem_ui.rb +++ b/lib/rubygems/mock_gem_ui.rb @@ -6,27 +6,22 @@ require 'rubygems/user_interaction' # retrieval during tests. class Gem::MockGemUi < Gem::StreamUI - ## # Raised when you haven't provided enough input to your MockGemUi class InputEOFError < RuntimeError - def initialize(question) super "Out of input for MockGemUi on #{question.inspect}" end - end class TermError < RuntimeError - attr_reader :exit_code def initialize(exit_code) super @exit_code = exit_code end - end class SystemExitException < RuntimeError; end @@ -87,5 +82,4 @@ class Gem::MockGemUi < Gem::StreamUI raise TermError, status if status != 0 raise SystemExitException end - end |