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

ruby-changes:74084

From: David <ko1@a...>
Date: Tue, 18 Oct 2022 16:33:44 +0900 (JST)
Subject: [ruby-changes:74084] 67de00053a (master): [rubygems/rubygems] Inline helper method

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

From 67de00053a26db9d976efa393d121479b5315f5e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Mon, 4 Jul 2022 19:04:00 +0200
Subject: [rubygems/rubygems] Inline helper method

https://github.com/rubygems/rubygems/commit/e60459d6b6
---
 lib/bundler/definition.rb | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb
index 374462ab49..a3042e06a3 100644
--- a/lib/bundler/definition.rb
+++ b/lib/bundler/definition.rb
@@ -793,14 +793,9 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/definition.rb#L793
 
     def expand_dependencies(dependencies)
       dependencies.flat_map do |dep|
-        target_platforms = dep.gem_platforms(@platforms)
-        expand_dependency_with_platforms(dep, target_platforms)
-      end
-    end
-
-    def expand_dependency_with_platforms(dep, platforms)
-      platforms.map do |p|
-        DepProxy.get_proxy(dep, p)
+        dep.gem_platforms(@platforms).map do |p|
+          DepProxy.get_proxy(dep, p)
+        end
       end
     end
 
-- 
cgit v1.2.3


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

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