Skip to content

Commit

Permalink
Merge pull request #2907 from hone/path
Browse files Browse the repository at this point in the history
be able to source with :path for mrbgems
  • Loading branch information
matz committed Aug 3, 2015
2 parents 95412ae + 5c055d6 commit 65066f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tasks/mruby_build_gem.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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]}"
Expand Down

0 comments on commit 65066f1

Please sign in to comment.