[rubygems/rubygems] util/rubocop -A --only Style/DefWithParentheses

https://github.com/rubygems/rubygems/commit/91391ceedf
This commit is contained in:
Hiroshi SHIBATA 2023-03-16 13:30:25 +09:00
Родитель 03b82d1865
Коммит bd57322bfe
4 изменённых файлов: 10 добавлений и 10 удалений

Просмотреть файл

@ -29,7 +29,7 @@ class Gem::MockGemUi < Gem::StreamUI
module TTY
attr_accessor :tty
def tty?()
def tty?
@tty = true unless defined?(@tty)
@tty
end

Просмотреть файл

@ -811,7 +811,7 @@ class TestGemPackage < Gem::Package::TarTestCase
def test_load_spec
entry = StringIO.new Gem::Util.gzip @spec.to_yaml
def entry.full_name()
def entry.full_name
"metadata.gz"
end
@ -1111,7 +1111,7 @@ class TestGemPackage < Gem::Package::TarTestCase
def test_verify_entry
entry = Object.new
def entry.full_name()
def entry.full_name
raise ArgumentError, "whatever"
end
@ -1140,7 +1140,7 @@ class TestGemPackage < Gem::Package::TarTestCase
$good_name = vm
entry = Object.new
def entry.full_name()
def entry.full_name
$good_name
end
@ -1161,7 +1161,7 @@ class TestGemPackage < Gem::Package::TarTestCase
$bad_name = vm
entry = Object.new
def entry.full_name()
def entry.full_name
$bad_name
end

Просмотреть файл

@ -656,7 +656,7 @@ PeIQQkFng2VVot/WAQbv3ePqWq07g1BBcwIBAg==
res
else
res = Net::HTTPOK.new nil, 200, nil
def res.body()
def res.body
"real_path"
end
res
@ -721,7 +721,7 @@ PeIQQkFng2VVot/WAQbv3ePqWq07g1BBcwIBAg==
def fetcher.request(uri, request_class, last_modified = nil)
$fetched_uri = uri
res = Net::HTTPOK.new nil, 200, nil
def res.body()
def res.body
"success"
end
res

Просмотреть файл

@ -452,7 +452,7 @@ class TestGemSecurityPolicy < Gem::TestCase
package.checksums[Gem::Security::DIGEST_NAME] = {}
s = StringIO.new metadata_gz
def s.full_name()
def s.full_name
"metadata.gz"
end
@ -477,7 +477,7 @@ class TestGemSecurityPolicy < Gem::TestCase
package.checksums[Gem::Security::DIGEST_NAME] = {}
s = StringIO.new metadata_gz
def s.full_name()
def s.full_name
"metadata.gz"
end
@ -508,7 +508,7 @@ class TestGemSecurityPolicy < Gem::TestCase
package.checksums[Gem::Security::DIGEST_NAME] = {}
s = StringIO.new metadata_gz
def s.full_name()
def s.full_name
"metadata.gz"
end