summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-07-11 12:20:43 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-07-31 21:07:19 +0900
commit0a7f12fcc617905996238f59d4875cbe4d6641d0 (patch)
treef1b3edda79d6e7f6b9f38dc19cb703f7f4ead719
parent9ad9c2d9c33d9a135c99dbd15595ff697318c5d8 (diff)
[rubygems/rubygems] Only require what we are using
https://github.com/rubygems/rubygems/commit/d92b94f3cf
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3379
-rw-r--r--lib/rubygems/request.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/request.rb b/lib/rubygems/request.rb
index d07c60d..75f9e99 100644
--- a/lib/rubygems/request.rb
+++ b/lib/rubygems/request.rb
@@ -45,7 +45,7 @@ class Gem::Request
end
def self.configure_connection_for_https(connection, cert_files)
- require 'net/https'
+ require 'openssl'
connection.use_ssl = true
connection.verify_mode =
Gem.configuration.ssl_verify_mode || OpenSSL::SSL::VERIFY_PEER