lib/cocoapods/resolver.rb
# Loads or returns a previously initialized for the Pod of the given
# dependency.
#
# @param  [Dependency] dependency
#         the dependency for which the set is needed.
#
# @return [Set] the cached set for a given dependency.
#
Loads or returns a previously initialized for the Pod of the given
dependency.
Loads or returns a previously initialized for the Pod of the given dependency .
def find_cached_set(dependency)
      name = dependency.root_name
      unless cached_sets[name]
        if dependency.external_source
          spec = sandbox.specification(dependency.root_name)
          unless spec
            raise StandardError, "[Bug] Unable to find the specification for `#{dependency}`."
          end
          set = Specification::Set::External.new(spec)
        else
          set = cached_sources.search(dependency)
        end
        cached_sets[name] = set
        unless set
          raise Informative, "Unable to find a specification for `#{dependency}`."
        end
      end
      cached_sets[name]
    end
def find_cached_set ( dependency ) name = dependency . root_name unless cached_sets [ name ] if dependency . external_source spec = sandbox . specification ( dependency . root_name ) unless spec raise StandardError , "[Bug] Unable to find the specification for `#{dependency}`." end set = Specification :: Set :: External . new ( spec ) else set = cached_sources . search ( dependency ) end cached_sets [ name ] = set unless set raise Informative , "Unable to find a specification for `#{dependency}`." end end cached_sets [ name ] end
Loads or returns a previously initialized for the Pod of the given
dependency.
Loads or returns a previously initialized for the Pod of the given dependency .
the cached set for a given dependency.
the cached set for a given dependency .
Set
dependency
dependency the dependency for which the set is needed.
dependency the dependency for which the set is needed .