diff options
| author | Daniel Bovensiepen <[email protected]> | 2013-04-27 16:59:02 +0800 |
|---|---|---|
| committer | Daniel Bovensiepen <[email protected]> | 2013-04-27 16:59:02 +0800 |
| commit | 3875140afe6c83868d4469fd170d831bef71a310 (patch) | |
| tree | a75b179a2f61b775bb8e559ed65069a6cd9dd1d6 | |
| parent | 0ad9e5a37d9cd01a104c8643cc03e88c1894ad0b (diff) | |
| download | mruby-3875140afe6c83868d4469fd170d831bef71a310.tar.gz mruby-3875140afe6c83868d4469fd170d831bef71a310.zip | |
IMPROVE: Move GemBox to more logical source location
| -rw-r--r-- | tasks/mrbgem_spec.rake | 7 | ||||
| -rw-r--r-- | tasks/mruby_build_gem.rake | 7 |
2 files changed, 7 insertions, 7 deletions
diff --git a/tasks/mrbgem_spec.rake b/tasks/mrbgem_spec.rake index 564836630..eedc6480f 100644 --- a/tasks/mrbgem_spec.rake +++ b/tasks/mrbgem_spec.rake @@ -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 diff --git a/tasks/mruby_build_gem.rake b/tasks/mruby_build_gem.rake index 29c158c22..10e9b9692 100644 --- a/tasks/mruby_build_gem.rake +++ b/tasks/mruby_build_gem.rake @@ -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") |
