lib/cocoapods-core/source/aggregate.rb
# Returns the vocabulary extracted from the most representative
# specification of the set. Vocabulary contains words from following information:
#
#   - version
#   - summary
#   - description
#   - authors
#
# @param  [Set] set
#         The set for which the information is needed.
#
# @note   If the specification can't load an empty array is returned and
#         a warning is printed.
#
# @note   For compatibility with non Ruby clients a strings are used
#         instead of symbols for the keys.
#
# @return [Array<String>] An array of words contained by the set's search related information.
#
Returns the vocabulary extracted from the most representative
specification of the set. Vocabulary contains words from following information.

version
summary
description
authors
Returns the vocabulary extracted from the most representative specification of the set . Vocabulary contains words from following information . version summary description authors
def word_list_from_set(set)
        spec = set.specification
        word_list = [set.name.dup]
        if spec.summary
          word_list += spec.summary.split
        end
        if spec.description
          word_list += spec.description.split
        end
        if spec.authors
          spec.authors.each_pair do |k, v|
            word_list += k.split if k
            word_list += v.split if v
          end
        end
        word_list.uniq
      rescue
        CoreUI.warn "Skipping `#{set.name}` because the podspec contains " \
          'errors.'
        []
      end
def word_list_from_set ( set ) spec = set . specification word_list = [ set . name . dup ] if spec . summary word_list += spec . summary . split end if spec . description word_list += spec . description . split end if spec . authors spec . authors . each_pair do | k , v | word_list += k . split if k word_list += v . split if v end end word_list . uniq rescue CoreUI . warn "Skipping `#{set.name}` because the podspec contains " 'errors.' [ ] end
Returns the vocabulary extracted from the most representative
specification of the set.
Returns the vocabulary extracted from the most representative specification of the set .
An array of words contained by the set's search related information.
An array of words contained by the set ' s search related information .
Array<String>
set
<not_specific>
<not_specific>
set The set for which the information is needed.
set The set for which the information is needed .
note
If the specification can't load an empty array is returned and a warning is printed.
If the specification can ' t load an empty array is returned and a warning is printed .
note
For compatibility with non Ruby clients a strings are used instead of symbols for the keys.
For compatibility with non Ruby clients a strings are used instead of symbols for the keys .