diff options
Diffstat (limited to 'tasks')
| -rw-r--r-- | tasks/mrbgem_spec.rake | 2 | ||||
| -rw-r--r-- | tasks/mruby_build_gem.rake | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tasks/mrbgem_spec.rake b/tasks/mrbgem_spec.rake index eedc6480f..468a594ac 100644 --- a/tasks/mrbgem_spec.rake +++ b/tasks/mrbgem_spec.rake @@ -159,7 +159,7 @@ module MRuby end # Specification end # Gem - GemBox = BasicObject.new + GemBox = Object.new class << GemBox def new(&block); block.call(self); end def config=(obj); @config = obj; end diff --git a/tasks/mruby_build_gem.rake b/tasks/mruby_build_gem.rake index 10e9b9692..993591efd 100644 --- a/tasks/mruby_build_gem.rake +++ b/tasks/mruby_build_gem.rake @@ -1,7 +1,7 @@ module MRuby module LoadGems def gembox(gemboxfile) - gembox = File.absolute_path("#{gemboxfile}.gembox", "#{MRUBY_ROOT}/mrbgems") + gembox = File.expand_path("#{gemboxfile}.gembox", "#{MRUBY_ROOT}/mrbgems") fail "Can't find gembox '#{gembox}'" unless File.exists?(gembox) GemBox.config = self instance_eval File.read(gembox) |
