diff-lcs 2.0.0.beta.2 → 2.1.0

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.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +173 -86
  3. data/CODE_OF_CONDUCT.md +155 -116
  4. data/CONTRIBUTING.md +29 -28
  5. data/CONTRIBUTORS.md +15 -11
  6. data/LICENCE.md +19 -38
  7. data/Manifest.txt +16 -3
  8. data/README.md +37 -26
  9. data/Rakefile +3 -0
  10. data/SECURITY.md +7 -7
  11. data/lib/diff/lcs/array.rb +3 -1
  12. data/lib/diff/lcs/callbacks.rb +1 -1
  13. data/lib/diff/lcs/change.rb +74 -32
  14. data/lib/diff/lcs/frozen_value.rb +74 -0
  15. data/lib/diff/lcs/hunk.rb +146 -58
  16. data/lib/diff/lcs/internals.rb +183 -72
  17. data/lib/diff/lcs/ldiff.rb +23 -45
  18. data/lib/diff/lcs/string.rb +3 -1
  19. data/lib/diff/lcs/version.rb +1 -1
  20. data/lib/diff/lcs.rb +29 -26
  21. data/licences/MIT.txt +19 -0
  22. data/spec/ldiff_spec.rb +9 -7
  23. data/test/fixtures/ldiff/output.diff.bin1-q +0 -0
  24. data/test/fixtures/ldiff/output.diff.bin2-q +1 -0
  25. data/test/fixtures/ldiff/output.diff.hunks +9 -0
  26. data/test/fixtures/ldiff/output.diff.hunks-c +35 -0
  27. data/test/fixtures/ldiff/output.diff.hunks-u +20 -0
  28. data/test/fixtures/ldiff/output.diff.same +0 -0
  29. data/test/fixtures/ldiff/output.diff.same-c +0 -0
  30. data/test/fixtures/ldiff/output.diff.same-u +0 -0
  31. data/test/fixtures/new-hunks +31 -0
  32. data/test/fixtures/old-hunks +30 -0
  33. data/test/test_change.rb +23 -19
  34. data/test/test_frozen_value.rb +155 -0
  35. data/test/test_helper.rb +5 -0
  36. data/test/test_hunk.rb +238 -0
  37. data/test/test_lcs.rb +147 -0
  38. data/test/test_ldiff.rb +64 -7
  39. metadata +28 -18
  40. /data/{licenses → licences}/COPYING.txt +0 -0
  41. /data/{licenses → licences}/artistic.txt +0 -0
  42. /data/{licenses → licences}/dco.txt +0 -0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diff-lcs
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta.2
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Ziegler
@@ -189,20 +189,17 @@ dependencies:
189
189
  - - "~>"
190
190
  - !ruby/object:Gem::Version
191
191
  version: '0.11'
192
- description: |-
192
+ description: |
193
193
  Diff::LCS computes the difference between two Enumerable sequences using the
194
194
  McIlroy-Hunt longest common subsequence (LCS) algorithm. It includes utilities
195
195
  to create a simple HTML diff output format and a standard diff-like tool.
196
196
 
197
- This is release 1.6.1, providing a simple extension that allows for
198
- Diff::LCS::Change objects to be treated implicitly as arrays and fixes a number
199
- of formatting issues.
197
+ This is release 2.0, which has significant breaking changes (removal of
198
+ deprecations and workarounds) and requires at least Ruby 3.2 or higher. See
199
+ full details in the `CHANGELOG`, but users of diff-lcs should not notice any
200
+ significant changes to the APIs.
200
201
 
201
- Ruby versions below 2.5 are soft-deprecated, which means that older versions are
202
- no longer part of the CI test suite. If any changes have been introduced that
203
- break those versions, bug reports and patches will be accepted, but it will be
204
- up to the reporter to verify any fixes prior to release. The next major release
205
- will completely break compatibility.
202
+ ==== To Install:
206
203
  email:
207
204
  - halostatue@gmail.com
208
205
  executables:
@@ -214,12 +211,12 @@ extra_rdoc_files:
214
211
  - CONTRIBUTING.md
215
212
  - CONTRIBUTORS.md
216
213
  - LICENCE.md
217
- - Manifest.txt
218
214
  - README.md
219
215
  - SECURITY.md
220
- - licenses/COPYING.txt
221
- - licenses/artistic.txt
222
- - licenses/dco.txt
216
+ - licences/COPYING.txt
217
+ - licences/MIT.txt
218
+ - licences/artistic.txt
219
+ - licences/dco.txt
223
220
  files:
