pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/textproc/ruby-diff-lcs
Module Name: pkgsrc
Committed By: taca
Date: Mon Nov 30 16:01:14 UTC 2026
Modified Files:
pkgsrc/textproc/ruby-diff-lcs: ALTERNATIVES Makefile PLIST distinfo
Log Message:
textproc/ruby-diff-lcs: update to 2.1.0
pkgsrc change: update ALTERNATIVES.
2.1.0 (2026-11-29)
There are minor breaking change in this release, but they are considered to
be unlikely to be encountered and nothing in RSpec appears to encounter
these issues. Because Diff::LCS::Change and Diff::LCS::ContextChange were
made plain frozen classes instead of Data instances:
* to_s, pp and ContextChange#inspect drop the data prefix;
* keyword names must be Symbols;
* a subclass overriding initialize with keyword parameters can no longer be
built positionally; and
* a Marshal or YAML dump made with 2.0.x no longer loads.
Clément Joubert contributed a number of amazing changes to this release.
It would not have happened without his contributions!
Deprecations
* Deprecate the extension of Array and String by requiring diff/lcs/array or
diff/lcs/string. These files will go away with the next major version.
As of this version, a warning will be emitted. (This should have happened
for 2.0, but I forgot.)
Correctness
* Added a guard test suite showing that Unicode NFC and NFD forms compare
differently. #234
* Clarified the licence for diff-lcs, based on #221 by James Thompson. #231
ldiff Improvements
All of these changes were made by Clément Joubert.
* The hunk merging and output of Diff::LCS::Ldiff was moved to
Diff::LCS::Hunk, so that it can be used without bin/ldiff.
Diff::LCS::Hunk.from_diff returns the merged hunks for two sequences of
lines and Diff::LCS::Hunk.diff returns the diff in the old, unified, or
context format, with 3 lines of context by default.
Diff::LCS::Hunk#diff(:old) now writes each change of a hunk on its own, so
it is also correct for hunks with context. ldiff output is
unchanged. #46, #242
* The ldiff -c output was fixed when there is more than one hunk. When a
hunk ended with lines from the new file, the separator of the next hunk
was written on the same line as the last line. #241
* Diff::LCS::Ldiff.run read the filenames the file names from ARGV instead
of its args, and - from $stdin instead of its input. This is fixed, so it
can be called with any array and input. #236
* ldiff -q incorrectly reported two identical binary files as different.
#237
Performance Improvements
All of these changes were made by Clément Joubert.
* Sped up and reduced allocations in diff, sdiff and lcs without affecting
output. The LCS core skips redundant threshold updates and the links they
allocated, and strings are split into code points once instead of
allocating on every access. diff and sdiff build their default results
without traversal events. #230
* Diff::LCS::Change and Diff::LCS::ContextChange were made plain frozen
classes with the API they had as Data classes, so building one allocates a
single object: on line diffs with YJIT, sdiff runs more than twice as fast
and traverse_balanced 1.7 times as fast. #235
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/textproc/ruby-diff-lcs/ALTERNATIVES
cvs rdiff -u -r1.28 -r1.29 pkgsrc/textproc/ruby-diff-lcs/Makefile
cvs rdiff -u -r1.12 -r1.13 pkgsrc/textproc/ruby-diff-lcs/PLIST
cvs rdiff -u -r1.15 -r1.16 pkgsrc/textproc/ruby-diff-lcs/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/textproc/ruby-diff-lcs/ALTERNATIVES
diff -u pkgsrc/textproc/ruby-diff-lcs/ALTERNATIVES:1.2 pkgsrc/textproc/ruby-diff-lcs/ALTERNATIVES:1.3
--- pkgsrc/textproc/ruby-diff-lcs/ALTERNATIVES:1.2 Sat Dec 12 04:12:18 2015
+++ pkgsrc/textproc/ruby-diff-lcs/ALTERNATIVES Mon Nov 30 16:01:14 2026
@@ -1,2 +1 @@
-bin/htmldiff @PREFIX@/bin/htmldiff@RUBY_SUFFIX@
bin/ldiff @PREFIX@/bin/ldiff@RUBY_SUFFIX@
Index: pkgsrc/textproc/ruby-diff-lcs/Makefile
diff -u pkgsrc/textproc/ruby-diff-lcs/Makefile:1.28 pkgsrc/textproc/ruby-diff-lcs/Makefile:1.29
--- pkgsrc/textproc/ruby-diff-lcs/Makefile:1.28 Tue Feb 3 15:43:31 2026
+++ pkgsrc/textproc/ruby-diff-lcs/Makefile Mon Nov 30 16:01:14 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.28 2026/02/03 15:43:31 taca Exp $
+# $NetBSD: Makefile,v 1.29 2026/11/30 16:01:14 taca Exp $
-DISTNAME= diff-lcs-2.0.0
+DISTNAME= diff-lcs-2.1.0
CATEGORIES= textproc
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
Index: pkgsrc/textproc/ruby-diff-lcs/PLIST
diff -u pkgsrc/textproc/ruby-diff-lcs/PLIST:1.12 pkgsrc/textproc/ruby-diff-lcs/PLIST:1.13
--- pkgsrc/textproc/ruby-diff-lcs/PLIST:1.12 Tue Feb 3 15:43:31 2026
+++ pkgsrc/textproc/ruby-diff-lcs/PLIST Mon Nov 30 16:01:14 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.12 2026/02/03 15:43:31 taca Exp $
+@comment $NetBSD: PLIST,v 1.13 2026/11/30 16:01:14 taca Exp $
bin/ldiff${RUBY_SUFFIX}
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_LIBDIR}/CHANGELOG.md
@@ -23,14 +23,16 @@ ${GEM_LIBDIR}/lib/diff/lcs/array.rb
${GEM_LIBDIR}/lib/diff/lcs/block.rb
${GEM_LIBDIR}/lib/diff/lcs/callbacks.rb
${GEM_LIBDIR}/lib/diff/lcs/change.rb
+${GEM_LIBDIR}/lib/diff/lcs/frozen_value.rb
${GEM_LIBDIR}/lib/diff/lcs/hunk.rb
${GEM_LIBDIR}/lib/diff/lcs/internals.rb
${GEM_LIBDIR}/lib/diff/lcs/ldiff.rb
${GEM_LIBDIR}/lib/diff/lcs/string.rb
${GEM_LIBDIR}/lib/diff/lcs/version.rb
-${GEM_LIBDIR}/licenses/COPYING.txt
-${GEM_LIBDIR}/licenses/artistic.txt
-${GEM_LIBDIR}/licenses/dco.txt
+${GEM_LIBDIR}/licences/COPYING.txt
+${GEM_LIBDIR}/licences/MIT.txt
+${GEM_LIBDIR}/licences/artistic.txt
+${GEM_LIBDIR}/licences/dco.txt
${GEM_LIBDIR}/spec/change_spec.rb
${GEM_LIBDIR}/spec/diff_spec.rb
${GEM_LIBDIR}/spec/hunk_spec.rb
@@ -70,11 +72,13 @@ ${GEM_LIBDIR}/test/fixtures/ldiff/output
${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.bin1-c
${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.bin1-e
${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.bin1-f
+${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.bin1-q
${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.bin1-u
${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.bin2
${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.bin2-c
${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.bin2-e
${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.bin2-f
+${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.bin2-q
${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.bin2-u
${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.chef
${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.chef-c
@@ -93,6 +97,9 @@ ${GEM_LIBDIR}/test/fixtures/ldiff/output
${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.four_lines.vs.empty-e
${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.four_lines.vs.empty-f
${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.four_lines.vs.empty-u
+${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.hunks
+${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.hunks-c
+${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.hunks-u
${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.issue95_trailing_context
${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.issue95_trailing_context-c
${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.issue95_trailing_context-e
@@ -108,13 +115,19 @@ ${GEM_LIBDIR}/test/fixtures/ldiff/output
${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.missing_new_line2-e
${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.missing_new_line2-f
${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.missing_new_line2-u
+${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.same
+${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.same-c
+${GEM_LIBDIR}/test/fixtures/ldiff/output.diff.same-u
${GEM_LIBDIR}/test/fixtures/new-chef
${GEM_LIBDIR}/test/fixtures/new-chef2
+${GEM_LIBDIR}/test/fixtures/new-hunks
${GEM_LIBDIR}/test/fixtures/old-chef
${GEM_LIBDIR}/test/fixtures/old-chef2
+${GEM_LIBDIR}/test/fixtures/old-hunks
${GEM_LIBDIR}/test/test_block.rb
${GEM_LIBDIR}/test/test_change.rb
${GEM_LIBDIR}/test/test_diff.rb
+${GEM_LIBDIR}/test/test_frozen_value.rb
${GEM_LIBDIR}/test/test_helper.rb
${GEM_LIBDIR}/test/test_hunk.rb
${GEM_LIBDIR}/test/test_issues.rb
Index: pkgsrc/textproc/ruby-diff-lcs/distinfo
diff -u pkgsrc/textproc/ruby-diff-lcs/distinfo:1.15 pkgsrc/textproc/ruby-diff-lcs/distinfo:1.16
--- pkgsrc/textproc/ruby-diff-lcs/distinfo:1.15 Tue Feb 3 15:43:31 2026
+++ pkgsrc/textproc/ruby-diff-lcs/distinfo Mon Nov 30 16:01:14 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.15 2026/02/03 15:43:31 taca Exp $
+$NetBSD: distinfo,v 1.16 2026/11/30 16:01:14 taca Exp $
-BLAKE2s (diff-lcs-2.0.0.gem) = f16da0252138ce63f60d1b1cb3b20232b3ea2ffe6493a930ec04a47bf9a3137c
-SHA512 (diff-lcs-2.0.0.gem) = 228fb7558bbdac3ae6d29a0f72989e9889052b6ecc39570b1f287aa9b6b4224ac80e513491886e25a12c6c60fb1aa0aeb8fba36adeeb659d7b1614b02a648ccd
-Size (diff-lcs-2.0.0.gem) = 70144 bytes
+BLAKE2s (diff-lcs-2.1.0.gem) = d185d92944ef6620cc51d8aa33d4674643515e7ab9a5909389dc0683137e8983
+SHA512 (diff-lcs-2.1.0.gem) = fa37e2973fb0868615d4ee9c2cccca0aa1d8dbc0aade18286b000d93682cfd1cc4d5b5975c04cf8c7b31eb8db06c7f134ca54703824005124694b8e0d374ca2e
+Size (diff-lcs-2.1.0.gem) = 79872 bytes
Home |
Main Index |
Thread Index |
Old Index