зеркало из https://github.com/github/ruby.git
[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
This commit is contained in:
Родитель
453de8c2bc
Коммит
06d5d4f1d0
|
@ -66,4 +66,11 @@ class Gem::Resolver::SpecSpecification < Gem::Resolver::Specification
|
||||||
def version
|
def version
|
||||||
spec.version
|
spec.version
|
||||||
end
|
end
|
||||||
|
|
||||||
|
##
|
||||||
|
# The hash value for this specification.
|
||||||
|
|
||||||
|
def hash
|
||||||
|
spec.hash
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Загрузка…
Ссылка в новой задаче