summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2024-11-14 10:01:56 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2024-11-26 15:11:05 +0900
commit7c9346033197128a40c76dffa1745757132ff623 (patch)
tree97a9e2244a10e8265a678f357105e7452651e972 /lib
parentd6a0e575c9654bf68cb39c40e510614a2647f1c2 (diff)
[rubygems/rubygems] Simplify more
https://github.com/rubygems/rubygems/commit/a2bb68a29b
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/spec_set.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/bundler/spec_set.rb b/lib/bundler/spec_set.rb
index 04dce73e85..7b00f6dc54 100644
--- a/lib/bundler/spec_set.rb
+++ b/lib/bundler/spec_set.rb
@@ -34,11 +34,7 @@ module Bundler
specs_for_dep = specs_for_dependency(*dep, most_specific_locked_platform)
if specs_for_dep.any?
specs.concat(specs_for_dep)
-
- specs_for_dep.first.dependencies.each do |d|
- next if d.type == :development
- deps << [d, platform]
- end
+ deps.concat(specs_for_dep.first.runtime_dependencies.map {|d| [d, platform] })
else
incomplete = true
end