    # File lib/rubygems/dependency.rb, line 96
      def =~(other)
        return false unless self.class === other

        pattern = @name
        pattern = /\A#{@name}\Z/ unless Regexp === pattern

        return false unless pattern =~ other.name

        reqs = other.version_requirements.requirements

        return false unless reqs.length == 1
        return false unless reqs.first.first == '='

        version = reqs.first.last

        version_requirements.satisfied_by? version
      end