From 4c614651b5b260881f2b292f5d79240a7a3b3155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Mon, 13 Oct 2014 10:59:43 -0300 Subject: Do not use deprecated `exists?` method --- tools/profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/profile') diff --git a/tools/profile b/tools/profile index 856057c416..eb7fc7792b 100755 --- a/tools/profile +++ b/tools/profile @@ -68,7 +68,7 @@ module CodeTools private def assert_ruby_file_exists(path) - fail Error.new("No such file") unless File.exists?(path) + fail Error.new("No such file") unless File.exist?(path) fail Error.new("#{path} is a directory") if File.directory?(path) ruby_extension = File.extname(path) == '.rb' ruby_executable = File.open(path, 'rb') {|f| f.readline } =~ [/\A#!.*ruby/] -- cgit v1.2.3