mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 18:13:58 +02:00
Manually merged from https://github.com/rubygems/rubygems/pull/2636
Enable Style/EmptyLinesAroundClassBody rubocop cop.
This commit is contained in:
parent
f56fc720ee
commit
31a6eaabc1
274 changed files with 672 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue