module Bundler::Plugin::API::Source

def ==(other)

The same applies for `eql?` and `hash`

lockfile. To converge the sources, it is necessary that they match.
The sources objects are constructed from Gemfile as well as from

sources should compare on branch and tag but not on commit hash)
that are used to pin down the gem to specific version (e.g. Git
inferred from the options passed from Gemfile and not on attributes
The comparison shall take place only on the attribute that can be

This shall check if two source object represent the same source.
def ==(other)
  other.is_a?(self.class) && uri == other.uri
end