224
221
  - CHANGELOG.md
225
222
  - CODE_OF_CONDUCT.md
@@ -243,14 +240,16 @@ files:
243
240
  - lib/diff/lcs/block.rb
244
241
  - lib/diff/lcs/callbacks.rb
245
242
  - lib/diff/lcs/change.rb
243
+ - lib/diff/lcs/frozen_value.rb
246
244
  - lib/diff/lcs/hunk.rb
247
245
  - lib/diff/lcs/internals.rb
248
246
  - lib/diff/lcs/ldiff.rb
249
247
  - lib/diff/lcs/string.rb
250
248
  - lib/diff/lcs/version.rb
251
- - licenses/COPYING.txt
252
- - licenses/artistic.txt
253
- - licenses/dco.txt
249
+ - licences/COPYING.txt
250
+ - licences/MIT.txt
251
+ - licences/artistic.txt
252
+ - licences/dco.txt
254
253
  - spec/change_spec.rb
255
254
  - spec/diff_spec.rb
256
255
  - spec/hunk_spec.rb
@@ -290,11 +289,13 @@ files:
290
289
  - test/fixtures/ldiff/output.diff.bin1-c
291
290
  - test/fixtures/ldiff/output.diff.bin1-e
292
291
  - test/fixtures/ldiff/output.diff.bin1-f
292
+ - test/fixtures/ldiff/output.diff.bin1-q
293
293
  - test/fixtures/ldiff/output.diff.bin1-u
294
294
  - test/fixtures/ldiff/output.diff.bin2
295
295
  - test/fixtures/ldiff/output.diff.bin2-c
296
296
  - test/fixtures/ldiff/output.diff.bin2-e
297
297
  - test/fixtures/ldiff/output.diff.bin2-f
298
+ - test/fixtures/ldiff/output.diff.bin2-q
298
299
  - test/fixtures/ldiff/output.diff.bin2-u
299
300
  - test/fixtures/ldiff/output.diff.chef
300
301
  - test/fixtures/ldiff/output.diff.chef-c
@@ -313,6 +314,9 @@ files:
313
314
  - test/fixtures/ldiff/output.diff.four_lines.vs.empty-e
314
315
  - test/fixtures/ldiff/output.diff.four_lines.vs.empty-f
315
316
  - test/fixtures/ldiff/output.diff.four_lines.vs.empty-u
317
+ - test/fixtures/ldiff/output.diff.hunks
318
+ - test/fixtures/ldiff/output.diff.hunks-c
319
+ - test/fixtures/ldiff/output.diff.hunks-u
316
320
  - test/fixtures/ldiff/output.diff.issue95_trailing_context
317
321
  - test/fixtures/ldiff/output.diff.issue95_trailing_context-c
318
322
  - test/fixtures/ldiff/output.diff.issue95_trailing_context-e
@@ -328,13 +332,19 @@ files:
328
332
  - test/fixtures/ldiff/output.diff.missing_new_line2-e
329
333
  - test/fixtures/ldiff/output.diff.missing_new_line2-f
330
334
  - test/fixtures/ldiff/output.diff.missing_new_line2-u
335
+ - test/fixtures/ldiff/output.diff.same
336
+ - test/fixtures/ldiff/output.diff.same-c
337
+ - test/fixtures/ldiff/output.diff.same-u
331
338
  - test/fixtures/new-chef
332
339
  - test/fixtures/new-chef2
340
+ - test/fixtures/new-hunks
333
341
  - test/fixtures/old-chef
334
342
  - test/fixtures/old-chef2
343
+ - test/fixtures/old-hunks
335
344
  - test/test_block.rb
336
345
  - test/test_change.rb
337
346
  - test/test_diff.rb
347
+ - test/test_frozen_value.rb
338
348
  - test/test_helper.rb
339
349
  - test/test_hunk.rb
340
350
  - test/test_issues.rb
@@ -374,7 +384,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
374
384
  - !ruby/object:Gem::Version
375
385
  version: '0'
376
386
  requirements: []
377
- rubygems_version: 4.0.4
387
+ rubygems_version: 4.0.20
378
388
  specification_version: 4
379
389
  summary: Diff::LCS computes the difference between two Enumerable sequences using
380
390
  the McIlroy-Hunt longest common subsequence (LCS) algorithm
File without changes
File without changes
File without changes