aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2022-07-04 19:04:00 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-10-18 16:33:15 +0900
commit67de00053a26db9d976efa393d121479b5315f5e (patch)
tree4ece651aa086c115d8f8b8bf0cb669f0a293cbb8
parentb99010f9f2aa9e8ea100f4cdbe1e2f1a5601fd5e (diff)
downloadruby-67de00053a26db9d976efa393d121479b5315f5e.tar.gz
[rubygems/rubygems] Inline helper method
https://github.com/rubygems/rubygems/commit/e60459d6b6
-rw-r--r--lib/bundler/definition.rb11
1 files 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
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