mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
use File#directory? instead of File#exist?; ref c2d8b0
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user