diff --git a/lib/rubygems/source/lock.rb b/lib/rubygems/source/lock.rb index 86b16e964c6c..59717be2c0be 100644 --- a/lib/rubygems/source/lock.rb +++ b/lib/rubygems/source/lock.rb @@ -34,6 +34,10 @@ def == other # :nodoc: 0 == (self <=> other) end + def hash # :nodoc: + @wrapped.hash ^ 3 + end + ## # Delegates to the wrapped source's fetch_spec method. @@ -46,4 +50,3 @@ def uri # :nodoc: end end -