lib/cocoapods/sources_manager.rb
# Search all the sources with the given search term.
#
# @param  [String] query
#         The search term.
#
# @param  [Bool] full_text_search
#         Whether the search should be limited to the name of the Pod or
#         should include also the author, the summary, and the
#         description.
#
# @raise  If no source including the set can be found.
#
# @note   Full text search requires to load the specification for each
#         pod, hence is considerably slower.
#
# @return [Array<Set>]  The sets that contain the search term.
#
Search all the sources with the given search term.
Search all the sources with the given search term .
def search_by_name(query, full_text_search = false)
        result = aggregate.search_by_name(query, full_text_search)
        if result.empty?
          extra = ", author, summary, or description" if full_text_search
          raise Informative "Unable to find a pod with name#{extra} matching `#{query}`"
        end
        result
      end
def search_by_name ( query , full_text_search = false ) result = aggregate . search_by_name ( query , full_text_search ) if result . empty? extra = ", author, summary, or description" if full_text_search raise Informative "Unable to find a pod with name#{extra} matching `#{query}`" end result end
Search all the sources with the given search term.
Search all the sources with the given search term .
The sets that contain the search term.
The sets that contain the search term .
Array<Set>
If no source including the set can be found.
If no source including the set can be found .
query
full_text_search
full_text_search Whether the search should be limited to the name of the Pod or should include also the author, the summary, and the description.
full_text_search Whether the search should be limited to the name of the Pod or should include also the author the summary and the description .
note
Full text search requires to load the specification for each pod, hence is considerably slower.
Full text search requires to load the specification for each pod hence is considerably slower .