mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Enforce no empty lines around class body in rubygems
To normalize the code style with `bundler`.
This commit is contained in:
parent
a6bfc951aa
commit
a89665b7b1
Notes:
git
2020-07-31 21:08:29 +09:00
274 changed files with 1 additions and 672 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue