Mon Sep 14 14:26:02 2020 UTC ()
textproc/ruby-diff-lcs: update to 1.4.4

Update ruby-diff-lcs to 1.4.4.

## 1.4.4 / 2020-07-01

- Fixed an issue reported by Jun Aruga in the Diff::LCS::Ldiff binary text
  detection. [#44][]
- Fixed a theoretical issue reported by Jun Aruga in Diff::LCS::Hunk to raise
  a more useful exception. [#43][]
- Added documentation that should address custom object issues as reported in
  [#35][].

- Fixed more diff errors, in part reported in [#65][].

  - The use of `Numeric#abs` is incorrect in `Diff::LCS::Block#diff_size`.
    The diff size _must_ be accurate for correct change placement.
  - When selecting @max_diff_size in Diff::LCS::Hunk, choose it based on
    `block.diff_size.abs`.
  - Made a number of changes that will, unfortunately, increase allocations
    at the cost of being safe with frozen strings.
  - Add some knowledge that when `Diff::LCS::Hunk#diff` is called, that we
    are processing the _last_ hunk, so some changes will be made to how the
    output is generated.

    - `old`, `ed`, and `reverse_ed` formats have no differences.
    - `unified` format will report `\ No newline at end of file` given the
      correct conditions, at most once. Unified range reporting also
      differs for the last hunk such that the `length` of the range is
      reduced by one.
    - `context` format will report `\No newline at end of file` given the
      correct conditions, up to once per "file". Context range reporting also
      differs for the last hunk such that the `end` part of the range is
      reduced by one to a minimum of one.

- Added a bunch more tests for the cases above, and fixed `hunk_spec.rb` so
  that the phrase being compared isn't nonsense French.

- Updated formatting.
- Added a Rake task to assist with manual testing on Ruby 1.8.

## 1.4.3 / 2020-06-29

- Fixed several issues with the 1.4 on Rubies older than 2.0. Some of this was
  providing useful shim functions to Hoe 3.x (which dropped these older
  Rubies a while ago). Specifically:

  - Removed Array#lazy from a method in Diff::LCS::Hunk.
  - Changed some unit tests to use old-style Symbol-keyed hashes.
  - Changed some unit test helper functions to no longer use keyword
    parameters, but only a trailing options hash.
  - Made the use of `psych` dependent on `RUBY_VERSION >= 1.9`.

  Resolves [#63][].

## 1.4.2 / 2020-06-23

- Camille Drapier fixed a small issue with RuboCop configuration. [#59][]
- Applied another fix (and unit test) to fix an issue for the Chef team.
  [#60][], [#61][]

## 1.4.1 / 2020-06-23

- Fix an issue where diff sizes could be negative, and they should be. [#57][],
  [#58][]

## 1.4 / 2020-06-23

- Ruby versions lower than 2.4 are soft-deprecated and will not be run as
  part of the CI process any longer.
- Akinora MUSHA (knu) added the ability for Diff::LCS::Change objects to be
  implicitly treated arrays. Originally provided as pull request [#47][],
  but it introduced a number of test failures as documented in [#48][], and
  remediation of Diff::LCS itself was introduced in [#49][].
- Resolved [#5][] with some tests comparing output from `system` calls to
  `bin/ldiff` with some pre-generated output. Resolved [#6][] with these
  tests.
- Resolved a previously undetected `bin/ldiff` issue with `--context` output
  not matching `diff --context` output.
- Resolved an issue with later versions of Ruby not working with an `OptParse`
  specification of `Numeric`; this has been changed to `Integer`.
- Brandon Fish added truffleruby in [#52][].
- Fixed two missing classes as reported in [#53]


(taca)
diff -r1.22 -r1.23 pkgsrc/textproc/ruby-diff-lcs/Makefile
diff -r1.7 -r1.8 pkgsrc/textproc/ruby-diff-lcs/PLIST
diff -r1.7 -r1.8 pkgsrc/textproc/ruby-diff-lcs/distinfo

cvs diff -r1.22 -r1.23 pkgsrc/textproc/ruby-diff-lcs/Makefile (expand / switch to unified diff)

--- pkgsrc/textproc/ruby-diff-lcs/Makefile 2017/09/04 18:01:02 1.22
+++ pkgsrc/textproc/ruby-diff-lcs/Makefile 2020/09/14 14:26:02 1.23
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.22 2017/09/04 18:01:02 wiz Exp $ 1# $NetBSD: Makefile,v 1.23 2020/09/14 14:26:02 taca Exp $
2 2
3DISTNAME= diff-lcs-1.3 3DISTNAME= diff-lcs-1.4.4
4CATEGORIES= textproc 4CATEGORIES= textproc
5 5
6MAINTAINER= pkgsrc-users@NetBSD.org 6MAINTAINER= pkgsrc-users@NetBSD.org
7#HOMEPAGE= http://diff-lcs.rubyforge.org/ 7#HOMEPAGE= http://diff-lcs.rubyforge.org/
8COMMENT= Diff library for Ruby 8COMMENT= Diff library for Ruby
9LICENSE= gnu-gpl-v2 OR artistic OR ruby-license 9LICENSE= gnu-gpl-v2 OR artistic OR ruby-license
10 10
11RUBYGEM_OPTIONS+= --format-executable 11RUBYGEM_OPTIONS+= --format-executable
12 12
13.include "../../lang/ruby/gem.mk" 13.include "../../lang/ruby/gem.mk"
14.include "../../mk/bsd.pkg.mk" 14.include "../../mk/bsd.pkg.mk"

cvs diff -r1.7 -r1.8 pkgsrc/textproc/ruby-diff-lcs/PLIST (expand / switch to unified diff)

--- pkgsrc/textproc/ruby-diff-lcs/PLIST 2017/03/20 15:26:04 1.7
+++ pkgsrc/textproc/ruby-diff-lcs/PLIST 2020/09/14 14:26:02 1.8
@@ -1,42 +1,50 @@ @@ -1,42 +1,50 @@
1@comment $NetBSD: PLIST,v 1.7 2017/03/20 15:26:04 taca Exp $ 1@comment $NetBSD: PLIST,v 1.8 2020/09/14 14:26:02 taca Exp $
2bin/htmldiff${RUBY_SUFFIX} 2bin/htmldiff${RUBY_SUFFIX}
3bin/ldiff${RUBY_SUFFIX} 3bin/ldiff${RUBY_SUFFIX}
4${GEM_HOME}/cache/${GEM_NAME}.gem 4${GEM_HOME}/cache/${GEM_NAME}.gem
5${GEM_LIBDIR}/.rspec 5${GEM_LIBDIR}/.rspec
6${GEM_LIBDIR}/Code-of-Conduct.md 6${GEM_LIBDIR}/Code-of-Conduct.md
7${GEM_LIBDIR}/Contributing.md 7${GEM_LIBDIR}/Contributing.md
8${GEM_LIBDIR}/History.md 8${GEM_LIBDIR}/History.md
9${GEM_LIBDIR}/License.md 9${GEM_LIBDIR}/License.md
10${GEM_LIBDIR}/Manifest.txt 10${GEM_LIBDIR}/Manifest.txt
11${GEM_LIBDIR}/README.rdoc 11${GEM_LIBDIR}/README.rdoc
12${GEM_LIBDIR}/Rakefile 12${GEM_LIBDIR}/Rakefile
13${GEM_LIBDIR}/autotest/discover.rb 13${GEM_LIBDIR}/autotest/discover.rb
14${GEM_LIBDIR}/bin/htmldiff 14${GEM_LIBDIR}/bin/htmldiff
15${GEM_LIBDIR}/bin/ldiff 15${GEM_LIBDIR}/bin/ldiff
16${GEM_LIBDIR}/docs/COPYING.txt 16${GEM_LIBDIR}/docs/COPYING.txt
17${GEM_LIBDIR}/docs/artistic.txt 17${GEM_LIBDIR}/docs/artistic.txt
18${GEM_LIBDIR}/lib/diff-lcs.rb 18${GEM_LIBDIR}/lib/diff-lcs.rb
19${GEM_LIBDIR}/lib/diff/lcs.rb 19${GEM_LIBDIR}/lib/diff/lcs.rb
20${GEM_LIBDIR}/lib/diff/lcs/array.rb 20${GEM_LIBDIR}/lib/diff/lcs/array.rb
 21${GEM_LIBDIR}/lib/diff/lcs/backports.rb
21${GEM_LIBDIR}/lib/diff/lcs/block.rb 22${GEM_LIBDIR}/lib/diff/lcs/block.rb
22${GEM_LIBDIR}/lib/diff/lcs/callbacks.rb 23${GEM_LIBDIR}/lib/diff/lcs/callbacks.rb
23${GEM_LIBDIR}/lib/diff/lcs/change.rb 24${GEM_LIBDIR}/lib/diff/lcs/change.rb
24${GEM_LIBDIR}/lib/diff/lcs/htmldiff.rb 25${GEM_LIBDIR}/lib/diff/lcs/htmldiff.rb
25${GEM_LIBDIR}/lib/diff/lcs/hunk.rb 26${GEM_LIBDIR}/lib/diff/lcs/hunk.rb
26${GEM_LIBDIR}/lib/diff/lcs/internals.rb 27${GEM_LIBDIR}/lib/diff/lcs/internals.rb
27${GEM_LIBDIR}/lib/diff/lcs/ldiff.rb 28${GEM_LIBDIR}/lib/diff/lcs/ldiff.rb
28${GEM_LIBDIR}/lib/diff/lcs/string.rb 29${GEM_LIBDIR}/lib/diff/lcs/string.rb
29${GEM_LIBDIR}/spec/change_spec.rb 30${GEM_LIBDIR}/spec/change_spec.rb
30${GEM_LIBDIR}/spec/diff_spec.rb 31${GEM_LIBDIR}/spec/diff_spec.rb
 32${GEM_LIBDIR}/spec/fixtures/aX
 33${GEM_LIBDIR}/spec/fixtures/bXaX
31${GEM_LIBDIR}/spec/fixtures/ds1.csv 34${GEM_LIBDIR}/spec/fixtures/ds1.csv
32${GEM_LIBDIR}/spec/fixtures/ds2.csv 35${GEM_LIBDIR}/spec/fixtures/ds2.csv
 36${GEM_LIBDIR}/spec/fixtures/ldiff/output.diff
 37${GEM_LIBDIR}/spec/fixtures/ldiff/output.diff-c
 38${GEM_LIBDIR}/spec/fixtures/ldiff/output.diff-e
 39${GEM_LIBDIR}/spec/fixtures/ldiff/output.diff-f
 40${GEM_LIBDIR}/spec/fixtures/ldiff/output.diff-u
33${GEM_LIBDIR}/spec/hunk_spec.rb 41${GEM_LIBDIR}/spec/hunk_spec.rb
34${GEM_LIBDIR}/spec/issues_spec.rb 42${GEM_LIBDIR}/spec/issues_spec.rb
35${GEM_LIBDIR}/spec/lcs_spec.rb 43${GEM_LIBDIR}/spec/lcs_spec.rb
36${GEM_LIBDIR}/spec/ldiff_spec.rb 44${GEM_LIBDIR}/spec/ldiff_spec.rb
37${GEM_LIBDIR}/spec/patch_spec.rb 45${GEM_LIBDIR}/spec/patch_spec.rb
38${GEM_LIBDIR}/spec/sdiff_spec.rb 46${GEM_LIBDIR}/spec/sdiff_spec.rb
39${GEM_LIBDIR}/spec/spec_helper.rb 47${GEM_LIBDIR}/spec/spec_helper.rb
40${GEM_LIBDIR}/spec/traverse_balanced_spec.rb 48${GEM_LIBDIR}/spec/traverse_balanced_spec.rb
41${GEM_LIBDIR}/spec/traverse_sequences_spec.rb 49${GEM_LIBDIR}/spec/traverse_sequences_spec.rb
42${GEM_HOME}/specifications/${GEM_NAME}.gemspec 50${GEM_HOME}/specifications/${GEM_NAME}.gemspec

cvs diff -r1.7 -r1.8 pkgsrc/textproc/ruby-diff-lcs/distinfo (expand / switch to unified diff)

--- pkgsrc/textproc/ruby-diff-lcs/distinfo 2017/03/20 15:26:04 1.7
+++ pkgsrc/textproc/ruby-diff-lcs/distinfo 2020/09/14 14:26:02 1.8
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.7 2017/03/20 15:26:04 taca Exp $ 1$NetBSD: distinfo,v 1.8 2020/09/14 14:26:02 taca Exp $
2 2
3SHA1 (diff-lcs-1.3.gem) = 8be462a44988891d3f4350085e965cd75dfc9d62 3SHA1 (diff-lcs-1.4.4.gem) = f3d8692458e983e77ce282e6d3481b5dca9c3817
4RMD160 (diff-lcs-1.3.gem) = fe13bf98d501323dab8d4953a817ff93c531b376 4RMD160 (diff-lcs-1.4.4.gem) = 93a54bba68b26ca49cbd676735ef3a4f109b213b
5SHA512 (diff-lcs-1.3.gem) = b82de390d22e0c1337ddca923621b1cc842f583a93953ef07a303b428fe3a389f8a4a1a63617a58136c8d6215aff025a3bbec2a2f618e9ea81f471964f93b078 5SHA512 (diff-lcs-1.4.4.gem) = fcc6c86f392697c4b3690827f7c20d50fe68e367626b85a56446356d7bb21b4020bdb2bc5c2faf4e82807cd9f3049d71c94d166c85a1a4231f0fd9fc032f41c7
6Size (diff-lcs-1.3.gem) = 46080 bytes 6Size (diff-lcs-1.4.4.gem) = 50688 bytes