diff options
author | Hiroshi SHIBATA <[email protected]> | 2020-09-23 21:02:56 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2020-09-23 21:02:56 +0900 |
commit | 31a6eaabc165d8a222e176f2c809d90622d88ec2 () | |
tree | b5333db2c13888ede5062ccd8ecca649ea261b4c /lib/rubygems/test_utilities.rb | |
parent | f56fc720ee8cd4b79824a1c3843058b662a302bd (diff) |
Manually merged from https://.com/rubygems/rubygems/pull/2636
Enable Style/EmptyLinesAroundClassBody rubocop cop.
-rw-r--r-- | lib/rubygems/test_utilities.rb | 8 |
1 files changed, 8 insertions, 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 |