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_gem.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_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 |
