[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
class Gem::InstallError < Gem::Exception; end
class Gem::RuntimeRequirementNotMetError < Gem::InstallError
attr_accessor :suggestion
def message

View File

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

View File

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

View File

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