summaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-03-21 03:23:26 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-03-21 03:23:26 +0900
commitc2d8b0303db286a8d025844fbff2ee0685789977 (patch)
tree46a48d9bd0b2c3c0a93cdf807d51abe32ccdcb88 /tasks
parent36836c8eb9add532ae09357b6862c33e6af86a04 (diff)
downloadmruby-c2d8b0303db286a8d025844fbff2ee0685789977.tar.gz
mruby-c2d8b0303db286a8d025844fbff2ee0685789977.zip
avoid Dir.exist? that is not available in Ruby1.8
Diffstat (limited to 'tasks')
-rw-r--r--tasks/mrbgem_spec.rake2
-rw-r--r--tasks/mruby_build.rake2
2 files changed, 2 insertions, 2 deletions
diff --git a/tasks/mrbgem_spec.rake b/tasks/mrbgem_spec.rake
index 60d6672f0..e77ba9fbc 100644
--- a/tasks/mrbgem_spec.rake
+++ b/tasks/mrbgem_spec.rake
@@ -55,7 +55,7 @@ module MRuby
MRuby::Gem.current = self
@build.compilers.each do |compiler|
compiler.include_paths << "#{dir}/include"
- end if Dir.exist? "#{dir}/include"
+ end if File.exist? "#{dir}/include"
MRuby::Build::COMMANDS.each do |command|
instance_variable_set("@#{command}", @build.send(command).clone)
end
diff --git a/tasks/mruby_build.rake b/tasks/mruby_build.rake
index 5fe0cbfce..e810f4b92 100644
--- a/tasks/mruby_build.rake
+++ b/tasks/mruby_build.rake
@@ -194,7 +194,7 @@ module MRuby
end
def run_bintest
- targets = @gems.select { |v| Dir.exists? "#{v.dir}/bintest" }.map { |v| filename v.dir }
+ targets = @gems.select { |v| File.exist? "#{v.dir}/bintest" }.map { |v| filename v.dir }
sh "ruby test/bintest.rb #{targets.join ' '}"
end