diff options
author | David Rodriguez <deivid.rodriguez@riseup.net> | 2024-03-25 18:02:28 +0100 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2024-03-25 19:45:51 +0000 |
commit | 06d5d4f1d0f58bdf73a0978221fe13e17f36712e (patch) | |
tree | 67ccf852a28b7943c9b4b4242a1ee6c333770d89 | |
parent | 453de8c2bc1392be86058510630fab1a55c2a265 (diff) |
[rubygems/rubygems] Fix resolver bug where ActivationRequest objects were not properly compared
They were delegating their `#hash` value to a class not overriding that
method, and so were returning inconsistent results.
https://github.com/rubygems/rubygems/commit/723e4ee0fc
-rw-r--r-- | lib/rubygems/resolver/spec_specification.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/rubygems/resolver/spec_specification.rb b/lib/rubygems/resolver/spec_specification.rb index 79a34d8063..00ef9fdba0 100644 --- a/lib/rubygems/resolver/spec_specification.rb +++ b/lib/rubygems/resolver/spec_specification.rb @@ -66,4 +66,11 @@ class Gem::Resolver::SpecSpecification < Gem::Resolver::Specification def version spec.version end + + ## + # The hash value for this specification. + + def hash + spec.hash + end end |