Commit d2435f24 authored by Fabio Pelosin's avatar Fabio Pelosin

[Pod::Source] Include spec authors in full search

parent 6b826e54
...@@ -24,7 +24,7 @@ module Pod ...@@ -24,7 +24,7 @@ module Pod
def search_by_name(query, full_text_search) def search_by_name(query, full_text_search)
result = all.map { |s| s.search_by_name(query, full_text_search) }.flatten result = all.map { |s| s.search_by_name(query, full_text_search) }.flatten
if result.empty? if result.empty?
extra = ", summary, or description" if full_text_search extra = ", author, summary, or description" if full_text_search
raise(Informative, "Unable to find a pod with name" \ raise(Informative, "Unable to find a pod with name" \
"#{extra} matching `#{query}'") "#{extra} matching `#{query}'")
end end
...@@ -76,7 +76,7 @@ module Pod ...@@ -76,7 +76,7 @@ module Pod
pod_sets.map do |set| pod_sets.map do |set|
text = if full_text_search text = if full_text_search
s = set.specification s = set.specification
"#{s.name} #{s.summary} #{s.description}" "#{s.name} #{s.authors} #{s.summary} #{s.description}"
else else
set.name set.name
end end
......
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