Commit cb158653 authored by mattn's avatar mattn

Merge branch 'master' of https://github.com/mruby/mruby

parents 6e3b2b57 8c31c200
......@@ -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]}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment