summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands/install_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/commands/install_command.rb')
-rw-r--r--lib/rubygems/commands/install_command.rb2
1 files changed, 1 insertions, 1 deletions
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