summaryrefslogtreecommitdiff
path: root/lib/rubygems/source/specific_file.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-07 22:34:28 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-07 22:48:45 +0900
commitb76630f73e8362d3072bfa7178471ddc5d21c235 (patch)
treee4bf586874f8df9917adacca26e5b75f27168dd8 /lib/rubygems/source/specific_file.rb
parent6566919176834efb47ea717967669ca83eb78347 (diff)
require rubygems/package where used
* lib/rubygems/commands/unpack_command.rb: 'rubygems/package' is required. fix the failure of `gem unpack` command. * lib/rubygems/source/local.rb: ditto. * lib/rubygems/source/specific_file.rb: ditto.
Diffstat (limited to 'lib/rubygems/source/specific_file.rb')
-rw-r--r--lib/rubygems/source/specific_file.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rubygems/source/specific_file.rb b/lib/rubygems/source/specific_file.rb
index a22772b9c0..0905f6d0e9 100644
--- a/lib/rubygems/source/specific_file.rb
+++ b/lib/rubygems/source/specific_file.rb
@@ -3,6 +3,8 @@
# A source representing a single .gem file. This is used for installation of
# local gems.
+require 'rubygems/package'
+
class Gem::Source::SpecificFile < Gem::Source
##