End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Version#eql?
eql?(other)
lib/rubygems/version.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/version.rb, line 254
def eql?(other)
self.class === other && @version == other._version
end