liufengyun / hashdiff

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

fix invalid readme examples #78

Closed grosser closed 4 years ago

grosser commented 4 years ago
>> Hashdiff.diff([1], [2], :comparison => { :numeric_tolerance => 0.1, :strip => true })
NoMethodError (undefined method `call' for {:numeric_tolerance=>0.1, :strip=>true}:Hash)

... also modernize the readme and make sure it stays valid

grosser commented 4 years ago

@liufengyun

grosser commented 4 years ago

... I did rubocop 0.49.1 for now :/

liufengyun commented 4 years ago

@grosser Thanks a lot 🎉