Commit 3e425eda authored by Fabio Pelosin's avatar Fabio Pelosin

[#177] Prevent a malformed spec without source from breaking the search

parent fa5a262a
...@@ -31,7 +31,7 @@ module Pod ...@@ -31,7 +31,7 @@ module Pod
puts_wrapped_text(set.specification.summary) puts_wrapped_text(set.specification.summary)
puts_detail('Homepage', set.specification.homepage) puts_detail('Homepage', set.specification.homepage)
source = set.specification.source.values[0] source = set.specification.source ? set.specification.source.values[0] : nil
puts_detail('Source', source) puts_detail('Source', source)
puts_github_info(source) if @stats puts_github_info(source) if @stats
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment