diff options
author | André Arko <andre@arko.net> | 2012-12-14 11:05:25 -0800 |
---|---|---|
committer | André Arko <andre@arko.net> | 2012-12-14 11:05:25 -0800 |
commit | d674ebbe5703b9faebc0da55f0a35ca00ae99a38 (patch) | |
tree | d7b1004c40d46bd6de3d2d74aa88c086d67e1ab1 | |
parent | ee7c910cc824e9cdfb977bc8073e27d8e3f57033 (diff) | |
parent | c8db615d0d4e3e21c39581d5db646cd6850afc6a (diff) | |
download | bundler-d674ebbe5703b9faebc0da55f0a35ca00ae99a38.tar.gz |
Merge pull request #2212 from NARKOZ/gist
use HTTPS for gists
-rw-r--r-- | lib/bundler/dsl.rb | 2 | ||||
-rw-r--r-- | spec/bundler/dsl_spec.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb index 7da64ef221..a274113ba0 100644 --- a/lib/bundler/dsl.rb +++ b/lib/bundler/dsl.rb @@ -236,7 +236,7 @@ module Bundler end if gist = opts.delete("gist") - opts["git"] = "git://gist.github.com/#{gist}.git" + opts["git"] = "https://gist.github.com/#{gist}.git" end ["git", "path"].each do |type| diff --git a/spec/bundler/dsl_spec.rb b/spec/bundler/dsl_spec.rb index 8287e7439f..12cf308165 100644 --- a/spec/bundler/dsl_spec.rb +++ b/spec/bundler/dsl_spec.rb @@ -15,13 +15,13 @@ describe Bundler::Dsl do it "converts numeric :gist to :git" do subject.gem("not-really-a-gem", :gist => 2859988) - github_uri = "git://gist.github.com/2859988.git" + github_uri = "https://gist.github.com/2859988.git" expect(subject.dependencies.first.source.uri).to eq(github_uri) end it "converts :gist to :git" do subject.gem("not-really-a-gem", :gist => "2859988") - github_uri = "git://gist.github.com/2859988.git" + github_uri = "https://gist.github.com/2859988.git" expect(subject.dependencies.first.source.uri).to eq(github_uri) end |