summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* standardrb --only Style/BarePercentLiterals --fixAustin Ziegler2022-07-041-1/+1
|
* standardrb --only Style/StringLiteralsInInterpolationAustin Ziegler2022-07-041-0/+6
|
* standardrb --only Style/StringLiteralsInInterpolation --fix and moreAustin Ziegler2022-07-041-9/+8
|
* standardrb --only Style/RedundantBegin --fixAustin Ziegler2022-07-041-5/+3
|
* standardrb --only Standard/BlockSingleLineBraces --fixAustin Ziegler2022-07-041-4/+4
|
* standardrb --only Style/RescueModifier --fixAustin Ziegler2022-07-041-1/+5
|
* standardrb --only Style/Alias --fixAustin Ziegler2022-07-043-5/+5
|
* Clean up lint directivesAustin Ziegler2022-07-044-7/+7
|
* standardrb --only Layout/SpaceInsideHashLiteralBraces --fixAustin Ziegler2022-07-042-4/+4
|
* standardrb --only Style/ClassCheck --fixAustin Ziegler2022-07-043-11/+11
|
* Ignore Style/HashSyntaxAustin Ziegler2022-07-042-0/+4
|
* standardrb --only Layout/LeadingCommentSpace --fixAustin Ziegler2022-07-045-16/+16
|
* Fix :yields: directive for rdocAustin Ziegler2022-07-042-7/+7
|
* Fix Style/AndOrAustin Ziegler2022-07-045-17/+17
|
* ignore Layout/heredocIndentation due to old RubyAustin Ziegler2022-07-042-0/+8
|
* standardrb --only Layout/ExtraSpacing --fix and ignoreAustin Ziegler2022-07-044-11/+11
|
* standardrb --only Style/PercentLiteralDelimiters --fixAustin Ziegler2022-07-041-1/+1
|
* standardrb --only Style/StringLiterals --fixAustin Ziegler2022-07-0410-104/+104
|
* Fix issues reported by fastererAustin Ziegler2022-07-042-2/+2
|
* Prepare for release of 1.5.0Austin Ziegler2021-12-231-1/+1
|
* Merge pull request #80 from ↵Austin Ziegler2021-12-231-4/+9
|\ | | | | | | | | halostatue/reintroduce-the-threshold-test-optimization Reintroduce the threshold test optimization
| * Reintroduce the threshold test optimizationreintroduce-the-threshold-test-optimizationtiendo10112021-12-221-4/+9
| |
* | Updating the comment to reflect the new found logicfix-failed-test-due-to-resolving-off-by-one-errortiendo10112021-12-221-2/+3
| | | | | | | | More info can be found here: https://github.com/halostatue/diff-lcs/issues/77
* | Apply some performance improvementtiendo10112021-12-221-4/+6
| |
* | The symmetrically makes it easier to understandtiendo10112021-12-221-8/+8
| |
* | Use element directly instead of accessing it from the indextiendo10112021-12-221-9/+6
|/ | | | | | We have ai, bj to keep track of which index we're in for both a and b, so keeping i is not needed Without it, the logic will be simpler
* Merge pull request #72 from tiendo1011/ax-unecessary-callAustin Ziegler2021-12-201-7/+6
|\ | | | | Ax unecessary call
| * Use comment to aid reverting in case the change is problematictiendo10112021-12-201-0/+3
| |
| * Ax unnecessary callstiendo10112021-12-191-7/+3
| |
* | Prepare for pre-release gemAustin Ziegler2021-12-191-1/+1
| |
* | Merge pull request #75 from tiendo1011/fix-off-by-one-errorAustin Ziegler2021-12-191-1/+1
|\ \ | | | | | | Fix off-by-one error
| * | Fix off-by-one errortiendo10112021-12-191-1/+1
| |/ | | | | | | | | in ruby, (0..matches.size) will include both sides in the range, which means we'll get off-by-one error
* | Fix infinite method calltiendo10112021-12-191-2/+2
|/
* Correct last index positiontiendo10112021-12-161-1/+1
|
* # This is a combination of 9 commits.Austin Ziegler2020-07-014-62/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # This is the 1st commit message: Fix improperly placed chunks Resolve #65 - Also add even more tests for checking `ldiff` results against `diff` results. - Fix issues with diff/ldiff output highlighted by the above tests. - Add a parameter to indicate that the hunk being processed is the _last_ hunk; this results in correct counting of the hunk size. - The misplaced chunks were happening because of an improper `.abs` on `#diff_size`, when the `.abs` needed to be on the finding of the maximum diff size. # This is the commit message #2: Ooops. Debugger # This is the commit message #3: Restore missing test - Fix some more format issues raised by the missing test. - Start fixing Rubocop formatting. # This is the commit message #4: Last RuboCop fixes # This is the commit message #5: Finalize diff-lcs 1.4 # This is the commit message #6: Fix #44 The problem here was the precedence of `or` vs `||`. Switching to `||` resulted in the expected behaviour. # This is the commit message #7: Resolve #43 # This is the commit message #8: Typo # This is the commit message #9: Resolve #35 with a comment
* Fix some issues with 1.4 on older Rubiesfix-ruby-1.8-supportAustin Ziegler2020-06-282-2/+2
| | | | | - Required to fully support rspec. - Resolves #63.
* Merge pull request #61 from halostatue/fix-issue-60v1.4.2Austin Ziegler2020-06-232-9/+12
|\ | | | | Change when max_diff_size is applied
| * Change when max_diff_size is appliedAustin Ziegler2020-06-232-9/+12
| | | | | | | | | | | | | | - This appears to satisfy the issues found in #60 as well as providing the additional fixes required to properly test ldiff. Resolves #60
* | Fix typo for rubocop cop namspacecamille2020-06-241-1/+1
|/
* Fix an issue with negative hunk max_sizeAustin Ziegler2020-06-232-2/+2
| | | | | | | Resolves #57. - The `diff_size` should be an absolute value. - Added a test to ensure that the issue does not introduce a regression.
* Various updates for v 1.4Austin Ziegler2020-06-221-125/+118
| | | | | - Support hoe >= 3.18 - Various bug fixes and updates
* Resolve multiple issues for 1.4Austin Ziegler2019-02-042-8/+14
| | | | | | | | | | | | | - Resolve ldiff output issues: Resolves #5 and #6 by adding system-output comparison calls to `bin/ldiff` compared against some pre-generated output. There is some timestamp manipulation involved with the output comparison, as the timestamps are unstable because of the way that git clone works. - Resolved a problem with bin/ldiff --context output. - Resolved a Numeric/Integer OptParse issue: later versions of Ruby had problems working with an `OptParse` option specification of `Numeric`; this has been changed to `Integer`.
* Update documentationAustin Ziegler2019-02-012-3/+3
|
* Reintroduce Diff::LCS::Change#to_aryAustin Ziegler2019-02-013-14/+32
| | | | | | | | | | | - 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-2712-208/+221
| | | | | - Other linting configuration also applied. - Soft-deprecating versions older than 2.3.
* Revert PR#47 "Add #to_ary to Diff::LCS::Change…"Austin Ziegler2019-01-272-18/+0
| | | | | | | | | | This reverts commits 01e0cae and 3b4d2be because they introduce fatally breaking changes in the tests that were hidden by broken CI. * 01e0cae: Add #to_ary to Diff::LCS::Change and Diff::LCS::ContextChange [Akinori MUSHA] * 3b4d2be: Mention in rdoc that Diff::LCS::ContextChange can be converted to an array [Akinori MUSHA]
* Mention in rdoc that Diff::LCS::ContextChange can be converted to an arrayAkinori MUSHA2019-01-261-0/+14
|
* Add #to_ary to Diff::LCS::Change and Diff::LCS::ContextChangeAkinori MUSHA2019-01-261-0/+4
| | | | | | | | | | | | | | | | | It would be quite handy if you could write as follows: ```ruby Diff::LCS.sdiff(a, b).each do |action, (old_position, old_element), (new_position, new_element)| case action when '!' # replace when '-' # delete when '+' # insert end end ```
* diff-lcs 1.3Austin Ziegler2017-01-184-133/+35
| | | | | | | | | | | - 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.
* Bumping version in preparation for next release.Austin Ziegler2014-04-261-3/+1
|