[前][次][番号順一覧][スレッド一覧]

ruby-changes:56045

From: Nobuyoshi <ko1@a...>
Date: Fri, 7 Jun 2019 22:52:15 +0900 (JST)
Subject: [ruby-changes:56045] Nobuyoshi Nakada: b76630f73e (trunk): require rubygems/package where used

https://git.ruby-lang.org/ruby.git/commit/?id=b76630f73e

From b76630f73e8362d3072bfa7178471ddc5d21c235 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 7 Jun 2019 22:34:28 +0900
Subject: 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.

diff --git a/lib/rubygems/commands/unpack_command.rb b/lib/rubygems/commands/unpack_command.rb
index f7ffea3..938db70 100644
--- a/lib/rubygems/commands/unpack_command.rb
+++ b/lib/rubygems/commands/unpack_command.rb
@@ -3,6 +3,7 @@ require 'rubygems/command' https://github.com/ruby/ruby/blob/trunk/lib/rubygems/commands/unpack_command.rb#L3
 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 875e992..f68715c 100644
--- a/lib/rubygems/source/local.rb
+++ b/lib/rubygems/source/local.rb
@@ -3,6 +3,8 @@ https://github.com/ruby/ruby/blob/trunk/lib/rubygems/source/local.rb#L3
 # 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 a22772b..0905f6d 100644
--- a/lib/rubygems/source/specific_file.rb
+++ b/lib/rubygems/source/specific_file.rb
@@ -3,6 +3,8 @@ https://github.com/ruby/ruby/blob/trunk/lib/rubygems/source/specific_file.rb#L3
 # A source representing a single .gem file.  This is used for installation of
 # local gems.
 
+require 'rubygems/package'
+
 class Gem::Source::SpecificFile < Gem::Source
 
   ##
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]