lib/cocoapods-core/source/acceptor.rb
# Returns the specifications related to the given spec.
#
# @param  [Specification] spec
#         The specification for which the siblings specs are needed.
#
# @return [Array<Specification>] The other specifications of the Pod.
#
# @return [Nil] If there are no other specifications stored.
#
Returns the specifications related to the given spec.
Returns the specifications related to the given spec .
def related_specifications(spec)
        versions = source.versions(spec.name)
        return unless versions
        specs = versions.sort.map { |v| source.specification(spec.name, v) }
        specs.delete(spec)
        specs
      end
def related_specifications ( spec ) versions = source . versions ( spec . name ) return unless versions specs = versions . sort . map { | v | source . specification ( spec . name , v ) } specs . delete ( spec ) specs end
Returns the specifications related to the given spec.
Returns the specifications related to the given spec .
The other specifications of the Pod.
The other specifications of the Pod .
Array<Specification>
If there are no other specifications stored.
If there are no other specifications stored .
Nil
spec
<not_specific>
<not_specific>
spec The specification for which the siblings specs are needed.
spec The specification for which the siblings specs are needed .