1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
31a6eaabc1 is obsoleted with
  https://github.com/rubygems/rubygems/pull/3820
This commit is contained in:
Hiroshi SHIBATA 2020-09-23 21:59:35 +09:00
parent a46841612c
commit b717f73402
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
274 changed files with 0 additions and 672 deletions

View file

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