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_gem.rake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tasks/mruby_build_gem.rake') 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 -- cgit v1.2.3