summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2019-03-18 09:14:37 +0900
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2019-03-18 09:14:37 +0900
commit127f798df641a70130457a9b9d9e642baf2d0920 (patch)
tree12c084a4a9ac5d56d8c96f34f2e3d00455d76499 /lib
parentcff6b460822053ad9c84a33a7c495d61c71cbb3d (diff)
downloadbundler-127f798df641a70130457a9b9d9e642baf2d0920.tar.gz
Use Gem::Request.get_cert_files instead of hard-coded paths.unify-certification
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/fetcher.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/fetcher.rb b/lib/bundler/fetcher.rb
index bc06bbead3..8397f7b72b 100644
--- a/lib/bundler/fetcher.rb
+++ b/lib/bundler/fetcher.rb
@@ -4,6 +4,7 @@ require "bundler/vendored_persistent"
require "cgi"
require "securerandom"
require "zlib"
+require "rubygems/request"
module Bundler
# Handles all the fetching with the rubygems server
@@ -295,8 +296,7 @@ module Bundler
end
else
store.set_default_paths
- certs = File.join(Gem::RUBYGEMS_DIR, "rubygems", "ssl_certs", "*", "*.pem")
- Dir.glob(certs).each {|c| store.add_file c }
+ Gem::Request.get_cert_files.each {|c| store.add_file c }
end
store
end