Add bitbucket git support.

This commit is contained in:
Masaki Muranaka
2013-03-04 21:52:39 +09:00
parent acab35a2a5
commit 34dd4525c5
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -23,6 +23,9 @@ A remote GIT repository location for a GEM is also supported:
conf.gem :github => 'masuidrive/mrbgems-example', :branch => 'master'
conf.gem :bitbucket => 'mruby/mrbgems-example', :branch => 'master'
NOTE: ':bitbucket' option supports only git. Hg is unsupported in this version.
## GEM Structure
+2
View File
@@ -24,6 +24,8 @@ module MRuby
def load_external_gem(params)
if params[:github]
params[:git] = "https://github.com/#{params[:github]}.git"
elsif params[:bitbucket]
params[:git] = "https://bitbucket.org/#{params[:bitbucket]}.git"
end
if params[:git]