mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
IMPROVE: Move GemBox to more logical source location
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user