diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-01-07 15:29:45 -0800 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-01-07 15:29:45 -0800 |
| commit | 8c31c2006be7afa8da1fd01180955b108aee868c (patch) | |
| tree | 049fbf90ed98a95e0aada317a4e455db814f1a76 | |
| parent | f1eb0a053778df3cfc2d776dad8b63c65c4c6c7d (diff) | |
| parent | a19c061cb13d9cebcbf96e00d6add8c16b546032 (diff) | |
| download | mruby-8c31c2006be7afa8da1fd01180955b108aee868c.tar.gz mruby-8c31c2006be7afa8da1fd01180955b108aee868c.zip | |
Merge pull request #706 from masuidrive/add_gem_github_option
Added gem :github option
| -rw-r--r-- | doc/mrbgems/README.md | 4 | ||||
| -rw-r--r-- | tasks/mruby_build.rake | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/doc/mrbgems/README.md b/doc/mrbgems/README.md index cc28f48f8..9e930d8b2 100644 --- a/doc/mrbgems/README.md +++ b/doc/mrbgems/README.md @@ -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 diff --git a/tasks/mruby_build.rake b/tasks/mruby_build.rake index 65c80ab6a..d5dc075c3 100644 --- a/tasks/mruby_build.rake +++ b/tasks/mruby_build.rake @@ -67,6 +67,10 @@ module MRuby end def load_external_gem(params) + if params[:github] + params[:git] = "[email protected]:#{params[:github]}.git" + end + if params[:git] url = params[:git] gemdir = "build/mrbgems/#{url.match(/([-_\w]+)(\.[-_\w]+|)$/).to_a[1]}" |
