summaryrefslogtreecommitdiff
path: root/lib/rubygems/package.rb
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/package.rb
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/package.rb')
-rw-r--r--lib/rubygems/package.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/rubygems/package.rb b/lib/rubygems/package.rb
index d3d0345abc..46485f8c81 100644
--- a/lib/rubygems/package.rb
+++ b/lib/rubygems/package.rb
@@ -48,13 +48,11 @@ require 'rubygems/user_interaction'
require 'zlib'
class Gem::Package
-
include Gem::UserInteraction
class Error < Gem::Exception; end
class FormatError < Error
-
attr_reader :path
def initialize(message, source = nil)
@@ -66,16 +64,13 @@ class Gem::Package
super message
end
-
end
class PathError < Error
-
def initialize(destination, destination_dir)
super "installing into parent path %s of %s is not allowed" %
[destination, destination_dir]
end
-
end
class NonSeekableIO < Error; end
@@ -718,7 +713,6 @@ EOM
rescue Zlib::GzipFile::Error => e
raise Gem::Package::FormatError.new(e.message, entry.full_name)
end
-
end
require 'rubygems/package/digest_io'