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

ruby-changes:71996

From: David <ko1@a...>
Date: Sat, 28 May 2022 19:23:03 +0900 (JST)
Subject: [ruby-changes:71996] e9c4e37f1f (master): [rubygems/rubygems] Remove unnecessary name and platform filter

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

From e9c4e37f1f5c227aedd3d77b02d7591edc7897d2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Thu, 26 May 2022 12:44:33 +0200
Subject: [rubygems/rubygems] Remove unnecessary name and platform filter

It's already done before.

https://github.com/rubygems/rubygems/commit/49d28cfde5
---
 lib/rubygems/commands/update_command.rb | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/lib/rubygems/commands/update_command.rb b/lib/rubygems/commands/update_command.rb
index 54b1251010..0a53d1ce5a 100644
--- a/lib/rubygems/commands/update_command.rb
+++ b/lib/rubygems/commands/update_command.rb
@@ -162,11 +162,7 @@ command to remove old versions. https://github.com/ruby/ruby/blob/trunk/lib/rubygems/commands/update_command.rb#L162
   def highest_remote_name_tuple(spec) # :nodoc:
     spec_tuples = fetch_remote_gems spec
 
-    matching_gems = spec_tuples.select do |g,_|
-      g.name == spec.name and g.match_platform?
-    end
-
-    highest_remote_gem = matching_gems.max
+    highest_remote_gem = spec_tuples.max
 
     highest_remote_gem ||= [Gem::NameTuple.null]
 
-- 
cgit v1.2.1


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

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