Skip to content

Commit

Permalink
Do not use deprecated exists? method
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Oct 13, 2014
1 parent 46f80b5 commit 4c61465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/profile
Original file line number Diff line number Diff line change
Expand Up @@ -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/]
Expand Down

0 comments on commit 4c61465

Please sign in to comment.