1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Remove deprecation warning for File.exists?

Rspec 3.0 + Ruby 2.1.1 raises deprecation warning 'warning: File.exists? is a deprecated name, use File.exist? instead'
This commit is contained in:
Javier Alvarez 2014-06-12 10:10:14 -05:00
parent c9dc06fa39
commit 8aa9b2fc03

View file

@ -164,7 +164,7 @@ class Pry
end
def valid_file?(file)
(File.exists?(file) && !File.directory?(file)) || Pry.eval_path == file
(File.exist?(file) && !File.directory?(file)) || Pry.eval_path == file
end
def lines_for_file(file)