liufengyun / hashdiff

Hashdiff is a ruby library to to compute the smallest difference between two hashes
MIT License
560 stars 63 forks source link

Make comparable? commutative #76

Closed dduugg closed 5 years ago

dduugg commented 5 years ago

This fixes an issue where comparable?(x, y) != comparable?(y, x), when x is an instance of a subclass of Hash (or Array), and y is an instance of Hash (or Array) directly.

Resolves https://github.com/liufengyun/hashdiff/issues/54

liufengyun commented 5 years ago

Thanks a lot @dduugg 👍