From 31a6eaabc165d8a222e176f2c809d90622d88ec2 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 23 Sep 2020 21:02:56 +0900 Subject: Manually merged from https://github.com/rubygems/rubygems/pull/2636 Enable Style/EmptyLinesAroundClassBody rubocop cop. --- lib/rubygems/test_case.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/rubygems/test_case.rb') diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb index 7bf7142a45..3dd10d6dfc 100644 --- a/lib/rubygems/test_case.rb +++ b/lib/rubygems/test_case.rb @@ -83,6 +83,7 @@ end require "rubygems/command" class Gem::Command + ## # Allows resetting the hash of specific args per command. This method is # available when requiring 'rubygems/test_case' @@ -90,6 +91,7 @@ class Gem::Command def self.specific_extra_args_hash=(value) @specific_extra_args_hash = value end + end ## @@ -99,6 +101,7 @@ end # your normal set of gems is not affected. class Gem::TestCase < Minitest::Test + extend Gem::Deprecate attr_accessor :fetcher # :nodoc: @@ -1267,6 +1270,7 @@ Also, a list: end class << self + # :nodoc: ## # Return the join path, with escaping backticks, dollars, and @@ -1282,6 +1286,7 @@ Also, a list: "\"#{path.gsub(/[`$"]/, '\\&')}\"" end end + end @@good_rake = "#{rubybin} #{escape_path(TEST_PATH, 'good_rake.rb')}" @@ -1399,6 +1404,7 @@ Also, a list: # It is available by requiring Gem::TestCase. class StaticSet < Gem::Resolver::Set + ## # A StaticSet ignores remote because it has a fixed set of gems. @@ -1453,6 +1459,7 @@ Also, a list: def prefetch(reqs) # :nodoc: end + end ## @@ -1520,6 +1527,7 @@ Also, a list: PUBLIC_KEY = nil PUBLIC_CERT = nil end if defined?(OpenSSL::SSL) + end require 'rubygems/test_utilities' -- cgit v1.2.3