use File#directory? instead of File#exist?; ref c2d8b0

This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-03-21 09:24:28 +09:00
parent bb5e4cfd6d
commit 5bcb119ed7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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