diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-10-13 10:59:43 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-10-13 10:59:43 -0300 |
commit | 4c614651b5b260881f2b292f5d79240a7a3b3155 (patch) | |
tree | 6e077f60ed4b9e73244f015e22a3b264fed63b8f /tools | |
parent | 46f80b509459a908c31f1dec66b3594f95c0f261 (diff) | |
download | rails-4c614651b5b260881f2b292f5d79240a7a3b3155.tar.gz rails-4c614651b5b260881f2b292f5d79240a7a3b3155.tar.bz2 rails-4c614651b5b260881f2b292f5d79240a7a3b3155.zip |
Do not use deprecated `exists?` method
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/profile | 2 |
1 files changed, 1 insertions, 1 deletions
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/] |