./textproc/ruby-diff-lcs, Diff library for Ruby

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.5.1, Package name: ruby31-diff-lcs-1.5.1, Maintainer: pkgsrc-users

Diff::LCS is a port of Perl's Algorithm::Diff that uses the McIlroy-Hunt
longest common subsequence (LCS) algorithm to compute intelligent
differences between two sequenced enumerable containers.


Required to run:
[lang/ruby31-base]

Master sites:

Filesize: 52 KB

Version history: (Expand)


CVS history: (Expand)


   2024-02-03 17:38:19 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
textproc/ruby-diff-lcs: update to 1.5.1

1.5.1 (2024-01-31)

* Peter Goldstein updated CI configuration to add Ruby 3.1 and Masato
  Nakamura added Ruby 3.2 and 3.3. #82, #89
* Updated the CI configuration, resolving #82 to add Ruby 3.1. Masato
* Switched to standard ruby formatting.
* Justin Steele converted the licence file to Markdown. #84
* Updated the gem SPDX identifier for GPL 2.0 or later, resolving #86 by Vit
  Ondruch.
* Resolve a potential security issue with ldiff in its use of IO.read
  instead of File.read. #91
* Added MFA authentication requirement for release to RubyGems. #90
* Added dependabot management for actions and gems. #90
* Updated CodeQL coniguration. #90
   2022-04-29 08:41:31 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
textproc/ruby-diff-lcs: update to 1.5.0

1.5.0 (2021-12-23)

* Updated the CI configuration and monkey-patch Hoe.

* Kenichi Kamiya fixed a test configuration deprecation in SimpleCov.  #69

* Tien introduced several corrections and code improvements:

	o Removed an off-by-one error when calculating an index value by
	  embracing Ruby iteration properly.  This had a side-effect of
	  fixing a long-standing bug in #traverse_sequences where the
	  traversal would not be transitive.  That is, LCS(s2, s1) should
	  produce a sequence that is transitive with LCS(s1, s2) on
	  traversal, and applying the diff computed from those results would
	  result in equivalent changes that could be played forward or
	  backward as appropriate. #71, #75

	o The above fix resulted in a changed order of the longest common
	  subsequence when callbacks were applied.  After analysis, it was
	  determined that the computed subsequence was equivalent to the
	  prior version, so the test was updated.  This also resulted in the
	  clarification of documentation when traversing the subsequences.
	  #79

	o An infinite loop case in the case where Diff::LCS would be
	  included into an enumerable class has been fixed.  #73

	o Clarified the purpose of a threshold test in calculation of
	  LCS. #72, #80

* Removed autotest directory
   2021-10-26 13:23:42 by Nia Alarie | Files touched by this commit (1161)
Log message:
textproc: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Unfetchable distfiles (fetched conditionally?):
./textproc/convertlit/distinfo clit18src.zip
   2021-10-07 17:02:49 by Nia Alarie | Files touched by this commit (1162)
Log message:
textproc: Remove SHA1 hashes for distfiles
   2020-09-14 16:26:02 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
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]
   2017-09-04 20:01:05 by Thomas Klausner | Files touched by this commit (192)
Log message:
Comment out dead sites.
   2017-05-30 16:22:41 by Takahiro Kambe | Files touched by this commit (7)
Log message:
* Drop setting RUBY_VERSIONS_ACCEPTED since it is now default value.
   2017-04-22 20:27:05 by Takahiro Kambe | Files touched by this commit (11)
Log message:
Remove 18 from RUBY_VERSIONS_ACCEPTED.