From 06d5d4f1d0f58bdf73a0978221fe13e17f36712e Mon Sep 17 00:00:00 2001 From: David Rodriguez Date: Mon, 25 Mar 2024 18:02:28 +0100 Subject: [PATCH] [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 --- lib/rubygems/resolver/spec_specification.rb | 7 +++++++ 1 file changed, 7 insertions(+) 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