| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
- 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'
|
|\
| |
| | |
Fix inconsistent changelog
|
|/
|
| |
The last version is different from the others.
|
|\
| |
| | |
Fix redundancy of value check
|
|/ |
|
| |
|
| |
|
|\
| |
| |
| |
| | |
* 'master' of github-halostatue:halostatue/diff-lcs:
Fix pruning of common sequences at start.
|
| |\
| | |
| | | |
Fix pruning of common sequences at start.
|
| |/ |
|
|/ |
|
| |
|
|\
| |
| | |
Fix an issue caused by detecting the encoding when first data is empty
|
| | |
|
|/ |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Diff::LCS::Hunk could not properly generate a difference for
comparison sets that are not US-ASCII-compatible because of the use of
literal regular expressions and strings. Jon Rowe (JonRowe) found this
in rspec/rspec-expectations#219 and provided a first pass
implementation in diff-lcs#15. I've reworked it because of test
failures in Rubinius when running in Ruby 1.9 mode. This coerces the
added values to the encoding of the old dataset (as determined by the
first piece of the old dataset).
https://github.com/rspec/rspec-expectations/issues/219
https://github.com/halostatue/diff-lcs/pull/15
* Adding Travis CI testing for Ruby 2.0.
|
| |
|
| |
|
| |
|
| |
|
| |
|