Method: Bundler::Plugin::API::Source#==
- Defined in:
- lib/bundler/plugin/api/source.rb
#==(other) ⇒ Object Also known as: eql?
This shall check if two source object represent the same source.
The comparison shall take place only on the attribute that can be inferred from the options passed from Gemfile and not on attributes that are used to pin down the gem to specific version (e.g. Git sources should compare on branch and tag but not on commit hash)
The sources objects are constructed from Gemfile as well as from lockfile. To converge the sources, it is necessary that they match.
The same applies for ‘eql?` and `hash`
214 215 216 |
# File 'lib/bundler/plugin/api/source.rb', line 214 def ==(other) other.is_a?(self.class) && uri == other.uri end |