summaryrefslogtreecommitdiff
path: root/lib/diff/lcs/internals.rb
Commit message (Collapse)AuthorAgeFilesLines
* standardrb --only Style/ClassCheck --fixAustin Ziegler2022-07-041-4/+4
|
* Fix Style/AndOrAustin Ziegler2022-07-041-4/+4
|
* standardrb --only Layout/ExtraSpacing --fix and ignoreAustin Ziegler2022-07-041-1/+1
|
* standardrb --only Style/StringLiterals --fixAustin Ziegler2022-07-041-8/+8
|
* Reintroduce the threshold test optimizationreintroduce-the-threshold-test-optimizationtiendo10112021-12-221-4/+9
|
* Use comment to aid reverting in case the change is problematictiendo10112021-12-201-0/+3
|
* Ax unnecessary callstiendo10112021-12-191-7/+3
|
* Correct last index positiontiendo10112021-12-161-1/+1
|
* Reintroduce Diff::LCS::Change#to_aryAustin Ziegler2019-02-011-12/+12
| | | | | | | | | | | - This required some level of code remediation in the main library, but all tests now pass: - Patchsets are now internally flattened one level explicitly, rather than using Array#flatten. This ensures that only the outer patchset array is flattened. Fixes #48.
* Applied Rubocop rules that I likeAustin Ziegler2019-01-271-31/+28
| | | | | - Other linting configuration also applied. - Soft-deprecating versions older than 2.3.
* diff-lcs 1.3Austin Ziegler2017-01-181-8/+14
| | | | | | | | | | | - Updated testing and gem infrastructure. - Cleaning up documentation. - Modernizing specs. - Silence Ruby 2.4 Fixnum deprecation warnings. Fixes #36, #38. - Ensure test dependencies are loaded. Fixes #33, #34 so that specs can be run independently. - Fix issue #1 with incorrect intuition of patch direction. Tentative fix, but the failure cases pass now.
* Fix pruning of common sequences at start.Paul Kunysch2013-04-201-0/+1
|
* Extracting duplicated code to a private method.Austin Ziegler2013-01-201-1/+27
|
* Simplifying some code for release.Austin Ziegler2013-01-201-67/+31
|
* Fixed Issue #1 patch direction detection.Austin Ziegler2013-01-201-41/+45
| | | | | This bug has been filed for five and a half years and I have finally fixed it. By ghu it feels good.
* Getting rid of a silly coding convention.Austin Ziegler2013-01-191-22/+22
|
* Reformatting.Austin Ziegler2013-01-191-227/+262
| | | | | - Bringing indents in a little. - Simplifying a little logic so that boolean shortcuts are taken faster.
* Fixing an issue with the refactoring done earlier.Austin Ziegler2013-01-191-25/+25
|
* Fixing warnings in Ruby code.Kenichi Kamiya2013-01-171-8/+8
| | | | - "assigned but unused variable"
* Starting on a substantial refactoring to fix bugs.Austin Ziegler2012-03-241-0/+271
1. All Diff::LCS::__* methods are now moved to Diff::LCS::Internals and named without the underscores. 2. Fixed the documentation for Diff::LCS::patch. (Some formatting may have been broken.) 3. Eliminated normalize_patchset in favour of the (substantially similar) analyze_patchset. This allows for a single-pass over a patchset to determine whether the patchset contains changes and transform it to the object-based format. 4. Made Diff::LCS::ContextChange descend from Diff::LCS::Change. This will probably change so that both descend from something like a Diff::LCS::AbstractChange because of some issues that may arise with case statement order.