summaryrefslogtreecommitdiff
path: root/lib/rubygems/package.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-09-23 21:59:35 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-09-23 22:01:44 +0900
commitb717f73402dc6f2d6ba6a1d72d9c8543a4f2cd27 (patch)
tree9d4a4c198aa124592552c66e2a3e6d130b6486eb /lib/rubygems/package.rb
parenta46841612c846f00f31ff63d886620d66cdea5b3 (diff)
Revert "Manually merged from https://github.com/rubygems/rubygems/pull/2636"
31a6eaabc165d8a222e176f2c809d90622d88ec2 is obsoleted with https://github.com/rubygems/rubygems/pull/3820
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 9780fc9dce..9b53cd4a7b 100644
--- a/lib/rubygems/package.rb
+++ b/lib/rubygems/package.rb
@@ -47,13 +47,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)
@@ -65,16 +63,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
@@ -711,7 +706,6 @@ EOM
rescue Zlib::GzipFile::Error => e
raise Gem::Package::FormatError.new(e.message, entry.full_name)
end
-
end
require 'rubygems/package/digest_io'