This commit is contained in:
mattn
2013-01-08 10:37:39 +09:00
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -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
+4
View File
@@ -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]}"