diff options
| author | Terence Lee <[email protected]> | 2015-08-02 14:37:12 +0200 |
|---|---|---|
| committer | Terence Lee <[email protected]> | 2015-08-02 15:03:12 +0200 |
| commit | 5c055d670a7c45e0d6ba201aa8ca44a4fd24ecba (patch) | |
| tree | 1f085c223a72a5ecbaf91b82465588a4c30eb3e2 /tasks | |
| parent | 52a9712c26baafe0763557eba4da0057c2b57509 (diff) | |
| download | mruby-5c055d670a7c45e0d6ba201aa8ca44a4fd24ecba.tar.gz mruby-5c055d670a7c45e0d6ba201aa8ca44a4fd24ecba.zip | |
be able to source with :path for mrbgems
Diffstat (limited to 'tasks')
| -rw-r--r-- | tasks/mruby_build_gem.rake | 3 |
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]}" |
