summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJason Karns <jason.karns@gmail.com>2022-10-28 15:30:21 -0400
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-11-11 17:24:08 +0900
commitceeefb5870c144ddc069b2c9b8a19dbd4947a947 (patch)
tree5dd7e907e66e73cfc82ff3048577ec739d4e8397 /lib
parentadfbee85e07494d42e54b1c616e5fa62a207fb8f (diff)
[rubygems/rubygems] github source should default to secure protocol
Bundler 2 switched to secure https here https://github.com/rubygems/rubygems/commit/c2e81f8ff63613871cc8b52653c5e176f8dafde3 Insecure protocols should be avoided to prevent MITM attacks. https://github.com/rubygems/rubygems/commit/758413364a
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6715
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems/request_set/gem_dependency_api.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/request_set/gem_dependency_api.rb b/lib/rubygems/request_set/gem_dependency_api.rb
index 693cd2793a..ad6e45005b 100644
--- a/lib/rubygems/request_set/gem_dependency_api.rb
+++ b/lib/rubygems/request_set/gem_dependency_api.rb
@@ -214,7 +214,7 @@ class Gem::RequestSet::GemDependencyAPI
git_source :github do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include? "/"
- "git://github.com/#{repo_name}.git"
+ "https://github.com/#{repo_name}.git"
end
git_source :bitbucket do |repo_name|