From e775a930e1631f11b3bb9e2a0feb260f5a5df769 Mon Sep 17 00:00:00 2001 From: drbrain Date: Wed, 16 Oct 2013 06:00:39 +0000 Subject: * lib/rubygems: Update to RubyGems master b955554. Changes: Fixed NameError for Gem::Ext due to re-entering file lookup in RubyGems' overridden require. Bug by Koichi Sasada. Fixed possible circular require warning in tests. Used existing constant for `gem install -g` dependecy file list. * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rubygems/commands/install_command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rubygems/commands') diff --git a/lib/rubygems/commands/install_command.rb b/lib/rubygems/commands/install_command.rb index a45d9057b0..0bb40ed633 100644 --- a/lib/rubygems/commands/install_command.rb +++ b/lib/rubygems/commands/install_command.rb @@ -35,7 +35,7 @@ class Gem::Commands::InstallCommand < Gem::Command add_option(:"Install/Update", '-g', '--file [FILE]', 'Read from a gem dependencies API file and', 'install the listed gems') do |v,o| - v = %w[gem.deps.rb Gemfile Isolate].find do |file| + v = Gem::GEM_DEP_FILES.find do |file| File.exist? file end unless v -- cgit v1.2.3