head	1.3;
access;
symbols
	pkgsrc-2026Q3:1.2.0.88
	pkgsrc-2026Q3-base:1.2
	pkgsrc-2026Q2:1.2.0.86
	pkgsrc-2026Q2-base:1.2
	pkgsrc-2026Q1:1.2.0.84
	pkgsrc-2026Q1-base:1.2
	pkgsrc-2025Q4:1.2.0.82
	pkgsrc-2025Q4-base:1.2
	pkgsrc-2025Q3:1.2.0.80
	pkgsrc-2025Q3-base:1.2
	pkgsrc-2025Q2:1.2.0.78
	pkgsrc-2025Q2-base:1.2
	pkgsrc-2025Q1:1.2.0.76
	pkgsrc-2025Q1-base:1.2
	pkgsrc-2024Q4:1.2.0.74
	pkgsrc-2024Q4-base:1.2
	pkgsrc-2024Q3:1.2.0.72
	pkgsrc-2024Q3-base:1.2
	pkgsrc-2024Q2:1.2.0.70
	pkgsrc-2024Q2-base:1.2
	pkgsrc-2024Q1:1.2.0.68
	pkgsrc-2024Q1-base:1.2
	pkgsrc-2023Q4:1.2.0.66
	pkgsrc-2023Q4-base:1.2
	pkgsrc-2023Q3:1.2.0.64
	pkgsrc-2023Q3-base:1.2
	pkgsrc-2023Q2:1.2.0.62
	pkgsrc-2023Q2-base:1.2
	pkgsrc-2023Q1:1.2.0.60
	pkgsrc-2023Q1-base:1.2
	pkgsrc-2022Q4:1.2.0.58
	pkgsrc-2022Q4-base:1.2
	pkgsrc-2022Q3:1.2.0.56
	pkgsrc-2022Q3-base:1.2
	pkgsrc-2022Q2:1.2.0.54
	pkgsrc-2022Q2-base:1.2
	pkgsrc-2022Q1:1.2.0.52
	pkgsrc-2022Q1-base:1.2
	pkgsrc-2021Q4:1.2.0.50
	pkgsrc-2021Q4-base:1.2
	pkgsrc-2021Q3:1.2.0.48
	pkgsrc-2021Q3-base:1.2
	pkgsrc-2021Q2:1.2.0.46
	pkgsrc-2021Q2-base:1.2
	pkgsrc-2021Q1:1.2.0.44
	pkgsrc-2021Q1-base:1.2
	pkgsrc-2020Q4:1.2.0.42
	pkgsrc-2020Q4-base:1.2
	pkgsrc-2020Q3:1.2.0.40
	pkgsrc-2020Q3-base:1.2
	pkgsrc-2020Q2:1.2.0.36
	pkgsrc-2020Q2-base:1.2
	pkgsrc-2020Q1:1.2.0.16
	pkgsrc-2020Q1-base:1.2
	pkgsrc-2019Q4:1.2.0.38
	pkgsrc-2019Q4-base:1.2
	pkgsrc-2019Q3:1.2.0.34
	pkgsrc-2019Q3-base:1.2
	pkgsrc-2019Q2:1.2.0.32
	pkgsrc-2019Q2-base:1.2
	pkgsrc-2019Q1:1.2.0.30
	pkgsrc-2019Q1-base:1.2
	pkgsrc-2018Q4:1.2.0.28
	pkgsrc-2018Q4-base:1.2
	pkgsrc-2018Q3:1.2.0.26
	pkgsrc-2018Q3-base:1.2
	pkgsrc-2018Q2:1.2.0.24
	pkgsrc-2018Q2-base:1.2
	pkgsrc-2018Q1:1.2.0.22
	pkgsrc-2018Q1-base:1.2
	pkgsrc-2017Q4:1.2.0.20
	pkgsrc-2017Q4-base:1.2
	pkgsrc-2017Q3:1.2.0.18
	pkgsrc-2017Q3-base:1.2
	pkgsrc-2017Q2:1.2.0.14
	pkgsrc-2017Q2-base:1.2
	pkgsrc-2017Q1:1.2.0.12
	pkgsrc-2017Q1-base:1.2
	pkgsrc-2016Q4:1.2.0.10
	pkgsrc-2016Q4-base:1.2
	pkgsrc-2016Q3:1.2.0.8
	pkgsrc-2016Q3-base:1.2
	pkgsrc-2016Q2:1.2.0.6
	pkgsrc-2016Q2-base:1.2
	pkgsrc-2016Q1:1.2.0.4
	pkgsrc-2016Q1-base:1.2
	pkgsrc-2015Q4:1.2.0.2
	pkgsrc-2015Q4-base:1.2
	pkgsrc-2015Q3:1.1.0.4
	pkgsrc-2015Q3-base:1.1
	pkgsrc-2015Q2:1.1.0.2
	pkgsrc-2015Q2-base:1.1;
locks; strict;
comment	@# @;


1.3
date	2026.11.30.16.01.14;	author taca;	state Exp;
branches;
next	1.2;
commitid	qbFdm4CbBuyk9v5H;

1.2
date	2015.12.12.04.12.18;	author taca;	state Exp;
branches;
next	1.1;
commitid	C4UmdlofLwLGZBMy;

1.1
date	2015.05.17.09.47.05;	author taca;	state Exp;
branches;
next	;
commitid	YaH1pl0foIHoyMly;


desc
@@


1.3
log
@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
@
text
@bin/ldiff @@PREFIX@@/bin/ldiff@@RUBY_SUFFIX@@
@


1.2
log
@Fix ALTERNATIVES.

Bump PKGREVISION.
@
text
@a0 1
bin/htmldiff @@PREFIX@@/bin/htmldiff@@RUBY_SUFFIX@@
@


1.1
log
@* Add pkg_alternatives support.
* Allow ruby22.

Bump PKGREVISION.
@
text
@d1 2
a2 2
bin/htmldiff @@PREFIX@@/bin/htmldiff${RUBY_SUFFIX}
bin/ldiff @@PREFIX@@/bin/ldiff${RUBY_SUFFIX}
@

