From 8aa9b2fc03278e42b0f4dd3713db7cc8c167c9c5 Mon Sep 17 00:00:00 2001 From: Javier Alvarez Date: Thu, 12 Jun 2014 10:10:14 -0500 Subject: [PATCH] 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' --- lib/pry/method/weird_method_locator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pry/method/weird_method_locator.rb b/lib/pry/method/weird_method_locator.rb index b64b710f..a668d16d 100644 --- a/lib/pry/method/weird_method_locator.rb +++ b/lib/pry/method/weird_method_locator.rb @@ -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)