[前][次][番号順一覧][スレッド一覧]

ruby-changes:62462

From: David <ko1@a...>
Date: Fri, 31 Jul 2020 21:08:29 +0900 (JST)
Subject: [ruby-changes:62462] 6eb89f8637 (master): [rubygems/rubygems] Remove now unneeded code

https://git.ruby-lang.org/ruby.git/commit/?id=6eb89f8637

From 6eb89f8637bbe1255b506d9ff447529b82169597 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Sat, 11 Jul 2020 11:16:19 +0200
Subject: [rubygems/rubygems] Remove now unneeded code

We patch `net-http-persistent` to not autoload `openssl`.

https://github.com/rubygems/rubygems/commit/757dec3cf2

diff --git a/lib/bundler/vendored_persistent.rb b/lib/bundler/vendored_persistent.rb
index 045a761..dc9573e 100644
--- a/lib/bundler/vendored_persistent.rb
+++ b/lib/bundler/vendored_persistent.rb
@@ -1,12 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/lib/bundler/vendored_persistent.rb#L1
 # frozen_string_literal: true
 
-# We forcibly require OpenSSL, because net/http/persistent will only autoload
-# it. On some Rubies, autoload fails but explicit require succeeds.
-begin
-  require "openssl"
-rescue LoadError
-  # some Ruby builds don't have OpenSSL
-end
 module Bundler
   module Persistent
     module Net
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]