summaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
authormattn <[email protected]>2013-02-07 16:35:26 +0900
committermattn <[email protected]>2013-02-07 16:35:26 +0900
commitc7031d85274a2b7eda524bf43e95610bd8ae1d00 (patch)
treefe3ec268090922d3bcc8250cae7b05d32a07a23c /tasks
parentd98ad06ef51eec83c0bc67ecab710e97365b2f48 (diff)
downloadmruby-c7031d85274a2b7eda524bf43e95610bd8ae1d00.tar.gz
mruby-c7031d85274a2b7eda524bf43e95610bd8ae1d00.zip
Ignore empty gem
Diffstat (limited to 'tasks')
-rw-r--r--tasks/mruby_build_gem.rake2
1 files changed, 2 insertions, 0 deletions
diff --git a/tasks/mruby_build_gem.rake b/tasks/mruby_build_gem.rake
index 80990773d..69dd4cafc 100644
--- a/tasks/mruby_build_gem.rake
+++ b/tasks/mruby_build_gem.rake
@@ -5,7 +5,9 @@ module MRuby
gemrake = File.join(gemdir, "mrbgem.rake")
fail "Can't find #{gemrake}" unless File.exists?(gemrake)
+ Gem.current = nil
load gemrake
+ return nil unless Gem.current
Gem.current.dir = gemdir
Gem.current.build = MRuby::Build.current