lib/hash_diff/comparison.rb in hash_diff-0.6.1 vs lib/hash_diff/comparison.rb in hash_diff-0.6.2

- old
+ new

@@ -30,11 +30,11 @@ def differences(left, right) combined_attribute_keys.reduce({}, &reduction_strategy) end - def reduction_strategy(opts={}) + def reduction_strategy lambda do |diff, key| diff[key] = report(key) if not equal?(key) diff end end @@ -69,6 +69,6 @@ when :right then left[key] when :both then [left[key], right[key]] end end end -end \ No newline at end of file +end