summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Arko <andre@arko.net>2013-08-01 20:05:33 -0700
committerAndré Arko <andre@arko.net>2013-08-01 20:05:33 -0700
commite2a5d3b90d8c1d685acc6d1a9d9cc3488b2c1a61 (patch)
tree850f6e8367f3dc650d20f4c50492b305cc45aac6
parent435307266d75c82e7601f39551b0b707c58dc9a4 (diff)
parentdf2956dcc52fbf241988bd51ff6cbf5244198995 (diff)
downloadbundler-e2a5d3b90d8c1d685acc6d1a9d9cc3488b2c1a61.tar.gz
Merge pull request #2569 from fuadsaud/github-https
Use https:// instead of git:// on GitHub URL's
-rw-r--r--lib/bundler/dsl.rb2
-rw-r--r--spec/bundler/dsl_spec.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb
index 947aca7ba8..7f88a1bc5d 100644
--- a/lib/bundler/dsl.rb
+++ b/lib/bundler/dsl.rb
@@ -230,7 +230,7 @@ module Bundler
if github = opts.delete("github")
github = "#{github}/#{github}" unless github.include?("/")
- opts["git"] = "git://github.com/#{github}.git"
+ opts["git"] = "https://github.com/#{github}.git"
end
if gist = opts.delete("gist")
diff --git a/spec/bundler/dsl_spec.rb b/spec/bundler/dsl_spec.rb
index 610ff0b55e..1b05eb48b4 100644
--- a/spec/bundler/dsl_spec.rb
+++ b/spec/bundler/dsl_spec.rb
@@ -9,7 +9,7 @@ describe Bundler::Dsl do
describe "#_normalize_options" do
it "converts :github to :git" do
subject.gem("sparks", :github => "indirect/sparks")
- github_uri = "git://github.com/indirect/sparks.git"
+ github_uri = "https://github.com/indirect/sparks.git"
expect(subject.dependencies.first.source.uri).to eq(github_uri)
end
@@ -27,7 +27,7 @@ describe Bundler::Dsl do
it "converts 'rails' to 'rails/rails'" do
subject.gem("rails", :github => "rails")
- github_uri = "git://github.com/rails/rails.git"
+ github_uri = "https://github.com/rails/rails.git"
expect(subject.dependencies.first.source.uri).to eq(github_uri)
end
end