Skip to content

Commit

Permalink
[Source Aggregate] Use select not keep_if
Browse files Browse the repository at this point in the history
select returns a new array and keep_if isn't available in old ruby
  • Loading branch information
kylef committed Oct 18, 2014
1 parent 1190f81 commit 0f83dfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cocoapods-core/source/aggregate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def search_by_name(query, full_text_search = false)

root_spec_names = pods_by_source.values.flatten.uniq
root_spec_names.each do |pod|
result_sources = sources.keep_if do |source|
result_sources = sources.select do |source|
pods_by_source[source].include?(pod)
end

Expand Down

0 comments on commit 0f83dfb

Please sign in to comment.