| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
- Required to fully support rspec.
- Resolves #63.
|
|\
| |
| | |
Change when max_diff_size is applied
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
- This appears to satisfy the issues found in #60 as well as providing the
additional fixes required to properly test ldiff.
Resolves #60
|
|\ \
| |/
|/| |
Fix Styel/NumericPredicate has the wrong namespace - should be Style
|
|/ |
|
|\
| |
| | |
Fix an issue with negative hunk max_size
|
| | |
|
| | |
|
|/
|
|
|
|
|
| |
Resolves #57.
- The `diff_size` should be an absolute value.
- Added a test to ensure that the issue does not introduce a regression.
|
|\
| |
| | |
Prepare for 1.4 release
|
|/
|
|
|
|
|
|
| |
- Use GitHub Actions
- Exclude windows code from non-windows tests
- Exclude unsupported windows tests and allow windows failures for now
because of line-ending differences
- Remove Travis configuration
|
| |
|
|\
| |
| | |
Various updates for v 1.4
|
|/
|
|
|
| |
- Support hoe >= 3.18
- Various bug fixes and updates
|
|\
| |
| | |
Add truffleruby to travis CI
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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`.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
|
|
|
|
| |
- Other linting configuration also applied.
- Soft-deprecating versions older than 2.3.
|
|
|
|
|
|
|
|
|
|
| |
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]
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
```
|
|\ |
|
|/ |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Various diff-lcs Fixes
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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.
|
|/ |
|
|\
| |
| | |
Update Homepage URL in gemspec file
|
|/ |
|
| |
|
| |
|
| |
|
|\
| |
| | |
update Change and ContextChange's '==' methods to compare against the other object's class
|
| |
| |
| |
| | |
compare against the other object's class
|
| |
| |
| |
| |
| |
| |
| | |
- Until I can work up a better page.
Fixes #26.
Fixes #28.
|
| |
| |
| |
| | |
Fixes #21.
|
| | |
|
|/ |
|
|\
| |
| | |
Update htmldiff.rb
|
|/
|
| |
expand tabs is broken otherwise and the code is inconsistent anyway
|
| |
|
|\
| |
| | |
fixing for Diff::LCS::Change.from_a
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
flatten should only go one level deep to avoid problems when diffing arrays of arrays, e.g.:
Diff::LCS.sdiff([[1,2]], [])
RuntimeError: Invalid change array format provided.
from /Users/joshbronson/homebase/jbro-homebase/bundle/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/change.rb:50:in `from_a'
from /Users/joshbronson/homebase/jbro-homebase/bundle/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/change.rb:137:in `from_a'
from /Users/joshbronson/homebase/jbro-homebase/bundle/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/change.rb:158:in `simplify'
from /Users/joshbronson/homebase/jbro-homebase/bundle/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/callbacks.rb:312:in `discard_a'
from /Users/joshbronson/homebase/jbro-homebase/bundle/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs.rb:633:in `traverse_balanced'
from /Users/joshbronson/homebase/jbro-homebase/bundle/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/internals.rb:10:in `diff_traversal'
from /Users/joshbronson/homebase/jbro-homebase/bundle/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs.rb:266:in `sdiff'
|