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

ruby-changes:72129

From: David <ko1@a...>
Date: Sat, 11 Jun 2022 18:43:45 +0900 (JST)
Subject: [ruby-changes:72129] d5288c8aad (master): [rubygems/rubygems] Refactor ambiguous gems check

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

From d5288c8aad5b3de8ac48305b43b983ea30a0535d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Fri, 25 Mar 2022 20:57:43 +0100
Subject: [rubygems/rubygems] Refactor ambiguous gems check

https://github.com/rubygems/rubygems/commit/a00c79a4da
---
 lib/bundler/source/rubygems.rb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/bundler/source/rubygems.rb b/lib/bundler/source/rubygems.rb
index 5dceacbae4..700c4bf38c 100644
--- a/lib/bundler/source/rubygems.rb
+++ b/lib/bundler/source/rubygems.rb
@@ -157,9 +157,7 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/source/rubygems.rb#L157
         # by rubygems.org are broken and wrong.
         if spec.remote
           # Check for this spec from other sources
-          uris = [spec.remote.anonymized_uri]
-          uris += remotes_for_spec(spec).map(&:anonymized_uri)
-          uris.uniq!
+          uris = [spec.remote, *remotes_for_spec(spec)].map(&:anonymized_uri).uniq
           Installer.ambiguous_gems << [spec.name, *uris] if uris.length > 1
 
           path = fetch_gem(spec, options[:previous_spec])
-- 
cgit v1.2.1


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

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