summaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-04-27 23:28:17 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2013-04-27 23:28:17 +0900
commit160eb71338205813b9b9c599249b4a5e2bec4217 (patch)
tree56a57edecc60bc19e93029c5cbc262b13a9051ad /tasks
parentfad94ba5006d3ef9423fb684eeeb0639adb94ec3 (diff)
downloadmruby-160eb71338205813b9b9c599249b4a5e2bec4217.tar.gz
mruby-160eb71338205813b9b9c599249b4a5e2bec4217.zip
fix gembox rake tasks to support Ruby 1.8
Diffstat (limited to 'tasks')
-rw-r--r--tasks/mrbgem_spec.rake2
-rw-r--r--tasks/mruby_build_gem.rake2
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)