summaryrefslogtreecommitdiff
path: root/lib/rubygems/source
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-07-13 12:01:07 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-07-31 21:07:19 +0900
commita89665b7b1abb5bb6005fd638dc920848cc50f72 (patch)
treef6c84f1bfb1148d203cd63c72c458de3a8f5e961 /lib/rubygems/source
parenta6bfc951aa9c48e2a4608a9ae84e2e3b4fd9b390 (diff)
Enforce no empty lines around class body in rubygems
To normalize the code style with `bundler`.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3379
Diffstat (limited to 'lib/rubygems/source')
-rw-r--r--lib/rubygems/source/git.rb2
-rw-r--r--lib/rubygems/source/installed.rb2
-rw-r--r--lib/rubygems/source/local.rb2
-rw-r--r--lib/rubygems/source/lock.rb2
-rw-r--r--lib/rubygems/source/specific_file.rb2
-rw-r--r--lib/rubygems/source/vendor.rb2
6 files changed, 0 insertions, 12 deletions
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