summaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-03-21 09:24:28 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-03-21 09:24:28 +0900
commit5bcb119ed79fc0554c9db25e1c468d5241be502b (patch)
treec0e521c6ff7e3ac0f4a62a3075e18d86eb875357 /tasks
parentbb5e4cfd6d1ff5c3a3b2e0cd0090444cad38254f (diff)
downloadmruby-5bcb119ed79fc0554c9db25e1c468d5241be502b.tar.gz
mruby-5bcb119ed79fc0554c9db25e1c468d5241be502b.zip
use File#directory? instead of File#exist?; ref c2d8b0
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 e77ba9fbc..4d4189818 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 File.exist? "#{dir}/include"
+ end if File.directory? "#{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 e810f4b92..5877c11cd 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| File.exist? "#{v.dir}/bintest" }.map { |v| filename v.dir }
+ targets = @gems.select { |v| File.directory? "#{v.dir}/bintest" }.map { |v| filename v.dir }
sh "ruby test/bintest.rb #{targets.join ' '}"
end