From a7a595e2d5d3b4658d21d33f3f62f7c85ee4c82b Mon Sep 17 00:00:00 2001 From: Austin Ziegler Date: Tue, 23 Jun 2020 11:33:25 -0400 Subject: Fix an issue with negative hunk max_size Resolves #57. - The `diff_size` should be an absolute value. - Added a test to ensure that the issue does not introduce a regression. --- lib/diff/lcs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/diff/lcs.rb') diff --git a/lib/diff/lcs.rb b/lib/diff/lcs.rb index c4d1cc8..b6d0a86 100644 --- a/lib/diff/lcs.rb +++ b/lib/diff/lcs.rb @@ -49,7 +49,7 @@ module Diff; end unless defined? Diff # rubocop:disable Style/Documentation # a x b y c z p d q # a b c a x b y c z module Diff::LCS - VERSION = '1.4' + VERSION = '1.4.1' end require 'diff/lcs/callbacks' -- cgit v1.2.1