summaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2015-08-03 21:20:57 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2015-08-03 21:20:57 +0900
commit65066f1799f613066a046b2054ed177c51d999f7 (patch)
treee46593bc0451e8fc0801a7fb81288254000604e8 /tasks
parent95412aeb502298e58233117d6be7dc2e95912491 (diff)
parent5c055d670a7c45e0d6ba201aa8ca44a4fd24ecba (diff)
downloadmruby-65066f1799f613066a046b2054ed177c51d999f7.tar.gz
mruby-65066f1799f613066a046b2054ed177c51d999f7.zip
Merge pull request #2907 from hone/path
be able to source with :path for mrbgems
Diffstat (limited to 'tasks')
-rw-r--r--tasks/mruby_build_gem.rake3
1 files changed, 3 insertions, 0 deletions
diff --git a/tasks/mruby_build_gem.rake b/tasks/mruby_build_gem.rake
index f0282aee0..896aeb147 100644
--- a/tasks/mruby_build_gem.rake
+++ b/tasks/mruby_build_gem.rake
@@ -76,6 +76,9 @@ module MRuby
if params[:core]
gemdir = "#{root}/mrbgems/#{params[:core]}"
+ elsif params[:path]
+ require 'pathname'
+ gemdir = Pathname.new(params[:path]).absolute? ? params[:path] : "#{root}/#{params[:path]}"
elsif params[:git]
url = params[:git]
gemdir = "#{gem_clone_dir}/#{url.match(/([-\w]+)(\.[-\w]+|)$/).to_a[1]}"