def satisfies_requirement? dependency
    return @name == dependency.name &&
      dependency.requirement.satisfied_by?(@version)
  end
#
Checks if this specification meets the requirement of +dependency+.