From 4804b3f7ddaa57627b63abb516b7cab87cc7cefd Mon Sep 17 00:00:00 2001 From: cremno Date: Thu, 2 Jan 2014 01:09:03 +0100 Subject: fix some warnings emitted by 'ruby -w' - File.exists? is deprecated since 2.1.0 - tasks/mruby_build_commands.rake:268: ambiguous argument --- tasks/mruby_build_commands.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tasks/mruby_build_commands.rake') diff --git a/tasks/mruby_build_commands.rake b/tasks/mruby_build_commands.rake index 349b8717d..d7b87514e 100644 --- a/tasks/mruby_build_commands.rake +++ b/tasks/mruby_build_commands.rake @@ -106,7 +106,7 @@ module MRuby private def get_dependencies(file) file = file.ext('d') unless File.extname(file) == '.d' - if File.exists?(file) + if File.exist?(file) File.read(file).gsub("\\\n ", "").scan(/^\S+:\s+(.+)$/).flatten.map {|s| s.split(' ') }.flatten else [] @@ -265,7 +265,7 @@ module MRuby # if mrbc execution fail, drop the file unless $?.exitstatus File.delete(out.path) - exit -1 + exit(-1) end end end -- cgit v1.2.3