lib/cocoapods-core/dependency.rb
# Checks if a dependency would be satisfied by the requirements of another
# dependency.
#
# @param  [Dependency] other
#         the other dependency.
#
# @note   This is used by the Lockfile to check if a stored dependency is
#         still compatible with the Podfile.
#
# @return [Bool] whether the dependency is compatible with the given one.
#
Checks if a dependency would be satisfied by the requirements of another
dependency.
Checks if a dependency would be satisfied by the requirements of another dependency .
def compatible?(other)
      return false unless name == other.name
      return false unless head? == other.head?
      return false unless external_source == other.external_source
      other.requirement.requirements.all? do | operator, version |
        self.requirement.satisfied_by? Version.new(version)
      end
    end
def compatible? ( other ) return false unless name == other . name return false unless head? == other . head? return false unless external_source == other . external_source other . requirement . requirements . all? do | operator , version | self . requirement . satisfied_by? Version . new ( version ) end end
Checks if a dependency would be satisfied by the requirements of another
dependency.
Checks if a dependency would be satisfied by the requirements of another dependency .
whether the dependency is compatible with the given one.
whether the dependency is compatible with the given one .
Bool
other
other the other dependency.
other the other dependency .
note
This is used by the Lockfile to check if a stored dependency is still compatible with the Podfile.
This is used by the Lockfile to check if a stored dependency is still compatible with the Podfile .