1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add guard as same as ==

Try to fix failure at https://github.com/ruby/ruby/runs/207580232#step:10:382
```
       undefined method `name' for "Gemfile.lock":String
       /home/runner/work/ruby/ruby/lib/bundler/resolver/spec_group.rb:65:in `eql?'
```
This commit is contained in:
Kazuhiro NISHIYAMA 2019-08-30 12:49:27 +09:00
parent 896d9f967b
commit b870ca5879
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -62,6 +62,7 @@ module Bundler
end
def eql?(other)
return unless other.is_a?(SpecGroup)
name.eql?(other.name) &&
version.eql?(other.version) &&
source.eql?(other.source)