lib/differential/differential.rb in differential-1.0.6 vs lib/differential/differential.rb in differential-1.1.0

- old
+ new

@@ -21,11 +21,11 @@ class << self def calculate(dataset_a: [], dataset_b: [], reader_config: {}) reader = ::Differential::Parser::Reader.new(reader_config) report = ::Differential::Calculator::Report.new - reader.each(dataset_a) { |record| report.add(record, A) } - reader.each(dataset_b) { |record| report.add(record, B) } + dataset_a.each { |hash| report.add(reader.read(hash), A) } + dataset_b.each { |hash| report.add(reader.read(hash), B) } report end end end