From a89665b7b1abb5bb6005fd638dc920848cc50f72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Mon, 13 Jul 2020 12:01:07 +0200 Subject: Enforce no empty lines around class body in rubygems To normalize the code style with `bundler`. --- lib/rubygems/source/git.rb | 2 -- lib/rubygems/source/installed.rb | 2 -- lib/rubygems/source/local.rb | 2 -- lib/rubygems/source/lock.rb | 2 -- lib/rubygems/source/specific_file.rb | 2 -- lib/rubygems/source/vendor.rb | 2 -- 6 files changed, 12 deletions(-) (limited to 'lib/rubygems/source') diff --git a/lib/rubygems/source/git.rb b/lib/rubygems/source/git.rb index b76a068ed1..f06f3b05d6 100644 --- a/lib/rubygems/source/git.rb +++ b/lib/rubygems/source/git.rb @@ -12,7 +12,6 @@ require 'rubygems/util' # source.specs class Gem::Source::Git < Gem::Source - ## # The name of the gem created by this git gem. @@ -239,5 +238,4 @@ class Gem::Source::Git < Gem::Source Digest::SHA1.hexdigest normalized end - end diff --git a/lib/rubygems/source/installed.rb b/lib/rubygems/source/installed.rb index 8e20cbd76d..7e1dd7af5a 100644 --- a/lib/rubygems/source/installed.rb +++ b/lib/rubygems/source/installed.rb @@ -3,7 +3,6 @@ # Represents an installed gem. This is used for dependency resolution. class Gem::Source::Installed < Gem::Source - def initialize # :nodoc: @uri = nil end @@ -36,5 +35,4 @@ class Gem::Source::Installed < Gem::Source def pretty_print(q) # :nodoc: q.text '[Installed]' end - end diff --git a/lib/rubygems/source/local.rb b/lib/rubygems/source/local.rb index 15700a0df2..078b06203f 100644 --- a/lib/rubygems/source/local.rb +++ b/lib/rubygems/source/local.rb @@ -4,7 +4,6 @@ # dependencies. class Gem::Source::Local < Gem::Source - def initialize # :nodoc: @specs = nil @api_uri = nil @@ -129,5 +128,4 @@ class Gem::Source::Local < Gem::Source end end end - end diff --git a/lib/rubygems/source/lock.rb b/lib/rubygems/source/lock.rb index 3b3f491750..49f097467b 100644 --- a/lib/rubygems/source/lock.rb +++ b/lib/rubygems/source/lock.rb @@ -5,7 +5,6 @@ # dependency lock files. class Gem::Source::Lock < Gem::Source - ## # The wrapped Gem::Source @@ -48,5 +47,4 @@ class Gem::Source::Lock < Gem::Source def uri # :nodoc: @wrapped.uri end - end diff --git a/lib/rubygems/source/specific_file.rb b/lib/rubygems/source/specific_file.rb index a22772b9c0..24db1440dd 100644 --- a/lib/rubygems/source/specific_file.rb +++ b/lib/rubygems/source/specific_file.rb @@ -4,7 +4,6 @@ # local gems. class Gem::Source::SpecificFile < Gem::Source - ## # The path to the gem for this specific file. @@ -69,5 +68,4 @@ class Gem::Source::SpecificFile < Gem::Source super end end - end diff --git a/lib/rubygems/source/vendor.rb b/lib/rubygems/source/vendor.rb index a87fa63331..543acf1388 100644 --- a/lib/rubygems/source/vendor.rb +++ b/lib/rubygems/source/vendor.rb @@ -3,7 +3,6 @@ # This represents a vendored source that is similar to an installed gem. class Gem::Source::Vendor < Gem::Source::Installed - ## # Creates a new Vendor source for a gem that was unpacked at +path+. @@ -23,5 +22,4 @@ class Gem::Source::Vendor < Gem::Source::Installed nil end end - end -- cgit v1.2.3