mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge branch 'master' of https://github.com/mruby/mruby
This commit is contained in:
@@ -27,6 +27,10 @@ A remote GIT repository location for a GEM is also supported:
|
||||
conf.gem :git => 'https://github.com/masuidrive/mrbgems-example.git', :branch => 'master'
|
||||
```
|
||||
|
||||
```
|
||||
conf.gem :github => 'masuidrive/mrbgems-example', :branch => 'master'
|
||||
```
|
||||
|
||||
|
||||
## GEM Structure
|
||||
|
||||
|
||||
@@ -67,6 +67,10 @@ module MRuby
|
||||
end
|
||||
|
||||
def load_external_gem(params)
|
||||
if params[:github]
|
||||
params[:git] = "git@github.com:#{params[:github]}.git"
|
||||
end
|
||||
|
||||
if params[:git]
|
||||
url = params[:git]
|
||||
gemdir = "build/mrbgems/#{url.match(/([-_\w]+)(\.[-_\w]+|)$/).to_a[1]}"
|
||||
|
||||
Reference in New Issue
Block a user