lib/solve/graph.rb
# Return all the artifacts from the collection of artifacts
# with the given name.
#
# @param [String] name
#
# @return [Array<Solve::Artifact>]
Return all the artifacts from the collection of artifacts
with the given name.
Return all the artifacts from the collection of artifacts with the given name .
def versions(name, constraint = Semverse::DEFAULT_CONSTRAINT)
      constraint = Semverse::Constraint.coerce(constraint)
      if constraint == Semverse::DEFAULT_CONSTRAINT
        @artifacts_by_name[name]
      else
        @artifacts_by_name[name].select do |artifact|
          constraint.satisfies?(artifact.version)
        end
      end
    end
def versions ( name , constraint = Semverse :: DEFAULT_CONSTRAINT ) constraint = Semverse :: Constraint . coerce ( constraint ) if constraint == Semverse :: DEFAULT_CONSTRAINT @artifacts_by_name [ name ] else @artifacts_by_name [ name ] . select do | artifact | constraint . satisfies? ( artifact . version ) end end end
Return all the artifacts from the collection of artifacts
with the given name.
Return all the artifacts from the collection of artifacts with the given name .
None
Array<Solve::Artifact>
name
<not_specific>
constraint
<not_specific>
<not_specific>
None