diff-lcs 1.5.1 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +506 -0
- data/CODE_OF_CONDUCT.md +128 -0
- data/CONTRIBUTING.md +71 -0
- data/CONTRIBUTORS.md +48 -0
- data/{License.md → LICENCE.md} +15 -16
- data/Manifest.txt +61 -5
- data/README.md +92 -0
- data/Rakefile +19 -50
- data/SECURITY.md +41 -0
- data/docs/artistic.txt +1 -1
- data/lib/diff/lcs/change.rb +1 -1
- data/lib/diff/lcs/htmldiff.rb +2 -0
- data/lib/diff/lcs/hunk.rb +38 -22
- data/lib/diff/lcs/ldiff.rb +65 -49
- data/lib/diff/lcs/version.rb +7 -0
- data/lib/diff/lcs.rb +10 -9
- data/mise.toml +5 -0
- data/spec/fixtures/123_x +2 -0
- data/spec/fixtures/456_x +2 -0
- data/spec/fixtures/empty +0 -0
- data/spec/fixtures/file1.bin +0 -0
- data/spec/fixtures/file2.bin +0 -0
- data/spec/fixtures/four_lines +4 -0
- data/spec/fixtures/four_lines_with_missing_new_line +4 -0
- data/spec/fixtures/ldiff/diff.missing_new_line1-e +1 -0
- data/spec/fixtures/ldiff/diff.missing_new_line1-f +1 -0
- data/spec/fixtures/ldiff/diff.missing_new_line2-e +1 -0
- data/spec/fixtures/ldiff/diff.missing_new_line2-f +1 -0
- data/spec/fixtures/ldiff/error.diff.chef-e +2 -0
- data/spec/fixtures/ldiff/error.diff.chef-f +2 -0
- data/spec/fixtures/ldiff/error.diff.missing_new_line1-e +1 -0
- data/spec/fixtures/ldiff/error.diff.missing_new_line1-f +1 -0
- data/spec/fixtures/ldiff/error.diff.missing_new_line2-e +1 -0
- data/spec/fixtures/ldiff/error.diff.missing_new_line2-f +1 -0
- data/spec/fixtures/ldiff/output.diff.bin1 +0 -0
- data/spec/fixtures/ldiff/output.diff.bin1-c +0 -0
- data/spec/fixtures/ldiff/output.diff.bin1-e +0 -0
- data/spec/fixtures/ldiff/output.diff.bin1-f +0 -0
- data/spec/fixtures/ldiff/output.diff.bin1-u +0 -0
- data/spec/fixtures/ldiff/output.diff.bin2 +1 -0
- data/spec/fixtures/ldiff/output.diff.bin2-c +1 -0
- data/spec/fixtures/ldiff/output.diff.bin2-e +1 -0
- data/spec/fixtures/ldiff/output.diff.bin2-f +1 -0
- data/spec/fixtures/ldiff/output.diff.bin2-u +1 -0
- data/spec/fixtures/ldiff/output.diff.empty.vs.four_lines +5 -0
- data/spec/fixtures/ldiff/output.diff.empty.vs.four_lines-c +9 -0
- data/spec/fixtures/ldiff/output.diff.empty.vs.four_lines-e +6 -0
- data/spec/fixtures/ldiff/output.diff.empty.vs.four_lines-f +6 -0
- data/spec/fixtures/ldiff/output.diff.empty.vs.four_lines-u +7 -0
- data/spec/fixtures/ldiff/output.diff.four_lines.vs.empty +5 -0
- data/spec/fixtures/ldiff/output.diff.four_lines.vs.empty-c +9 -0
- data/spec/fixtures/ldiff/output.diff.four_lines.vs.empty-e +1 -0
- data/spec/fixtures/ldiff/output.diff.four_lines.vs.empty-f +1 -0
- data/spec/fixtures/ldiff/output.diff.four_lines.vs.empty-u +7 -0
- data/spec/fixtures/ldiff/output.diff.issue95_trailing_context +4 -0
- data/spec/fixtures/ldiff/output.diff.issue95_trailing_context-c +9 -0
- data/spec/fixtures/ldiff/output.diff.issue95_trailing_context-e +3 -0
- data/spec/fixtures/ldiff/output.diff.issue95_trailing_context-f +3 -0
- data/spec/fixtures/ldiff/output.diff.issue95_trailing_context-u +6 -0
- data/spec/fixtures/ldiff/output.diff.missing_new_line1 +5 -0
- data/spec/fixtures/ldiff/output.diff.missing_new_line1-c +14 -0
- data/spec/fixtures/ldiff/output.diff.missing_new_line1-e +0 -0
- data/spec/fixtures/ldiff/output.diff.missing_new_line1-f +0 -0
- data/spec/fixtures/ldiff/output.diff.missing_new_line1-u +9 -0
- data/spec/fixtures/ldiff/output.diff.missing_new_line2 +5 -0
- data/spec/fixtures/ldiff/output.diff.missing_new_line2-c +14 -0
- data/spec/fixtures/ldiff/output.diff.missing_new_line2-e +0 -0
- data/spec/fixtures/ldiff/output.diff.missing_new_line2-f +0 -0
- data/spec/fixtures/ldiff/output.diff.missing_new_line2-u +9 -0
- data/spec/hunk_spec.rb +1 -1
- data/spec/issues_spec.rb +32 -32
- data/spec/ldiff_spec.rb +21 -10
- data/spec/patch_spec.rb +1 -1
- data/spec/spec_helper.rb +93 -93
- metadata +86 -64
- data/Code-of-Conduct.md +0 -74
- data/Contributing.md +0 -121
- data/History.md +0 -431
- data/README.rdoc +0 -84
data/Code-of-Conduct.md
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
2
|
-
|
3
|
-
## Our Pledge
|
4
|
-
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
-
orientation.
|
11
|
-
|
12
|
-
## Our Standards
|
13
|
-
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
15
|
-
include:
|
16
|
-
|
17
|
-
* Using welcoming and inclusive language
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
19
|
-
* Gracefully accepting constructive criticism
|
20
|
-
* Focusing on what is best for the community
|
21
|
-
* Showing empathy towards other community members
|
22
|
-
|
23
|
-
Examples of unacceptable behavior by participants include:
|
24
|
-
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
-
advances
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
-
* Public or private harassment
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
30
|
-
address, without explicit permission
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
-
professional setting
|
33
|
-
|
34
|
-
## Our Responsibilities
|
35
|
-
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
38
|
-
response to any instances of unacceptable behavior.
|
39
|
-
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
-
threatening, offensive, or harmful.
|
45
|
-
|
46
|
-
## Scope
|
47
|
-
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
-
when an individual is representing the project or its community. Examples of
|
50
|
-
representing a project or community include using an official project e-mail
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
53
|
-
further defined and clarified by project maintainers.
|
54
|
-
|
55
|
-
## Enforcement
|
56
|
-
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
63
|
-
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
66
|
-
members of the project's leadership.
|
67
|
-
|
68
|
-
## Attribution
|
69
|
-
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
-
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
-
|
73
|
-
[homepage]: http://contributor-covenant.org
|
74
|
-
[version]: http://contributor-covenant.org/version/1/4/
|
data/Contributing.md
DELETED
@@ -1,121 +0,0 @@
|
|
1
|
-
## Contributing
|
2
|
-
|
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
|
-
|
19
|
-
### Test Dependencies
|
20
|
-
|
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
|
-
|
24
|
-
```sh
|
25
|
-
$ rake
|
26
|
-
```
|
27
|
-
|
28
|
-
which runs the tests the same way that:
|
29
|
-
|
30
|
-
```sh
|
31
|
-
$ rake spec
|
32
|
-
```
|
33
|
-
|
34
|
-
will do.
|
35
|
-
|
36
|
-
To assist with the installation of the development dependencies, I have
|
37
|
-
provided a Gemfile pointing to the (generated) `diff-lcs.gemspec` file. This
|
38
|
-
will permit you to do:
|
39
|
-
|
40
|
-
```sh
|
41
|
-
$ bundle install
|
42
|
-
```
|
43
|
-
|
44
|
-
to get the development dependencies. If you aleady have `hoe` installed, you
|
45
|
-
can accomplish the same thing with:
|
46
|
-
|
47
|
-
```sh
|
48
|
-
$ rake newb
|
49
|
-
```
|
50
|
-
|
51
|
-
This task will install any missing dependencies, run the tests/specs, and
|
52
|
-
generate the RDoc.
|
53
|
-
|
54
|
-
You can run tests with code coverage analysis by running:
|
55
|
-
|
56
|
-
```sh
|
57
|
-
$ rake spec:coverage
|
58
|
-
```
|
59
|
-
|
60
|
-
### Workflow
|
61
|
-
|
62
|
-
Here's the most direct way to get your work merged into the project:
|
63
|
-
|
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.
|
73
|
-
|
74
|
-
### Contributors
|
75
|
-
|
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
|
-
- Justin Steele
|
98
|
-
- Kenichi Kamiya
|
99
|
-
- Kensuke Nagae
|
100
|
-
- Kevin Ansfield
|
101
|
-
- Koichi Ito
|
102
|
-
- Mark Friedgan
|
103
|
-
- Michael Granger
|
104
|
-
- Myron Marston
|
105
|
-
- Nicolas Leger
|
106
|
-
- Oleg Orlov
|
107
|
-
- Paul Kunysch
|
108
|
-
- Pete Higgins
|
109
|
-
- Peter Goldstein
|
110
|
-
- Peter Wagenet
|
111
|
-
- Philippe Lafoucrière
|
112
|
-
- Ryan Lovelett
|
113
|
-
- Scott Steele
|
114
|
-
- Simon Courtois
|
115
|
-
- Tien (@tiendo1011)
|
116
|
-
- Tomas Jura
|
117
|
-
- Vít Ondruch
|
118
|
-
|
119
|
-
[rspec]: http://rspec.info/documentation/
|
120
|
-
[quality commit messages]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
|
121
|
-
[hoe]: https://github.com/seattlerb/hoe
|
data/History.md
DELETED
@@ -1,431 +0,0 @@
|
|
1
|
-
# History
|
2
|
-
|
3
|
-
## 1.5.1 / 2024-01-31
|
4
|
-
|
5
|
-
- Peter Goldstein updated CI configuration to add Ruby 3.1 and Masato Nakamura
|
6
|
-
added Ruby 3.2 and 3.3. [#82][], [#89][]
|
7
|
-
|
8
|
-
- Updated the CI configuration, resolving [#82][] to add Ruby 3.1. Masato
|
9
|
-
|
10
|
-
- Switched to [standard ruby][] formatting.
|
11
|
-
|
12
|
-
- Justin Steele converted the licence file to Markdown. [#84][]
|
13
|
-
|
14
|
-
- Updated the gem SPDX identifier for GPL 2.0 or later, resolving [#86][] by Vit
|
15
|
-
Ondruch.
|
16
|
-
|
17
|
-
- Resolve a potential security issue with `ldiff` in its use of `IO.read`
|
18
|
-
instead of `File.read`. [#91][]
|
19
|
-
|
20
|
-
- Added MFA authentication requirement for release to RubyGems. [#90][]
|
21
|
-
|
22
|
-
- Added dependabot management for actions and gems. [#90][]
|
23
|
-
|
24
|
-
- Updated CodeQL coniguration. [#90][]
|
25
|
-
|
26
|
-
## 1.5.0 / 2021-12-23
|
27
|
-
|
28
|
-
- Updated the CI configuration and monkey-patch Hoe.
|
29
|
-
|
30
|
-
- Kenichi Kamiya fixed a test configuration deprecation in SimpleCov. [#69][]
|
31
|
-
|
32
|
-
- Tien introduced several corrections and code improvements:
|
33
|
-
|
34
|
-
- Removed an off-by-one error when calculating an index value by embracing
|
35
|
-
Ruby iteration properly. This had a side-effect of fixing a long-standing
|
36
|
-
bug in `#traverse_sequences` where the traversal would not be transitive.
|
37
|
-
That is, `LCS(s2, s1)` should produce a sequence that is transitive with
|
38
|
-
`LCS(s1, s2)` on traversal, and applying the diff computed from those
|
39
|
-
results would result in equivalent changes that could be played forward or
|
40
|
-
backward as appropriate. [#71][], [#75][]
|
41
|
-
|
42
|
-
- The above fix resulted in a changed order of the longest common subsequence
|
43
|
-
when callbacks were applied. After analysis, it was determined that the
|
44
|
-
computed subsequence was _equivalent_ to the prior version, so the test was
|
45
|
-
updated. This also resulted in the clarification of documentation when
|
46
|
-
traversing the subsequences. [#79][]
|
47
|
-
|
48
|
-
- An infinite loop case in the case where Diff::LCS would be included into an
|
49
|
-
enumerable class has been fixed. [#73][]
|
50
|
-
|
51
|
-
- Clarified the purpose of a threshold test in calculation of LCS. [#72][],
|
52
|
-
[#80][]
|
53
|
-
|
54
|
-
- Removed autotest directory
|
55
|
-
|
56
|
-
## 1.4.4 / 2020-07-01
|
57
|
-
|
58
|
-
- Fixed an issue reported by Jun Aruga in the Diff::LCS::Ldiff binary text
|
59
|
-
detection. [#44][]
|
60
|
-
|
61
|
-
- Fixed a theoretical issue reported by Jun Aruga in Diff::LCS::Hunk to raise
|
62
|
-
a more useful exception. [#43][]
|
63
|
-
|
64
|
-
- Added documentation that should address custom object issues as reported in
|
65
|
-
[#35][].
|
66
|
-
|
67
|
-
- Fixed more diff errors, in part reported in [#65][].
|
68
|
-
|
69
|
-
- The use of `Numeric#abs` is incorrect in `Diff::LCS::Block#diff_size`. The
|
70
|
-
diff size _must_ be accurate for correct change placement.
|
71
|
-
|
72
|
-
- When selecting @max_diff_size in Diff::LCS::Hunk, choose it based on
|
73
|
-
`block.diff_size.abs`.
|
74
|
-
|
75
|
-
- Made a number of changes that will, unfortunately, increase allocations at
|
76
|
-
the cost of being safe with frozen strings.
|
77
|
-
|
78
|
-
- Add some knowledge that when `Diff::LCS::Hunk#diff` is called, that we are
|
79
|
-
processing the _last_ hunk, so some changes will be made to how the output
|
80
|
-
is generated.
|
81
|
-
|
82
|
-
- `old`, `ed`, and `reverse_ed` formats have no differences.
|
83
|
-
|
84
|
-
- `unified` format will report `` given the
|
85
|
-
correct conditions, at most once. Unified range reporting also differs for
|
86
|
-
the last hunk such that the `length` of the range is reduced by one.
|
87
|
-
|
88
|
-
- `context` format will report `\No newline at end of file` given the
|
89
|
-
correct conditions, up to once per "file". Context range reporting also
|
90
|
-
differs for the last hunk such that the `end` part of the range is reduced
|
91
|
-
by one to a minimum of one.
|
92
|
-
|
93
|
-
- Added a bunch more tests for the cases above, and fixed `hunk_spec.rb` so that
|
94
|
-
the phrase being compared isn't nonsense French.
|
95
|
-
|
96
|
-
- Updated formatting.
|
97
|
-
|
98
|
-
- Added a Rake task to assist with manual testing on Ruby 1.8.
|
99
|
-
|
100
|
-
## 1.4.3 / 2020-06-29
|
101
|
-
|
102
|
-
- Fixed several issues with the 1.4 on Rubies older than 2.0. Some of this was
|
103
|
-
providing useful shim functions to Hoe 3.x (which dropped these older Rubies
|
104
|
-
a while ago). Specifically:
|
105
|
-
|
106
|
-
- Removed Array#lazy from a method in Diff::LCS::Hunk.
|
107
|
-
|
108
|
-
- Changed some unit tests to use old-style Symbol-keyed hashes.
|
109
|
-
|
110
|
-
- Changed some unit test helper functions to no longer use keyword parameters,
|
111
|
-
but only a trailing options hash.
|
112
|
-
|
113
|
-
- Made the use of `psych` dependent on `RUBY_VERSION >= 1.9`.
|
114
|
-
|
115
|
-
Resolves [#63][].
|
116
|
-
|
117
|
-
## 1.4.2 / 2020-06-23
|
118
|
-
|
119
|
-
- Camille Drapier fixed a small issue with RuboCop configuration. [#59][]
|
120
|
-
|
121
|
-
- Applied another fix (and unit test) to fix an issue for the Chef team.
|
122
|
-
[#60][], [#61][]
|
123
|
-
|
124
|
-
## 1.4.1 / 2020-06-23
|
125
|
-
|
126
|
-
- Fix an issue where diff sizes could be negative, and they should be. [#57][],
|
127
|
-
[#58][]
|
128
|
-
|
129
|
-
## 1.4 / 2020-06-23
|
130
|
-
|
131
|
-
- Ruby versions lower than 2.4 are soft-deprecated and will not be run as part
|
132
|
-
of the CI process any longer.
|
133
|
-
|
134
|
-
- Akinora MUSHA (knu) added the ability for Diff::LCS::Change objects to be
|
135
|
-
implicitly treated arrays. Originally provided as pull request [#47][], but it
|
136
|
-
introduced a number of test failures as documented in [#48][], and remediation
|
137
|
-
of Diff::LCS itself was introduced in [#49][].
|
138
|
-
|
139
|
-
- Resolved [#5][] with some tests comparing output from `system` calls to
|
140
|
-
`bin/ldiff` with some pre-generated output. Resolved [#6][] with these tests.
|
141
|
-
|
142
|
-
- Resolved a previously undetected `bin/ldiff` issue with `--context` output not
|
143
|
-
matching `diff --context` output.
|
144
|
-
|
145
|
-
- Resolved an issue with later versions of Ruby not working with an `OptParse`
|
146
|
-
specification of `Numeric`; this has been changed to `Integer`.
|
147
|
-
|
148
|
-
- Brandon Fish added truffleruby in [#52][].
|
149
|
-
|
150
|
-
- Fixed two missing classes as reported in [#53][].
|
151
|
-
|
152
|
-
## 1.3 / 2017-01-18
|
153
|
-
|
154
|
-
- Bugs fixed:
|
155
|
-
|
156
|
-
- Fixed an error for bin/ldiff --version. Fixes issue [#21][].
|
157
|
-
|
158
|
-
- Force Diff::LCS::Change and Diff::LCS::ContextChange to only perform
|
159
|
-
equality comparisons against themselves. Provided by Kevin Mook in pull
|
160
|
-
request [#29][].
|
161
|
-
|
162
|
-
- Fix tab expansion in htmldiff, provided by Mark Friedgan in pull request
|
163
|
-
[#25][].
|
164
|
-
|
165
|
-
- Silence Ruby 2.4 Fixnum deprecation warnings. Fixes issue [#38][] and pull
|
166
|
-
request [#36][].
|
167
|
-
|
168
|
-
- Ensure that test dependencies are loaded properly. Fixes issue [#33][] and
|
169
|
-
pull request [#34][].
|
170
|
-
|
171
|
-
- Fix issue [#1][] with incorrect intuition of patch direction. Tentative fix,
|
172
|
-
but the previous failure cases pass now.
|
173
|
-
|
174
|
-
- Tooling changes:
|
175
|
-
|
176
|
-
- Added SimpleCov and Coveralls support.
|
177
|
-
|
178
|
-
- Change the homepage (temporarily) to the GitHub repo.
|
179
|
-
|
180
|
-
- Updated testing and gem infrastructure.
|
181
|
-
|
182
|
-
- Modernized the specs.
|
183
|
-
|
184
|
-
- Cleaned up documentation.
|
185
|
-
|
186
|
-
- Added a Code of Conduct.
|
187
|
-
|
188
|
-
## 1.2.5 / 2013-11-08
|
189
|
-
|
190
|
-
- Bugs fixed:
|
191
|
-
|
192
|
-
- Comparing arrays flattened them too far, especially with Diff::LCS.sdiff.
|
193
|
-
Fixed by Josh Bronson in pull request [#23][].
|
194
|
-
|
195
|
-
## 1.2.4 / 2013-04-20
|
196
|
-
|
197
|
-
- Bugs fixed:
|
198
|
-
|
199
|
-
- A bug was introduced after 1.1.3 when pruning common sequences at the start
|
200
|
-
of comparison. Paul Kunysch (@pck) fixed this in pull request [#18][].
|
201
|
-
Thanks!
|
202
|
-
|
203
|
-
- The Rubinius (1.9 mode) bug in [rubinius/rubinius#2268][] has been fixed by
|
204
|
-
the Rubinius team two days after it was filed. Thanks for fixing this so
|
205
|
-
quickly!
|
206
|
-
|
207
|
-
- Switching to Raggi's hoe-gemspec2 for gemspec generation.
|
208
|
-
|
209
|
-
## 1.2.3 / 2013-04-11
|
210
|
-
|
211
|
-
- Bugs Fixed:
|
212
|
-
|
213
|
-
- The new encoding detection for diff output generation (added in 1.2.2)
|
214
|
-
introduced a bug if the left side of the comparison was the empty set.
|
215
|
-
Originally found in [rspec/rspec-expectations#238][] and
|
216
|
-
[rspec/rspec-expectations#239][]. Jon Rowe developed a reasonable heuristic
|
217
|
-
(left side, right side, empty string literal) to avoid this bug.
|
218
|
-
|
219
|
-
- There is a known issue with Rubinius in 1.9 mode reported in
|
220
|
-
[rubinius/rubinius#2268][] and demonstrated in the Travis CI builds. For all
|
221
|
-
other tested platforms, diff-lcs is considered stable. As soon as a suitably
|
222
|
-
small test-case can be created for the Rubinius team to examine, this will
|
223
|
-
be added to the Rubinius issue around this.
|
224
|
-
|
225
|
-
## 1.2.2 / 2013-03-30
|
226
|
-
|
227
|
-
- Bugs Fixed:
|
228
|
-
|
229
|
-
- Diff::LCS::Hunk could not properly generate a difference for comparison sets
|
230
|
-
that are not US-ASCII-compatible because of the use of literal regular
|
231
|
-
expressions and strings. Jon Rowe found this in
|
232
|
-
[rspec/rspec-expectations#219][] and provided a first pass implementation in
|
233
|
-
pull request [#15][]. I've reworked it because of test failures in Rubinius
|
234
|
-
when running in Ruby 1.9 mode. This coerces the added values to the encoding
|
235
|
-
of the old dataset (as determined by the first piece of the old dataset).
|
236
|
-
|
237
|
-
- Adding Travis CI testing for Ruby 2.0.
|
238
|
-
|
239
|
-
## 1.2.1 / 2013-02-09
|
240
|
-
|
241
|
-
- Bugs Fixed:
|
242
|
-
|
243
|
-
- As seen in [rspec/rspec-expectations#200][], the release of Diff::LCS 1.2
|
244
|
-
introduced an unnecessary public API change to Diff::LCS::Hunk (see the
|
245
|
-
change at [rspec/rspec-expectations@3d6fc82c][] for details). The new method
|
246
|
-
name (and behaviour) is more correct, but I should not have renamed the
|
247
|
-
function or should have at least provided an alias. This release restores
|
248
|
-
Diff::LCS::Hunk#unshift as an alias to #merge. Note that the old #unshift
|
249
|
-
behaviour was incorrect and will not be restored.
|
250
|
-
|
251
|
-
## 1.2.0 / 2013-01-21
|
252
|
-
|
253
|
-
- Minor Enhancements:
|
254
|
-
|
255
|
-
- Added special case handling for Diff::LCS.patch so that it handles patches
|
256
|
-
that are empty or contain no changes.
|
257
|
-
|
258
|
-
- Added two new methods (#patch_me and #unpatch_me) to the includable module.
|
259
|
-
|
260
|
-
- Bugs Fixed:
|
261
|
-
|
262
|
-
- Fixed issue [#1][] patch direction detection.
|
263
|
-
|
264
|
-
- Resolved issue [#2][] by handling `string[string.size, 1]` properly (it
|
265
|
-
returns `""` not `nil`).
|
266
|
-
|
267
|
-
- Michael Granger (ged) fixed an implementation error in Diff::LCS::Change and
|
268
|
-
added specs in pull request [#8][]. Thanks!
|
269
|
-
|
270
|
-
- Made the code auto-testable.
|
271
|
-
|
272
|
-
- Vít Ondruch (voxik) provided the latest version of the GPL2 license file in
|
273
|
-
pull request [#10][]. Thanks!
|
274
|
-
|
275
|
-
- Fixed a documentation issue with the includable versions of #patch! and
|
276
|
-
#unpatch! where they implied that they would replace the original value.
|
277
|
-
Given that Diff::LCS.patch always returns a copy, the documentation was
|
278
|
-
incorrect and has been corrected. To provide the behaviour that was
|
279
|
-
originally documented, two new methods were added to provide this behaviour.
|
280
|
-
Found by scooter-dangle in issue [#12][]. Thanks!
|
281
|
-
|
282
|
-
- Code Style Changes:
|
283
|
-
|
284
|
-
- Removed trailing spaces.
|
285
|
-
|
286
|
-
- Calling class methods using `.` instead of `::`.
|
287
|
-
|
288
|
-
- Vít Ondruch (voxik) removed unnecessary shebangs in pull request [#9][].
|
289
|
-
Thanks!
|
290
|
-
|
291
|
-
- Kenichi Kamiya (kachick) removed some warnings of an unused variable in
|
292
|
-
lucky pull request [#13][]. Thanks!
|
293
|
-
|
294
|
-
- Embarked on a major refactoring to make the files a little more manageable
|
295
|
-
and understand the code on a deeper level.
|
296
|
-
|
297
|
-
- Adding to http://travis-ci.org.
|
298
|
-
|
299
|
-
## 1.1.3 / 2011-08-27
|
300
|
-
|
301
|
-
- Converted to 'hoe' for release.
|
302
|
-
|
303
|
-
- Converted tests to RSpec 2.
|
304
|
-
|
305
|
-
- Extracted the body of htmldiff into a class available from diff/lcs/htmldiff.
|
306
|
-
|
307
|
-
- Migrated development and issue tracking to GitHub.
|
308
|
-
|
309
|
-
- Bugs fixed:
|
310
|
-
|
311
|
-
- Eliminated the explicit use of RubyGems in both bin/htmldiff and bin/ldiff.
|
312
|
-
Resolves issue [#4][].
|
313
|
-
|
314
|
-
- Eliminated Ruby warnings. Resolves issue [#3][].
|
315
|
-
|
316
|
-
## 1.1.2 / 2004-10-20
|
317
|
-
|
318
|
-
- Fixed a problem reported by Mauricio Fernandez in htmldiff.
|
319
|
-
|
320
|
-
## 1.1.1 / 2004-09-25
|
321
|
-
|
322
|
-
- Fixed bug #891 (Set returned from patch command does not contain last equal
|
323
|
-
part).
|
324
|
-
|
325
|
-
- Fixed a problem with callback initialisation code (it assumed that all
|
326
|
-
callbacks passed as classes can be initialised; now, it rescues NoMethodError
|
327
|
-
in the event of private :new being called).
|
328
|
-
|
329
|
-
- Modified the non-initialisable callbacks to have a private #new method.
|
330
|
-
|
331
|
-
- Moved ldiff core code to Diff::LCS::Ldiff (diff/lcs/ldiff.rb).
|
332
|
-
|
333
|
-
## 1.1.0
|
334
|
-
|
335
|
-
- Eliminated the need for Diff::LCS::Event and removed it.
|
336
|
-
|
337
|
-
- Added a contextual diff callback, Diff::LCS::ContextDiffCallback.
|
338
|
-
|
339
|
-
- Implemented patching/unpatching for standard Diff callback output formats with
|
340
|
-
both #diff and #sdiff.
|
341
|
-
|
342
|
-
- Extensive documentation changes.
|
343
|
-
|
344
|
-
## 1.0.4
|
345
|
-
|
346
|
-
- Fixed a problem with bin/ldiff output, especially for unified format. Newlines
|
347
|
-
that should have been present weren't.
|
348
|
-
|
349
|
-
- Changed the .tar.gz installer to generate Windows batch files if ones do not
|
350
|
-
exist already. Removed the existing batch files as they didn't work.
|
351
|
-
|
352
|
-
## 1.0.3
|
353
|
-
|
354
|
-
- Fixed a problem with #traverse_sequences where the first difference from the
|
355
|
-
left sequence might not be appropriately captured.
|
356
|
-
|
357
|
-
## 1.0.2
|
358
|
-
|
359
|
-
- Fixed an issue with ldiff not working because actions were changed from
|
360
|
-
symbols to strings.
|
361
|
-
|
362
|
-
## 1.0.1
|
363
|
-
|
364
|
-
- Minor modifications to the gemspec, the README.
|
365
|
-
|
366
|
-
- Renamed the diff program to ldiff (as well as the companion batch file) so as
|
367
|
-
to not collide with the standard diff program.
|
368
|
-
|
369
|
-
- Fixed issues with RubyGems. Requires RubyGems > 0.6.1 or >= 0.6.1 with the
|
370
|
-
latest CVS version.
|
371
|
-
|
372
|
-
## 1.0
|
373
|
-
|
374
|
-
- Initial release based mostly on Perl's Algorithm::Diff.
|
375
|
-
|
376
|
-
[#1]: https://github.com/halostatue/diff-lcs/issues/1
|
377
|
-
[#2]: https://github.com/halostatue/diff-lcs/issues/2
|
378
|
-
[#3]: https://github.com/halostatue/diff-lcs/issues/3
|
379
|
-
[#4]: https://github.com/halostatue/diff-lcs/issues/4
|
380
|
-
[#5]: https://github.com/halostatue/diff-lcs/issues/5
|
381
|
-
[#6]: https://github.com/halostatue/diff-lcs/issues/6
|
382
|
-
[#8]: https://github.com/halostatue/diff-lcs/pull/8
|
383
|
-
[#9]: https://github.com/halostatue/diff-lcs/pull/9
|
384
|
-
[#10]: https://github.com/halostatue/diff-lcs/pull/10
|
385
|
-
[#12]: https://github.com/halostatue/diff-lcs/issues/12
|
386
|
-
[#13]: https://github.com/halostatue/diff-lcs/pull/13
|
387
|
-
[#15]: https://github.com/halostatue/diff-lcs/pull/15
|
388
|
-
[#18]: https://github.com/halostatue/diff-lcs/pull/18
|
389
|
-
[#21]: https://github.com/halostatue/diff-lcs/issues/21
|
390
|
-
[#23]: https://github.com/halostatue/diff-lcs/pull/23
|
391
|
-
[#25]: https://github.com/halostatue/diff-lcs/pull/25
|
392
|
-
[#29]: https://github.com/halostatue/diff-lcs/pull/29
|
393
|
-
[#33]: https://github.com/halostatue/diff-lcs/issues/33
|
394
|
-
[#34]: https://github.com/halostatue/diff-lcs/pull/34
|
395
|
-
[#35]: https://github.com/halostatue/diff-lcs/issues/35
|
396
|
-
[#36]: https://github.com/halostatue/diff-lcs/pull/36
|
397
|
-
[#38]: https://github.com/halostatue/diff-lcs/issues/38
|
398
|
-
[#43]: https://github.com/halostatue/diff-lcs/issues/43
|
399
|
-
[#44]: https://github.com/halostatue/diff-lcs/issues/44
|
400
|
-
[#47]: https://github.com/halostatue/diff-lcs/pull/47
|
401
|
-
[#48]: https://github.com/halostatue/diff-lcs/issues/48
|
402
|
-
[#49]: https://github.com/halostatue/diff-lcs/pull/49
|
403
|
-
[#52]: https://github.com/halostatue/diff-lcs/pull/52
|
404
|
-
[#53]: https://github.com/halostatue/diff-lcs/issues/53
|
405
|
-
[#57]: https://github.com/halostatue/diff-lcs/issues/57
|
406
|
-
[#58]: https://github.com/halostatue/diff-lcs/pull/58
|
407
|
-
[#59]: https://github.com/halostatue/diff-lcs/pull/59
|
408
|
-
[#60]: https://github.com/halostatue/diff-lcs/issues/60
|
409
|
-
[#61]: https://github.com/halostatue/diff-lcs/pull/61
|
410
|
-
[#63]: https://github.com/halostatue/diff-lcs/issues/63
|
411
|
-
[#65]: https://github.com/halostatue/diff-lcs/issues/65
|
412
|
-
[#69]: https://github.com/halostatue/diff-lcs/issues/69
|
413
|
-
[#71]: https://github.com/halostatue/diff-lcs/issues/71
|
414
|
-
[#72]: https://github.com/halostatue/diff-lcs/issues/72
|
415
|
-
[#73]: https://github.com/halostatue/diff-lcs/issues/73
|
416
|
-
[#75]: https://github.com/halostatue/diff-lcs/issues/75
|
417
|
-
[#79]: https://github.com/halostatue/diff-lcs/issues/79
|
418
|
-
[#80]: https://github.com/halostatue/diff-lcs/issues/80
|
419
|
-
[#82]: https://github.com/halostatue/diff-lcs/pull/82
|
420
|
-
[#84]: https://github.com/halostatue/diff-lcs/pull/84
|
421
|
-
[#86]: https://github.com/halostatue/diff-lcs/pull/86
|
422
|
-
[#89]: https://github.com/halostatue/diff-lcs/pull/89
|
423
|
-
[#90]: https://github.com/halostatue/diff-lcs/pull/90
|
424
|
-
[#91]: https://github.com/halostatue/diff-lcs/issues/91
|
425
|
-
[rspec/rspec-expectations#200]: https://github.com/rspec/rspec-expectations/pull/200
|
426
|
-
[rspec/rspec-expectations#219]: https://github.com/rspec/rspec-expectations/issues/219
|
427
|
-
[rspec/rspec-expectations#238]: https://github.com/rspec/rspec-expectations/issues/238
|
428
|
-
[rspec/rspec-expectations#239]: https://github.com/rspec/rspec-expectations/issues/239
|
429
|
-
[rspec/rspec-expectations@3d6fc82c]: https://github.com/rspec/rspec-expectations/commit/3d6fc82c
|
430
|
-
[rubinius/rubinius#2268]: https://github.com/rubinius/rubinius/issues/2268
|
431
|
-
[standard ruby]: https://github.com/standardrb/standard
|