diff-lcs 1.3 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Contributing.md +83 -48
- data/History.md +252 -153
- data/Manifest.txt +8 -0
- data/README.rdoc +10 -10
- data/Rakefile +39 -22
- data/autotest/discover.rb +3 -1
- data/bin/htmldiff +7 -4
- data/bin/ldiff +4 -1
- data/lib/diff-lcs.rb +1 -1
- data/lib/diff/lcs.rb +184 -170
- data/lib/diff/lcs/array.rb +1 -1
- data/lib/diff/lcs/backports.rb +9 -0
- data/lib/diff/lcs/block.rb +1 -1
- data/lib/diff/lcs/callbacks.rb +15 -12
- data/lib/diff/lcs/change.rb +30 -37
- data/lib/diff/lcs/htmldiff.rb +17 -16
- data/lib/diff/lcs/hunk.rb +156 -74
- data/lib/diff/lcs/internals.rb +36 -39
- data/lib/diff/lcs/ldiff.rb +46 -42
- data/lib/diff/lcs/string.rb +1 -1
- data/spec/change_spec.rb +31 -7
- data/spec/diff_spec.rb +16 -12
- data/spec/fixtures/aX +1 -0
- data/spec/fixtures/bXaX +1 -0
- data/spec/fixtures/ldiff/output.diff +4 -0
- data/spec/fixtures/ldiff/output.diff-c +7 -0
- data/spec/fixtures/ldiff/output.diff-e +3 -0
- data/spec/fixtures/ldiff/output.diff-f +3 -0
- data/spec/fixtures/ldiff/output.diff-u +5 -0
- data/spec/hunk_spec.rb +37 -26
- data/spec/issues_spec.rb +115 -10
- data/spec/lcs_spec.rb +10 -10
- data/spec/ldiff_spec.rb +71 -31
- data/spec/patch_spec.rb +93 -99
- data/spec/sdiff_spec.rb +89 -89
- data/spec/spec_helper.rb +118 -64
- data/spec/traverse_balanced_spec.rb +173 -173
- data/spec/traverse_sequences_spec.rb +28 -28
- metadata +31 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 20a82b46de7966bb69d8293ece23c885ff05a3a6f1828d99466079026200e3bd
|
4
|
+
data.tar.gz: af785a974e010578214c66694d3e2fd232b26a452d41049a55a9127c07f4b4d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f9ef284f2af3cb47d73100700dbfc39ac16802735f6751637025ed803604b7e27272b34ed1deccc2ddc4813b6e170c7ae2b3012afb094fc5e72d446866455e4
|
7
|
+
data.tar.gz: 0b5b56817c536cd55c52e43f2e9ac5b70d76ef1edf9dcf1e7639917da16fcd65f1bf4472df7c44d8d44603c2f5caa2748ce6ddbd41bb7b0215ad3fd0c38fb49a
|
data/Contributing.md
CHANGED
@@ -1,32 +1,35 @@
|
|
1
1
|
## Contributing
|
2
2
|
|
3
|
-
I value any contribution to Diff::LCS you can provide: a bug report, a
|
4
|
-
request, or code contributions. Code contributions to Diff::LCS are
|
5
|
-
<del>welcome</del>encouraged. Because Diff::LCS is a complex
|
6
|
-
are a few guidelines:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
3
|
+
I value any contribution to Diff::LCS you can provide: a bug report, a
|
4
|
+
feature request, or code contributions. Code contributions to Diff::LCS are
|
5
|
+
especially <del>welcome</del>encouraged. Because Diff::LCS is a complex
|
6
|
+
codebase, there are a few guidelines:
|
7
|
+
|
8
|
+
- Code changes _will not_ be accepted without tests. The test suite is
|
9
|
+
written with [RSpec][].
|
10
|
+
- Match my coding style.
|
11
|
+
- Use a thoughtfully-named topic branch that contains your change. Rebase
|
12
|
+
your commits into logical chunks as necessary.
|
13
|
+
- Use [quality commit messages][].
|
14
|
+
- Do not change the version number; when your patch is accepted and a release
|
15
|
+
is made, the version will be updated at that point.
|
16
|
+
- Submit a GitHub pull request with your changes.
|
17
|
+
- New or changed behaviours require appropriate documentation.
|
18
18
|
|
19
19
|
### Test Dependencies
|
20
20
|
|
21
|
-
Diff::LCS uses Ryan Davis’s [Hoe][] to manage the release process, and it
|
22
|
-
a number of rake tasks. You will mostly be interested in:
|
21
|
+
Diff::LCS uses Ryan Davis’s [Hoe][] to manage the release process, and it
|
22
|
+
adds a number of rake tasks. You will mostly be interested in:
|
23
23
|
|
24
|
-
|
24
|
+
```sh
|
25
|
+
$ rake
|
26
|
+
```
|
25
27
|
|
26
28
|
which runs the tests the same way that:
|
27
29
|
|
28
|
-
|
29
|
-
|
30
|
+
```sh
|
31
|
+
$ rake spec
|
32
|
+
```
|
30
33
|
|
31
34
|
will do.
|
32
35
|
|
@@ -34,50 +37,82 @@ To assist with the installation of the development dependencies, I have
|
|
34
37
|
provided a Gemfile pointing to the (generated) `diff-lcs.gemspec` file. This
|
35
38
|
will permit you to do:
|
36
39
|
|
37
|
-
|
40
|
+
```sh
|
41
|
+
$ bundle install
|
42
|
+
```
|
38
43
|
|
39
44
|
to get the development dependencies. If you aleady have `hoe` installed, you
|
40
45
|
can accomplish the same thing with:
|
41
46
|
|
42
|
-
|
47
|
+
```sh
|
48
|
+
$ rake newb
|
49
|
+
```
|
43
50
|
|
44
51
|
This task will install any missing dependencies, run the tests/specs, and
|
45
52
|
generate the RDoc.
|
46
53
|
|
47
54
|
You can run tests with code coverage analysis by running:
|
48
55
|
|
49
|
-
|
56
|
+
```sh
|
57
|
+
$ rake spec:coverage
|
58
|
+
```
|
50
59
|
|
51
60
|
### Workflow
|
52
61
|
|
53
62
|
Here's the most direct way to get your work merged into the project:
|
54
63
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
change does and the why you think it should be merged.
|
64
|
+
- Fork the project.
|
65
|
+
- Clone down your fork (`git clone git://github.com/<username>/diff-lcs.git`).
|
66
|
+
- Create a topic branch to contain your change (`git checkout -b my_awesome_feature`).
|
67
|
+
- Hack away, add tests. Not necessarily in that order.
|
68
|
+
- Make sure everything still passes by running `rake`.
|
69
|
+
- If necessary, rebase your commits into logical chunks, without errors.
|
70
|
+
- Push the branch up (`git push origin my_awesome_feature`).
|
71
|
+
- Create a pull request against halostatue/diff-lcs and describe what your
|
72
|
+
change does and the why you think it should be merged.
|
65
73
|
|
66
74
|
### Contributors
|
67
75
|
|
68
|
-
|
69
|
-
|
70
|
-
Thanks to everyone else who has contributed to Diff::LCS:
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
76
|
+
- Austin Ziegler created Diff::LCS.
|
77
|
+
|
78
|
+
Thanks to everyone else who has contributed code or bug reports to Diff::LCS:
|
79
|
+
|
80
|
+
- @ginriki
|
81
|
+
- @joshbronson
|
82
|
+
- @kevinmook
|
83
|
+
- @mckaz
|
84
|
+
- Akinori Musha
|
85
|
+
- Artem Ignatyev
|
86
|
+
- Brandon Fish
|
87
|
+
- Camille Drapier
|
88
|
+
- Cédric Boutillier
|
89
|
+
- Gregg Kellogg
|
90
|
+
- Jagdeep Singh
|
91
|
+
- Jason Gladish
|
92
|
+
- Jon Rowe
|
93
|
+
- Josef Strzibny
|
94
|
+
- Josep (@apuratepp)
|
95
|
+
- Josh Bronson
|
96
|
+
- Jun Aruga
|
97
|
+
- Kenichi Kamiya
|
98
|
+
- Kensuke Nagae
|
99
|
+
- Kevin Ansfield
|
100
|
+
- Koichi Ito
|
101
|
+
- Mark Friedgan
|
102
|
+
- Michael Granger
|
103
|
+
- Myron Marston
|
104
|
+
- Nicolas Leger
|
105
|
+
- Oleg Orlov
|
106
|
+
- Paul Kunysch
|
107
|
+
- Pete Higgins
|
108
|
+
- Peter Wagenet
|
109
|
+
- Philippe Lafoucrière
|
110
|
+
- Ryan Lovelett
|
111
|
+
- Scott Steele
|
112
|
+
- Simon Courtois
|
113
|
+
- Tomas Jura
|
114
|
+
- Vít Ondruch
|
115
|
+
|
116
|
+
[rspec]: http://rspec.info/documentation/
|
82
117
|
[quality commit messages]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
|
83
|
-
[
|
118
|
+
[hoe]: https://github.com/seattlerb/hoe
|
data/History.md
CHANGED
@@ -1,197 +1,279 @@
|
|
1
|
+
# History
|
2
|
+
|
3
|
+
## 1.4.4 / 2020-07-01
|
4
|
+
|
5
|
+
- Fixed an issue reported by Jun Aruga in the Diff::LCS::Ldiff binary text
|
6
|
+
detection. [#44][]
|
7
|
+
- Fixed a theoretical issue reported by Jun Aruga in Diff::LCS::Hunk to raise
|
8
|
+
a more useful exception. [#43][]
|
9
|
+
- Added documentation that should address custom object issues as reported in
|
10
|
+
[#35][].
|
11
|
+
|
12
|
+
- Fixed more diff errors, in part reported in [#65][].
|
13
|
+
|
14
|
+
- The use of `Numeric#abs` is incorrect in `Diff::LCS::Block#diff_size`.
|
15
|
+
The diff size _must_ be accurate for correct change placement.
|
16
|
+
- When selecting @max_diff_size in Diff::LCS::Hunk, choose it based on
|
17
|
+
`block.diff_size.abs`.
|
18
|
+
- Made a number of changes that will, unfortunately, increase allocations
|
19
|
+
at the cost of being safe with frozen strings.
|
20
|
+
- Add some knowledge that when `Diff::LCS::Hunk#diff` is called, that we
|
21
|
+
are processing the _last_ hunk, so some changes will be made to how the
|
22
|
+
output is generated.
|
23
|
+
|
24
|
+
- `old`, `ed`, and `reverse_ed` formats have no differences.
|
25
|
+
- `unified` format will report `` given the
|
26
|
+
correct conditions, at most once. Unified range reporting also
|
27
|
+
differs for the last hunk such that the `length` of the range is
|
28
|
+
reduced by one.
|
29
|
+
- `context` format will report `\No newline at end of file` given the
|
30
|
+
correct conditions, up to once per "file". Context range reporting also
|
31
|
+
differs for the last hunk such that the `end` part of the range is
|
32
|
+
reduced by one to a minimum of one.
|
33
|
+
|
34
|
+
- Added a bunch more tests for the cases above, and fixed `hunk_spec.rb` so
|
35
|
+
that the phrase being compared isn't nonsense French.
|
36
|
+
|
37
|
+
- Updated formatting.
|
38
|
+
- Added a Rake task to assist with manual testing on Ruby 1.8.
|
39
|
+
|
40
|
+
## 1.4.3 / 2020-06-29
|
41
|
+
|
42
|
+
- Fixed several issues with the 1.4 on Rubies older than 2.0. Some of this was
|
43
|
+
providing useful shim functions to Hoe 3.x (which dropped these older
|
44
|
+
Rubies a while ago). Specifically:
|
45
|
+
|
46
|
+
- Removed Array#lazy from a method in Diff::LCS::Hunk.
|
47
|
+
- Changed some unit tests to use old-style Symbol-keyed hashes.
|
48
|
+
- Changed some unit test helper functions to no longer use keyword
|
49
|
+
parameters, but only a trailing options hash.
|
50
|
+
- Made the use of `psych` dependent on `RUBY_VERSION >= 1.9`.
|
51
|
+
|
52
|
+
Resolves [#63][].
|
53
|
+
|
54
|
+
## 1.4.2 / 2020-06-23
|
55
|
+
|
56
|
+
- Camille Drapier fixed a small issue with RuboCop configuration. [#59][]
|
57
|
+
- Applied another fix (and unit test) to fix an issue for the Chef team.
|
58
|
+
[#60][], [#61][]
|
59
|
+
|
60
|
+
## 1.4.1 / 2020-06-23
|
61
|
+
|
62
|
+
- Fix an issue where diff sizes could be negative, and they should be. [#57][],
|
63
|
+
[#58][]
|
64
|
+
|
65
|
+
## 1.4 / 2020-06-23
|
66
|
+
|
67
|
+
- Ruby versions lower than 2.4 are soft-deprecated and will not be run as
|
68
|
+
part of the CI process any longer.
|
69
|
+
- Akinora MUSHA (knu) added the ability for Diff::LCS::Change objects to be
|
70
|
+
implicitly treated arrays. Originally provided as pull request [#47][],
|
71
|
+
but it introduced a number of test failures as documented in [#48][], and
|
72
|
+
remediation of Diff::LCS itself was introduced in [#49][].
|
73
|
+
- Resolved [#5][] with some tests comparing output from `system` calls to
|
74
|
+
`bin/ldiff` with some pre-generated output. Resolved [#6][] with these
|
75
|
+
tests.
|
76
|
+
- Resolved a previously undetected `bin/ldiff` issue with `--context` output
|
77
|
+
not matching `diff --context` output.
|
78
|
+
- Resolved an issue with later versions of Ruby not working with an `OptParse`
|
79
|
+
specification of `Numeric`; this has been changed to `Integer`.
|
80
|
+
- Brandon Fish added truffleruby in [#52][].
|
81
|
+
- Fixed two missing classes as reported in [#53][].
|
82
|
+
|
1
83
|
## 1.3 / 2017-01-18
|
2
84
|
|
3
|
-
|
85
|
+
- Bugs fixed:
|
4
86
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
87
|
+
- Fixed an error for bin/ldiff --version. Fixes issue [#21][].
|
88
|
+
- Force Diff::LCS::Change and Diff::LCS::ContextChange to only perform
|
89
|
+
equality comparisons against themselves. Provided by Kevin Mook in
|
90
|
+
pull request [#29][].
|
91
|
+
- Fix tab expansion in htmldiff, provided by Mark Friedgan in
|
92
|
+
pull request [#25][].
|
93
|
+
- Silence Ruby 2.4 Fixnum deprecation warnings. Fixxues issue [#38][] and
|
94
|
+
[pull request#36][].
|
95
|
+
- Ensure that test dependencies are loaded properly. Fixes issue [#33][]
|
96
|
+
and pull request [#34][].
|
97
|
+
- Fix issue [#1][] with incorrect intuition of patch direction. Tentative
|
98
|
+
fix, but the previous failure cases pass now.
|
17
99
|
|
18
|
-
|
100
|
+
- Tooling changes:
|
19
101
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
102
|
+
- Added SimpleCov and Coveralls support.
|
103
|
+
- Change the homepage (temporarily) to the GitHub repo.
|
104
|
+
- Updated testing and gem infrastructure.
|
105
|
+
- Modernized the specs.
|
24
106
|
|
25
|
-
|
107
|
+
- Cleaned up documentation.
|
26
108
|
|
27
|
-
|
109
|
+
- Added a Code of Conduct.
|
28
110
|
|
29
111
|
## 1.2.5 / 2013-11-08
|
30
112
|
|
31
|
-
|
113
|
+
- Bugs fixed:
|
32
114
|
|
33
|
-
|
34
|
-
|
115
|
+
- Comparing arrays flattened them too far, especially with
|
116
|
+
Diff::LCS.sdiff. Fixed by Josh Bronson in pull request [#23][].
|
35
117
|
|
36
118
|
## 1.2.4 / 2013-04-20
|
37
119
|
|
38
|
-
|
120
|
+
- Bugs fixed:
|
39
121
|
|
40
|
-
|
41
|
-
|
42
|
-
|
122
|
+
- A bug was introduced after 1.1.3 when pruning common sequences at the
|
123
|
+
start of comparison. Paul Kunysch (@pck) fixed this in
|
124
|
+
pull request [#18][]. Thanks!
|
43
125
|
|
44
|
-
|
45
|
-
|
46
|
-
|
126
|
+
- The Rubinius (1.9 mode) bug in [rubinius/rubinius#2268][] has been
|
127
|
+
fixed by the Rubinius team two days after it was filed. Thanks for
|
128
|
+
fixing this so quickly!
|
47
129
|
|
48
|
-
|
130
|
+
- Switching to Raggi's hoe-gemspec2 for gemspec generation.
|
49
131
|
|
50
132
|
## 1.2.3 / 2013-04-11
|
51
133
|
|
52
|
-
|
134
|
+
- Bugs Fixed:
|
53
135
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
136
|
+
- The new encoding detection for diff output generation (added in 1.2.2)
|
137
|
+
introduced a bug if the left side of the comparison was the empty set.
|
138
|
+
Originally found in [rspec/rspec-expectations#238][] and
|
139
|
+
[rspec/rspec-expectations#239][]. Jon Rowe developed a reasonable
|
140
|
+
heuristic (left side, right side, empty string literal) to avoid this
|
141
|
+
bug.
|
142
|
+
- There is a known issue with Rubinius in 1.9 mode reported in
|
143
|
+
[rubinius/rubinius#2268][] and demonstrated in the Travis CI builds.
|
144
|
+
For all other tested platforms, diff-lcs is considered stable. As soon
|
145
|
+
as a suitably small test-case can be created for the Rubinius team to
|
146
|
+
examine, this will be added to the Rubinius issue around this.
|
65
147
|
|
66
148
|
## 1.2.2 / 2013-03-30
|
67
149
|
|
68
|
-
|
150
|
+
- Bugs Fixed:
|
69
151
|
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
152
|
+
- Diff::LCS::Hunk could not properly generate a difference for comparison
|
153
|
+
sets that are not US-ASCII-compatible because of the use of literal
|
154
|
+
regular expressions and strings. Jon Rowe found this in
|
155
|
+
[rspec/rspec-expectations#219][] and provided a first pass
|
156
|
+
implementation in pull request [#15][]. I've reworked it because of
|
157
|
+
test failures in Rubinius when running in Ruby 1.9 mode. This coerces
|
158
|
+
the added values to the encoding of the old dataset (as determined by
|
159
|
+
the first piece of the old dataset).
|
160
|
+
- Adding Travis CI testing for Ruby 2.0.
|
79
161
|
|
80
162
|
## 1.2.1 / 2013-02-09
|
81
163
|
|
82
|
-
|
164
|
+
- Bugs Fixed:
|
83
165
|
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
166
|
+
- As seen in [rspec/rspec-expectations#200][], the release of
|
167
|
+
Diff::LCS 1.2 introduced an unnecessary public API change to
|
168
|
+
Diff::LCS::Hunk (see the change at
|
169
|
+
[rspec/rspec-expectations@3d6fc82c][] for details). The new method name
|
170
|
+
(and behaviour) is more correct, but I should not have renamed the
|
171
|
+
function or should have at least provided an alias. This release
|
172
|
+
restores Diff::LCS::Hunk#unshift as an alias to #merge. Note that the
|
173
|
+
old #unshift behaviour was incorrect and will not be restored.
|
92
174
|
|
93
175
|
## 1.2.0 / 2013-01-21
|
94
176
|
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
177
|
+
- Minor Enhancements:
|
178
|
+
|
179
|
+
- Added special case handling for Diff::LCS.patch so that it handles
|
180
|
+
patches that are empty or contain no changes.
|
181
|
+
- Added two new methods (#patch_me and #unpatch_me) to the includable
|
182
|
+
module.
|
183
|
+
|
184
|
+
- Bugs Fixed:
|
185
|
+
|
186
|
+
- Fixed issue [#1][] patch direction detection.
|
187
|
+
- Resolved issue [#2][] by handling `string[string.size, 1]` properly (it
|
188
|
+
returns `""` not `nil`).
|
189
|
+
- Michael Granger (ged) fixed an implementation error in
|
190
|
+
Diff::LCS::Change and added specs in pull request [#8][]. Thanks!
|
191
|
+
- Made the code auto-testable.
|
192
|
+
- Vít Ondruch (voxik) provided the latest version of the GPL2 license
|
193
|
+
file in pull request [#10][]. Thanks!
|
194
|
+
- Fixed a documentation issue with the includable versions of #patch! and
|
195
|
+
#unpatch! where they implied that they would replace the original
|
196
|
+
value. Given that Diff::LCS.patch always returns a copy, the
|
197
|
+
documentation was incorrect and has been corrected. To provide the
|
198
|
+
behaviour that was originally documented, two new methods were added to
|
199
|
+
provide this behaviour. Found by scooter-dangle in issue [#12][].
|
200
|
+
Thanks!
|
201
|
+
|
202
|
+
- Code Style Changes:
|
203
|
+
|
204
|
+
- Removed trailing spaces.
|
205
|
+
- Calling class methods using `.` instead of `::`.
|
206
|
+
- Vít Ondruch (voxik) removed unnecessary shebangs in pull request [#9][].
|
207
|
+
Thanks!
|
208
|
+
- Kenichi Kamiya (kachick) removed some warnings of an unused variable in
|
209
|
+
lucky pull request [#13][]. Thanks!
|
210
|
+
- Embarked on a major refactoring to make the files a little more
|
211
|
+
manageable and understand the code on a deeper level.
|
212
|
+
- Adding to http://travis-ci.org.
|
131
213
|
|
132
214
|
## 1.1.3 / 2011-08-27
|
133
215
|
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
216
|
+
- Converted to 'hoe' for release.
|
217
|
+
- Converted tests to RSpec 2.
|
218
|
+
- Extracted the body of htmldiff into a class available from
|
219
|
+
diff/lcs/htmldiff.
|
220
|
+
- Migrated development and issue tracking to GitHub.
|
221
|
+
- Bugs fixed:
|
140
222
|
|
141
|
-
|
142
|
-
|
143
|
-
|
223
|
+
- Eliminated the explicit use of RubyGems in both bin/htmldiff and
|
224
|
+
bin/ldiff. Resolves issue [#4][].
|
225
|
+
- Eliminated Ruby warnings. Resolves issue [#3][].
|
144
226
|
|
145
227
|
## 1.1.2 / 2004-10-20
|
146
228
|
|
147
|
-
|
229
|
+
- Fixed a problem reported by Mauricio Fernandez in htmldiff.
|
148
230
|
|
149
231
|
## 1.1.1 / 2004-09-25
|
150
232
|
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
233
|
+
- Fixed bug #891 (Set returned from patch command does not contain last equal
|
234
|
+
part).
|
235
|
+
- Fixed a problem with callback initialisation code (it assumed that all
|
236
|
+
callbacks passed as classes can be initialised; now, it rescues
|
237
|
+
NoMethodError in the event of private :new being called).
|
238
|
+
- Modified the non-initialisable callbacks to have a private #new method.
|
239
|
+
- Moved ldiff core code to Diff::LCS::Ldiff (diff/lcs/ldiff.rb).
|
158
240
|
|
159
241
|
## 1.1.0 / -
|
160
242
|
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
243
|
+
- Eliminated the need for Diff::LCS::Event and removed it.
|
244
|
+
- Added a contextual diff callback, Diff::LCS::ContextDiffCallback.
|
245
|
+
- Implemented patching/unpatching for standard Diff callback output formats
|
246
|
+
with both #diff and #sdiff.
|
247
|
+
- Extensive documentation changes.
|
166
248
|
|
167
249
|
## 1.0.4
|
168
250
|
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
251
|
+
- Fixed a problem with bin/ldiff output, especially for unified format.
|
252
|
+
Newlines that should have been present weren't.
|
253
|
+
- Changed the .tar.gz installer to generate Windows batch files if ones do
|
254
|
+
not exist already. Removed the existing batch files as they didn't work.
|
173
255
|
|
174
256
|
## 1.0.3
|
175
257
|
|
176
|
-
|
177
|
-
|
258
|
+
- Fixed a problem with #traverse_sequences where the first difference from
|
259
|
+
the left sequence might not be appropriately captured.
|
178
260
|
|
179
261
|
## 1.0.2
|
180
262
|
|
181
|
-
|
182
|
-
|
263
|
+
- Fixed an issue with ldiff not working because actions were changed from
|
264
|
+
symbols to strings.
|
183
265
|
|
184
266
|
## 1.0.1
|
185
267
|
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
268
|
+
- Minor modifications to the gemspec, the README.
|
269
|
+
- Renamed the diff program to ldiff (as well as the companion batch file) so
|
270
|
+
as to not collide with the standard diff program.
|
271
|
+
- Fixed issues with RubyGems. Requires RubyGems > 0.6.1 or >= 0.6.1 with the
|
272
|
+
latest CVS version.
|
191
273
|
|
192
274
|
## 1.0
|
193
275
|
|
194
|
-
|
276
|
+
- Initial release based mostly on Perl's Algorithm::Diff.
|
195
277
|
|
196
278
|
[rubinius/rubinius#2268]: https://github.com/rubinius/rubinius/issues/2268
|
197
279
|
[rspec/rspec-expectations#239]: https://github.com/rspec/rspec-expectations/issues/239
|
@@ -199,22 +281,39 @@
|
|
199
281
|
[rspec/rspec-expectations#219]: https://github.com/rspec/rspec-expectations/issues/219
|
200
282
|
[rspec/rspec-expectations@3d6fc82c]: https://github.com/rspec/rspec-expectations/commit/3d6fc82c
|
201
283
|
[rspec/rspec-expectations#200]: https://github.com/rspec/rspec-expectations/pull/200
|
202
|
-
[
|
203
|
-
[
|
204
|
-
[
|
205
|
-
[
|
206
|
-
[
|
207
|
-
[
|
208
|
-
[
|
209
|
-
[
|
210
|
-
[
|
211
|
-
[
|
212
|
-
[
|
213
|
-
[
|
214
|
-
[
|
215
|
-
[
|
216
|
-
[
|
217
|
-
[
|
218
|
-
[
|
219
|
-
[
|
220
|
-
[
|
284
|
+
[#1]: https://github.com/halostatue/diff-lcs/issues/1
|
285
|
+
[#2]: https://github.com/halostatue/diff-lcs/issues/2
|
286
|
+
[#3]: https://github.com/halostatue/diff-lcs/issues/3
|
287
|
+
[#4]: https://github.com/halostatue/diff-lcs/issues/4
|
288
|
+
[#5]: https://github.com/halostatue/diff-lcs/issues/5
|
289
|
+
[#6]: https://github.com/halostatue/diff-lcs/issues/6
|
290
|
+
[#8]: https://github.com/halostatue/diff-lcs/pull/8
|
291
|
+
[#9]: https://github.com/halostatue/diff-lcs/pull/9
|
292
|
+
[#10]: https://github.com/halostatue/diff-lcs/pull/10
|
293
|
+
[#12]: https://github.com/halostatue/diff-lcs/issues/12
|
294
|
+
[#13]: https://github.com/halostatue/diff-lcs/pull/13
|
295
|
+
[#15]: https://github.com/halostatue/diff-lcs/pull/15
|
296
|
+
[#18]: https://github.com/halostatue/diff-lcs/pull/18
|
297
|
+
[#21]: https://github.com/halostatue/diff-lcs/issues/21
|
298
|
+
[#23]: https://github.com/halostatue/diff-lcs/pull/23
|
299
|
+
[#25]: https://github.com/halostatue/diff-lcs/pull/25
|
300
|
+
[#29]: https://github.com/halostatue/diff-lcs/pull/29
|
301
|
+
[#33]: https://github.com/halostatue/diff-lcs/issues/33
|
302
|
+
[#34]: https://github.com/halostatue/diff-lcs/pull/34
|
303
|
+
[#35]: https://github.com/halostatue/diff-lcs/issues/35
|
304
|
+
[#36]: https://github.com/halostatue/diff-lcs/pull/36
|
305
|
+
[#38]: https://github.com/halostatue/diff-lcs/issues/38
|
306
|
+
[#43]: https://github.com/halostatue/diff-lcs/issues/43
|
307
|
+
[#44]: https://github.com/halostatue/diff-lcs/issues/44
|
308
|
+
[#47]: https://github.com/halostatue/diff-lcs/pull/47
|
309
|
+
[#48]: https://github.com/halostatue/diff-lcs/issues/48
|
310
|
+
[#49]: https://github.com/halostatue/diff-lcs/pull/49
|
311
|
+
[#52]: https://github.com/halostatue/diff-lcs/pull/52
|
312
|
+
[#53]: https://github.com/halostatue/diff-lcs/issues/53
|
313
|
+
[#57]: https://github.com/halostatue/diff-lcs/issues/57
|
314
|
+
[#58]: https://github.com/halostatue/diff-lcs/pull/58
|
315
|
+
[#59]: https://github.com/halostatue/diff-lcs/pull/59
|
316
|
+
[#60]: https://github.com/halostatue/diff-lcs/issues/60
|
317
|
+
[#61]: https://github.com/halostatue/diff-lcs/pull/61
|
318
|
+
[#63]: https://github.com/halostatue/diff-lcs/issues/63
|
319
|
+
[#65]: https://github.com/halostatue/diff-lcs/issues/65
|