lib/cevennes.rb in cevennes-0.10.0 vs lib/cevennes.rb in cevennes-0.11.0

- old
+ new

@@ -2,11 +2,11 @@ require 'csv' module Cevennes - VERSION = '0.10.0' + VERSION = '0.11.0' class << self def diff(id, csv0, csv1) @@ -34,11 +34,13 @@ .each { |lnum, line| i = d.index { |a, _, _, l1, _| l1 > lnum } || d.length d.insert(i, [ '+', -1, nil, lnum, line ]) } s = d.inject({}) { |h, (a, _, _)| h[a] = (h[a] || 0) + 1; h } - s['l0'] = h0.length - 1 - s['l1'] = h1.length - 1 + s['l0'] = h0.length + s['l1'] = h1.length + #s['ll0'] = s['='] + s['!'] + s['-'] + #s['ll1'] = s['='] + s['!'] + s['+'] [ [ 'keys', ks0, ks1 ], [ 'stats', s ] ] + d end protected