From 3c92c5b4078372f7924e1990b90ef965e2621e8f Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Wed, 19 Dec 2012 23:45:34 -0500 Subject: [PATCH] Added support for https:// repo URLs. #867. --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 0e11e5a..c848f59 100644 --- a/Rakefile +++ b/Rakefile @@ -382,7 +382,7 @@ task :setup_github_pages, :repo do |t, args| else repo_url = get_stdin("Enter the read/write url for your repository: ") end - user = repo_url.match(/:([^\/]+)/)[1] + user = repo_url.match(/(:([^\/]+)|(github.com\/([^\/]+)))/)[2] || repo_url.match(/(:([^\/]+)|(github.com\/([^\/]+)))/)[4] branch = (repo_url.match(/\/[\w-]+.github.com/).nil?) ? 'gh-pages' : 'master' project = (branch == 'gh-pages') ? repo_url.match(/\/([^\.]+)/)[1] : '' url = "http://#{user}.github.com"