Merge pull request #1049 from monaka/pr-bitbucket-git-support

Add bitbucket git support.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-03-23 03:49:18 -07:00
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]