diff options
| author | cremno <[email protected]> | 2014-01-02 01:09:03 +0100 |
|---|---|---|
| committer | cremno <[email protected]> | 2014-01-02 01:09:03 +0100 |
| commit | 4804b3f7ddaa57627b63abb516b7cab87cc7cefd (patch) | |
| tree | cf5d4fe47a6cdbeadc26053e109973a262f8370b /tasks/mruby_build_gem.rake | |
| parent | e8dd8180baae425c893e1054368a4c32c99ea805 (diff) | |
| download | mruby-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_gem.rake')
| -rw-r--r-- | tasks/mruby_build_gem.rake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tasks/mruby_build_gem.rake b/tasks/mruby_build_gem.rake index ea1307132..0f920dbc8 100644 --- a/tasks/mruby_build_gem.rake +++ b/tasks/mruby_build_gem.rake @@ -2,7 +2,7 @@ module MRuby module LoadGems def gembox(gemboxfile) gembox = File.expand_path("#{gemboxfile}.gembox", "#{MRUBY_ROOT}/mrbgems") - fail "Can't find gembox '#{gembox}'" unless File.exists?(gembox) + fail "Can't find gembox '#{gembox}'" unless File.exist?(gembox) GemBox.config = self GemBox.path = gembox @@ -25,7 +25,7 @@ module MRuby gemrake = File.join(gemdir, "mrbgem.rake") - fail "Can't find #{gemrake}" unless File.exists?(gemrake) + fail "Can't find #{gemrake}" unless File.exist?(gemrake) Gem.current = nil load gemrake return nil unless Gem.current @@ -50,7 +50,7 @@ module MRuby url = params[:git] gemdir = "#{gem_clone_dir}/#{url.match(/([-\w]+)(\.[-\w]+|)$/).to_a[1]}" - if File.exists?(gemdir) + if File.exist?(gemdir) if $pull_gems git.run_pull gemdir, url else |
