summaryrefslogtreecommitdiff
path: root/lib/rubygems/format.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/format.rb')
-rw-r--r--lib/rubygems/format.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/format.rb b/lib/rubygems/format.rb
index 246c599316..9644f6ab8e 100644
--- a/lib/rubygems/format.rb
+++ b/lib/rubygems/format.rb
@@ -28,7 +28,7 @@ class Gem::Format
# representing the data in the gem
def self.from_file_by_path(file_path, security_policy = nil)
- unless File.exist?(file_path)
+ unless File.file?(file_path)
raise Gem::Exception, "Cannot load gem at [#{file_path}] in #{Dir.pwd}"
end