Enable Style/EmptyLinesAroundClassBody rubocop cop.
This commit is contained in:
Hiroshi SHIBATA 2020-09-23 21:02:56 +09:00
parent f56fc720ee
commit 31a6eaabc1
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
274 changed files with 672 additions and 0 deletions

View file

@ -29,6 +29,7 @@ require 'rubygems/remote_fetcher'
# See RubyGems' tests for more examples of FakeFetcher.
class Gem::FakeFetcher
attr_reader :data
attr_reader :last_request
attr_accessor :paths
@ -161,13 +162,16 @@ class Gem::FakeFetcher
download spec, source.uri.to_s
end
end
# :stopdoc:
class Gem::RemoteFetcher
def self.fetcher=(fetcher)
@fetcher = fetcher
end
end
# :startdoc:
@ -187,6 +191,7 @@ end
# After the gems are created they are removed from Gem.dir.
class Gem::TestCase::SpecFetcherSetup
##
# Executes a SpecFetcher setup block. Yields an instance then creates the
# gems and specifications defined in the instance.
@ -341,6 +346,7 @@ class Gem::TestCase::SpecFetcherSetup
io.write spec.to_ruby_for_cache
end
end
end
##
@ -352,6 +358,7 @@ end
# This class was added to flush out problems in Rubinius' IO implementation.
class TempIO < Tempfile
##
# Creates a new TempIO that will be initialized to contain +string+.
@ -369,4 +376,5 @@ class TempIO < Tempfile
flush
Gem.read_binary path
end
end