[rubygems/rubygems] util/rubocop -A --only Layout/EmptyLineBetweenDefs

https://github.com/rubygems/rubygems/commit/00117e69cc
This commit is contained in:
Hiroshi SHIBATA 2023-03-16 11:43:28 +09:00
parent 7c1d590a8a
commit dab1d0ed20
4 changed files with 14 additions and 0 deletions

View File

@ -172,6 +172,7 @@ class Gem::ImpossibleDependenciesError < Gem::Exception
end end
class Gem::InstallError < Gem::Exception; end class Gem::InstallError < Gem::Exception; end
class Gem::RuntimeRequirementNotMetError < Gem::InstallError class Gem::RuntimeRequirementNotMetError < Gem::InstallError
attr_accessor :suggestion attr_accessor :suggestion
def message def message

View File

@ -23,6 +23,7 @@ class Gem::MockGemUi < Gem::StreamUI
@exit_code = exit_code @exit_code = exit_code
end end
end end
class SystemExitException < RuntimeError; end class SystemExitException < RuntimeError; end
module TTY module TTY

View File

@ -45,6 +45,7 @@ class TestDeprecate < Gem::TestCase
def foo def foo
@message = "foo" @message = "foo"
end end
def bar def bar
@message = "bar" @message = "bar"
end end
@ -53,6 +54,7 @@ class TestDeprecate < Gem::TestCase
def foo_arg(msg) def foo_arg(msg)
@message = "foo" + msg @message = "foo" + msg
end end
def bar_arg(msg) def bar_arg(msg)
@message = "bar" + msg @message = "bar" + msg
end end
@ -61,6 +63,7 @@ class TestDeprecate < Gem::TestCase
def foo_kwarg(message:) def foo_kwarg(message:)
@message = "foo" + message @message = "foo" + message
end end
def bar_kwarg(message:) def bar_kwarg(message:)
@message = "bar" + message @message = "bar" + message
end end
@ -73,6 +76,7 @@ class TestDeprecate < Gem::TestCase
def foo def foo
@message = "foo" @message = "foo"
end end
def bar def bar
@message = "bar" @message = "bar"
end end
@ -81,6 +85,7 @@ class TestDeprecate < Gem::TestCase
def foo_arg(msg) def foo_arg(msg)
@message = "foo" + msg @message = "foo" + msg
end end
def bar_arg(msg) def bar_arg(msg)
@message = "bar" + msg @message = "bar" + msg
end end
@ -89,6 +94,7 @@ class TestDeprecate < Gem::TestCase
def foo_kwarg(message:) def foo_kwarg(message:)
@message = "foo" + message @message = "foo" + message
end end
def bar_kwarg(message:) def bar_kwarg(message:)
@message = "bar" + message @message = "bar" + message
end end

View File

@ -1700,6 +1700,7 @@ gem 'other', version
def spec.full_name # so the spec is buildable def spec.full_name # so the spec is buildable
"malicious-1" "malicious-1"
end end
def spec.validate(packaging, strict); end def spec.validate(packaging, strict); end
util_build_gem spec util_build_gem spec
@ -1720,6 +1721,7 @@ gem 'other', version
def spec.full_name # so the spec is buildable def spec.full_name # so the spec is buildable
"malicious-1" "malicious-1"
end end
def spec.validate(*args); end def spec.validate(*args); end
util_build_gem spec util_build_gem spec
@ -1741,6 +1743,7 @@ gem 'other', version
def spec.full_name # so the spec is buildable def spec.full_name # so the spec is buildable
"malicious-1" "malicious-1"
end end
def spec.validate(*args); end def spec.validate(*args); end
spec.require_paths = ["malicious\n``"] spec.require_paths = ["malicious\n``"]
@ -1764,6 +1767,7 @@ gem 'other', version
def spec.full_name # so the spec is buildable def spec.full_name # so the spec is buildable
"malicious-1" "malicious-1"
end end
def spec.validate(*args); end def spec.validate(*args); end
spec.extensions = ["malicious\n``"] spec.extensions = ["malicious\n``"]
@ -1785,6 +1789,7 @@ gem 'other', version
def spec.full_name # so the spec is buildable def spec.full_name # so the spec is buildable
"malicious-1" "malicious-1"
end end
def spec.validate(*args); end def spec.validate(*args); end
spec.specification_version = "malicious\n``" spec.specification_version = "malicious\n``"
@ -1806,6 +1811,7 @@ gem 'other', version
def spec.full_name # so the spec is buildable def spec.full_name # so the spec is buildable
"malicious-1" "malicious-1"
end end
def spec.validate(*args); end def spec.validate(*args); end
spec.add_dependency "b\nfoo", "> 5" spec.add_dependency "b\nfoo", "> 5"