mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
be able to source with :path for mrbgems
This commit is contained in:
@@ -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]}"
|
||||
|
||||
Reference in New Issue
Block a user