Skip to content

Commit 31a6eaa

Browse files
committed
Manually merged from ruby/rubygems#2636
Enable Style/EmptyLinesAroundClassBody rubocop cop.
1 parent f56fc72 commit 31a6eaa

File tree

274 files changed

+672
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

274 files changed

+672
-0
lines changed

lib/rubygems.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,7 @@ def self.source_date_epoch
11851185
# methods, and then we switch over to `class << self` here. Pick one or the
11861186
# other.
11871187
class << self
1188+
11881189
##
11891190
# RubyGems distributors (like operating system package managers) can
11901191
# disable RubyGems update by setting this to error message printed to
@@ -1307,6 +1308,7 @@ def already_loaded?(file)
13071308
def default_gem_load_paths
13081309
@default_gem_load_paths ||= $LOAD_PATH[load_path_insert_index..-1]
13091310
end
1311+
13101312
end
13111313

13121314
##

lib/rubygems/available_set.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# frozen_string_literal: true
22
class Gem::AvailableSet
3+
34
include Enumerable
45

56
Tuple = Struct.new(:spec, :source)
@@ -161,4 +162,5 @@ def remove_installed!(dep)
161162
def inject_into_list(dep_list)
162163
@set.each {|t| dep_list.add t.spec }
163164
end
165+
164166
end

lib/rubygems/basic_specification.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# used by both Specification and StubSpecification.
55

66
class Gem::BasicSpecification
7+
78
##
89
# Allows installation of extensions for git: gems.
910

@@ -38,8 +39,10 @@ def self.default_specifications_dir
3839
end
3940

4041
class << self
42+
4143
extend Gem::Deprecate
4244
rubygems_deprecate :default_specifications_dir, "Gem.default_specifications_dir"
45+
4346
end
4447

4548
##
@@ -342,4 +345,5 @@ def have_file?(file, suffixes)
342345
false
343346
end
344347
end
348+
345349
end

lib/rubygems/command.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
# A very good example to look at is Gem::Commands::ContentsCommand
1818

1919
class Gem::Command
20+
2021
include Gem::UserInteraction
2122

2223
OptionParser.accept Symbol do |value|
@@ -651,6 +652,7 @@ def wrap(text, width) # :doc:
651652
HELP
652653

653654
# :startdoc:
655+
654656
end
655657

656658
##

lib/rubygems/command_manager.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
# See Gem::Command for instructions on writing gem commands.
3333

3434
class Gem::CommandManager
35+
3536
include Gem::Text
3637
include Gem::UserInteraction
3738

@@ -230,4 +231,5 @@ def load_and_instantiate(command_name)
230231
ui.backtrace e
231232
end
232233
end
234+
233235
end

lib/rubygems/commands/build_command.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
require 'rubygems/package'
44

55
class Gem::Commands::BuildCommand < Gem::Command
6+
67
def initialize
78
super 'build', 'Build a gem from a gemspec'
89

@@ -107,4 +108,5 @@ def build_package(spec)
107108
terminate_interaction 1
108109
end
109110
end
111+
110112
end

lib/rubygems/commands/cert_command.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
require 'rubygems/security'
44

55
class Gem::Commands::CertCommand < Gem::Command
6+
67
def initialize
78
super 'cert', 'Manage RubyGems certificates and signing settings',
89
:add => [], :remove => [], :list => [], :build => [], :sign => []
@@ -311,4 +312,5 @@ def valid_email?(email)
311312
# It's simple, but is all we need
312313
email =~ /\A.+@.+\z/
313314
end
315+
314316
end if defined?(OpenSSL::SSL)

lib/rubygems/commands/check_command.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
require 'rubygems/doctor'
66

77
class Gem::Commands::CheckCommand < Gem::Command
8+
89
include Gem::VersionOption
910

1011
def initialize
@@ -89,4 +90,5 @@ def description # :nodoc:
8990
def usage # :nodoc:
9091
"#{program_name} [OPTIONS] [GEMNAME ...]"
9192
end
93+
9294
end

lib/rubygems/commands/cleanup_command.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
require 'rubygems/uninstaller'
55

66
class Gem::Commands::CleanupCommand < Gem::Command
7+
78
def initialize
89
super 'cleanup',
910
'Clean up old versions of installed gems',
@@ -180,4 +181,5 @@ def uninstall_dep(spec)
180181
# Restore path Gem::Uninstaller may have changed
181182
Gem.use_paths @original_home, *@original_path
182183
end
184+
183185
end

lib/rubygems/commands/contents_command.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
require 'rubygems/version_option'
44

55
class Gem::Commands::ContentsCommand < Gem::Command
6+
67
include Gem::VersionOption
78

89
def initialize
@@ -185,4 +186,5 @@ def specification_directories # :nodoc:
185186
[i, File.join(i, "specifications")]
186187
end.flatten
187188
end
189+
188190
end

0 commit comments

Comments
 (0)