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

ruby-changes:69432

From: David <ko1@a...>
Date: Mon, 25 Oct 2021 20:55:15 +0900 (JST)
Subject: [ruby-changes:69432] a959342abf (master): [rubygems/rubygems] Remove comment that seems no longer accurate

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

From a959342abf3c77fc5f08a91107f5f27cfe1766a7 Mon Sep 17 00:00:00 2001
From: David Rodriguez <deivid.rodriguez@r...>
Date: Mon, 11 Oct 2021 12:43:07 +0200
Subject: [rubygems/rubygems] Remove comment that seems no longer accurate

We require things inline or autoload them for efficiency and to avoid as
much as possible conflicting with user's choice of gems.

But I removed the require and observed no deadlocks when activating
gems.

https://github.com/rubygems/rubygems/commit/7d6333e842
---
 lib/rubygems/source/git.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/rubygems/source/git.rb b/lib/rubygems/source/git.rb
index 9876adc24e9..95dee9b883e 100644
--- a/lib/rubygems/source/git.rb
+++ b/lib/rubygems/source/git.rb
@@ -225,7 +225,7 @@ class Gem::Source::Git < Gem::Source https://github.com/ruby/ruby/blob/trunk/lib/rubygems/source/git.rb#L225
   # A hash for the git gem based on the git repository URI.
 
   def uri_hash # :nodoc:
-    require 'digest' # required here to avoid deadlocking in Gem.activate_bin_path (because digest is a gem on 2.5+)
+    require 'digest'
 
     normalized =
       if @repository =~ %r{^\w+://(\w+@)?}
-- 
cgit v1.2.1


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

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