Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion bundler/lib/bundler/spec_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def for(dependencies, check = false, match_current_platform = false)

specs_for_dep = spec_for_dependency(dep, match_current_platform)
if specs_for_dep.any?
match_current_platform ? specs += specs_for_dep : specs |= specs_for_dep
specs += specs_for_dep
Comment thread
deivid-rodriguez marked this conversation as resolved.
Outdated

specs_for_dep.first.dependencies.each do |d|
next if d.type == :development
Expand All @@ -40,6 +40,8 @@ def for(dependencies, check = false, match_current_platform = false)
specs << spec
end

specs.uniq! unless match_current_platform
Comment thread
deivid-rodriguez marked this conversation as resolved.

check ? true : specs
end

Expand Down