diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-01-02 15:41:47 -0800 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-01-02 15:41:47 -0800 |
| commit | a90e8317ccd0811407754152072913d2b4e56568 (patch) | |
| tree | cf5d4fe47a6cdbeadc26053e109973a262f8370b /tasks/mruby_build_commands.rake | |
| parent | e8dd8180baae425c893e1054368a4c32c99ea805 (diff) | |
| parent | 4804b3f7ddaa57627b63abb516b7cab87cc7cefd (diff) | |
| download | mruby-a90e8317ccd0811407754152072913d2b4e56568.tar.gz mruby-a90e8317ccd0811407754152072913d2b4e56568.zip | |
Merge pull request #1631 from cremno/fix-ruby-warnings
fix some warnings emitted by 'ruby -w'
Diffstat (limited to 'tasks/mruby_build_commands.rake')
| -rw-r--r-- | tasks/mruby_build_commands.rake | 4 |
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 |
