diff options
author | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2019-03-14 19:51:47 +0900 |
---|---|---|
committer | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2019-03-14 19:51:53 +0900 |
commit | cff6b460822053ad9c84a33a7c495d61c71cbb3d (patch) | |
tree | cb480b3b7ca1acae497af2c91889fc1045ef5789 | |
parent | a9d0f7ca8fd8f4fd98899c24504013933676d5ee (diff) | |
download | bundler-cff6b460822053ad9c84a33a7c495d61c71cbb3d.tar.gz |
Use Gem::RUBYGEMS_DIR instead of RbConfig::CONFIG
-rw-r--r-- | lib/bundler/fetcher.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/bundler/fetcher.rb b/lib/bundler/fetcher.rb index 448972115d..bc06bbead3 100644 --- a/lib/bundler/fetcher.rb +++ b/lib/bundler/fetcher.rb @@ -2,7 +2,6 @@ require "bundler/vendored_persistent" require "cgi" -require "rbconfig" require "securerandom" require "zlib" @@ -296,13 +295,7 @@ module Bundler end else store.set_default_paths - - rubygems_certs_dir = File.expand_path("../../rubygems/ssl_certs", __FILE__) - unless File.exist?(rubygems_certs_dir) - rubygems_certs_dir = File.join(RbConfig::CONFIG["rubylibdir"], "rubygems", "ssl_certs") - end - certs = File.join(rubygems_certs_dir, "*", "*.pem") - + certs = File.join(Gem::RUBYGEMS_DIR, "rubygems", "ssl_certs", "*", "*.pem") Dir.glob(certs).each {|c| store.add_file c } end store |