-
Lucas Nussbaum authoredLucas Nussbaum authored
History
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 ofIO.read
instead ofFile.read
. #91 -
Added MFA authentication requirement for release to RubyGems. #90
-
Added dependabot management for actions and gems. #90
-
Updated CodeQL coniguration. #90
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:
-
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 withLCS(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 -
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
-
An infinite loop case in the case where Diff::LCS would be included into an enumerable class has been fixed. #73
-
Clarified the purpose of a threshold test in calculation of LCS. #72, #80
-
-
Removed autotest directory
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 inDiff::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
, andreverse_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 thelength
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 theend
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 onRUBY_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
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 tobin/ldiff
with some pre-generated output. Resolved #6 with these tests. -
Resolved a previously undetected
bin/ldiff
issue with--context
output not matchingdiff --context
output. -
Resolved an issue with later versions of Ruby not working with an
OptParse
specification ofNumeric
; this has been changed toInteger
. -
Brandon Fish added truffleruby in #52.
-
Fixed two missing classes as reported in #53.
1.3 / 2017-01-18
-
Bugs fixed:
-
Fixed an error for bin/ldiff --version. Fixes issue #21.
-
Force Diff::LCS::Change and Diff::LCS::ContextChange to only perform equality comparisons against themselves. Provided by Kevin Mook in pull request #29.
-
Fix tab expansion in htmldiff, provided by Mark Friedgan in pull request #25.
-
Silence Ruby 2.4 Fixnum deprecation warnings. Fixes issue #38 and pull request #36.
-
Ensure that test dependencies are loaded properly. Fixes issue #33 and pull request #34.
-
Fix issue #1 with incorrect intuition of patch direction. Tentative fix, but the previous failure cases pass now.
-
-
Tooling changes:
-
Added SimpleCov and Coveralls support.
-
Change the homepage (temporarily) to the GitHub repo.
-
Updated testing and gem infrastructure.
-
Modernized the specs.
-
-
Cleaned up documentation.
-
Added a Code of Conduct.
1.2.5 / 2013-11-08
-
Bugs fixed:
- Comparing arrays flattened them too far, especially with Diff::LCS.sdiff. Fixed by Josh Bronson in pull request #23.