From 568b2c79b131fb7c3e4a0235a364390128982170 Mon Sep 17 00:00:00 2001 From: take_cheeze Date: Wed, 16 Jul 2014 22:48:37 +0900 Subject: Check mrbgem.rake instead of directory to ignore empty directories in full-core. --- mrbgems/full-core.gembox | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mrbgems/full-core.gembox b/mrbgems/full-core.gembox index 4a6ebbc80..4dbb13e92 100644 --- a/mrbgems/full-core.gembox +++ b/mrbgems/full-core.gembox @@ -2,8 +2,8 @@ MRuby::GemBox.new do |conf| conf.gem :core => "mruby-sprintf" conf.gem :core => "mruby-print" - Dir.glob("#{root}/mrbgems/mruby-*") do |x| - g = File.basename(x) + Dir.glob("#{root}/mrbgems/mruby-*/mrbgem.rake") do |x| + g = File.basename File.dirname x conf.gem :core => g unless g =~ /^mruby-(print|sprintf)$/ end end -- cgit v1.2.3