From b76630f73e8362d3072bfa7178471ddc5d21c235 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 7 Jun 2019 22:34:28 +0900 Subject: [PATCH] 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. --- lib/rubygems/commands/unpack_command.rb | 1 + lib/rubygems/source/local.rb | 2 ++ lib/rubygems/source/specific_file.rb | 2 ++ 3 files changed, 5 insertions(+) diff --git a/lib/rubygems/commands/unpack_command.rb b/lib/rubygems/commands/unpack_command.rb index f7ffea3e95..938db701e5 100644 --- a/lib/rubygems/commands/unpack_command.rb +++ b/lib/rubygems/commands/unpack_command.rb @@ -3,6 +3,7 @@ require 'rubygems/command' require 'rubygems/version_option' require 'rubygems/security_option' require 'rubygems/remote_fetcher' +require 'rubygems/package' # forward-declare diff --git a/lib/rubygems/source/local.rb b/lib/rubygems/source/local.rb index 875e992d85..f68715cdf0 100644 --- a/lib/rubygems/source/local.rb +++ b/lib/rubygems/source/local.rb @@ -3,6 +3,8 @@ # The local source finds gems in the current directory for fulfilling # dependencies. +require 'rubygems/package' + class Gem::Source::Local < Gem::Source def initialize # :nodoc: 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 ##