Skip to content

Commit

Permalink
Removed search and iterate over each source and corresponding pod_set.
Browse files Browse the repository at this point in the history
Thanks to @alloy
  • Loading branch information
chriseidhof committed Dec 19, 2011
1 parent 8c8c6de commit a8c7f08
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/cocoapods/command/list.rb
Expand Up @@ -13,10 +13,12 @@ def initialize(argv)
end

def run
Source.search_by_name('', false).each do |set|
puts "==> #{set.name} (#{set.versions.reverse.join(", ")})"
puts " #{set.specification.summary.strip}"
puts
Source.all.each do |source|
source.pod_sets.each do |set|
puts "==> #{set.name} (#{set.versions.reverse.join(", ")})"
puts " #{set.specification.summary.strip}"
puts
end
end
end
end
Expand Down

0 comments on commit a8c7f08

Please sign in to comment.