Commit 8bc4144c authored by Fabio Pelosin's avatar Fabio Pelosin

[#177] Prevent search from using :tag or :commit values as the source

parent 553ab18a
...@@ -31,7 +31,8 @@ module Pod ...@@ -31,7 +31,8 @@ module Pod
puts_wrapped_text(set.specification.summary) puts_wrapped_text(set.specification.summary)
spec = set.specification.part_of_other_pod? ? set.specification.part_of_specification : set.specification spec = set.specification.part_of_other_pod? ? set.specification.part_of_specification : set.specification
source = spec.source.values.first
source = spec.source.reject {|k,_| k == :commit || k == :tag }.values.first
puts_detail('Homepage', spec.homepage) puts_detail('Homepage', spec.homepage)
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