IMPROVE: Move GemBox to more logical source location

This commit is contained in:
Daniel Bovensiepen
2013-04-27 16:59:02 +08:00
parent 0ad9e5a37d
commit 3875140afe
2 changed files with 7 additions and 7 deletions
+7
View File
@@ -158,4 +158,11 @@ module MRuby
end # Specification
end # Gem
GemBox = BasicObject.new
class << GemBox
def new(&block); block.call(self); end
def config=(obj); @config = obj; end
def gem(gemdir, &block); @config.gem(gemdir, &block); end
end # GemBox
end # MRuby
-7
View File
@@ -1,11 +1,4 @@
module MRuby
GemBox = BasicObject.new
class << GemBox
def new(&block); block.call(self); end
def config=(obj); @config = obj; end
def gem(gemdir, &block); @config.gem(gemdir, &block); end
end
module LoadGems
def gembox(gemboxfile)
gembox = File.absolute_path("#{gemboxfile}.gembox", "#{MRUBY_ROOT}/mrbgems")