lib/cocoapods-core/dependency.rb
# Merges the version requirements of the dependency with another one.
#
# @param  [Dependency] other
#         the other dependency to merge with.
#
# @note   If one of the decencies specifies an external source or is head,
#         the resulting dependency preserves this attributes.
#
# @return [Dependency] a dependency (not necessary a new instance) that
#         includes also the version requirements of the given one.
#
Merges the version requirements of the dependency with another one.
Merges the version requirements of the dependency with another one .
def merge(other)
      dep = super
      dep.head = head? || other.head?
      if external_source || other.external_source
        self_external_source  = external_source || {}
        other_external_source = other.external_source || {}
        dep.external_source = self_external_source.merge(other_external_source)
      end
      dep
    end
def merge ( other ) dep = super dep . head = head? || other . head? if external_source || other . external_source self_external_source = external_source || { } other_external_source = other . external_source || { } dep . external_source = self_external_source . merge ( other_external_source ) end dep end
Merges the version requirements of the dependency with another one.
Merges the version requirements of the dependency with another one .
a dependency (not necessary a new instance) that includes also the version requirements of the given one.
a dependency ( not necessary a new instance ) that includes also the version requirements of the given one .
Dependency
other
other the other dependency to merge with.
other the other dependency to merge with .
note
If one of the decencies specifies an external source or is head, the resulting dependency preserves this attributes.
If one of the decencies specifies an external source or is head the resulting dependency preserves this attributes .