summaryrefslogtreecommitdiffhomepage
path: root/tasks/mruby_build_commands.rake
diff options
context:
space:
mode:
authorcremno <[email protected]>2014-01-02 01:09:03 +0100
committercremno <[email protected]>2014-01-02 01:09:03 +0100
commit4804b3f7ddaa57627b63abb516b7cab87cc7cefd (patch)
treecf5d4fe47a6cdbeadc26053e109973a262f8370b /tasks/mruby_build_commands.rake
parente8dd8180baae425c893e1054368a4c32c99ea805 (diff)
downloadmruby-4804b3f7ddaa57627b63abb516b7cab87cc7cefd.tar.gz
mruby-4804b3f7ddaa57627b63abb516b7cab87cc7cefd.zip
fix some warnings emitted by 'ruby -w'
- File.exists? is deprecated since 2.1.0 - tasks/mruby_build_commands.rake:268: ambiguous argument
Diffstat (limited to 'tasks/mruby_build_commands.rake')
-rw-r--r--tasks/mruby_build_commands.rake4
1 files changed, 2 insertions, 2 deletions
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