class Gem::Dependency

def =~(other)

def =~(other)
  unless Gem::Dependency === other
    return unless other.respond_to?(:name) && other.respond_to?(:version)
    other = Gem::Dependency.new other.name, other.version
  end
  return false unless name === other.name
  reqs = other.requirement.requirements
  return false unless reqs.length == 1
  return false unless reqs.first.first == "="
  version = reqs.first.last
  requirement.satisfied_by? version
end