lib/cevennes.rb in cevennes-1.1.1 vs lib/cevennes.rb in cevennes-1.2.0

- old
+ new

@@ -3,11 +3,11 @@ require 'csv' module Cevennes - VERSION = '1.1.1' + VERSION = '1.2.0' class << self def diff(id, csv0, csv1, opts={}) @@ -37,9 +37,11 @@ d.insert(i, [ '+', -1, nil, lnum, line ]) } s = d.inject({}) { |h, (a, _, _)| h[a] = (h[a] || 0) + 1; h } s['l0'] = h0.length s['l1'] = h1.length + + d = d.reject { |e| e[0] == '=' } if opts[:drop_equals] [ [ 'keys', *ks0, *ks1 ], [ 'stats', s ] ] + d end protected