diff-lcs 2.0.0 → 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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +170 -85
- data/CODE_OF_CONDUCT.md +49 -48
- data/CONTRIBUTING.md +29 -28
- data/CONTRIBUTORS.md +15 -11
- data/LICENCE.md +19 -38
- data/Manifest.txt +16 -3
- data/README.md +24 -22
- data/Rakefile +3 -0
- data/SECURITY.md +5 -5
- data/lib/diff/lcs/array.rb +3 -1
- data/lib/diff/lcs/callbacks.rb +1 -1
- data/lib/diff/lcs/change.rb +74 -32
- data/lib/diff/lcs/frozen_value.rb +74 -0
- data/lib/diff/lcs/hunk.rb +146 -58
- data/lib/diff/lcs/internals.rb +183 -72
- data/lib/diff/lcs/ldiff.rb +23 -45
- data/lib/diff/lcs/string.rb +3 -1
- data/lib/diff/lcs/version.rb +1 -1
- data/lib/diff/lcs.rb +29 -26
- data/licences/MIT.txt +19 -0
- data/spec/ldiff_spec.rb +9 -7
- data/test/fixtures/ldiff/output.diff.bin1-q +0 -0
- data/test/fixtures/ldiff/output.diff.bin2-q +1 -0
- data/test/fixtures/ldiff/output.diff.hunks +9 -0
- data/test/fixtures/ldiff/output.diff.hunks-c +35 -0
- data/test/fixtures/ldiff/output.diff.hunks-u +20 -0
- data/test/fixtures/ldiff/output.diff.same +0 -0
- data/test/fixtures/ldiff/output.diff.same-c +0 -0
- data/test/fixtures/ldiff/output.diff.same-u +0 -0
- data/test/fixtures/new-hunks +31 -0
- data/test/fixtures/old-hunks +30 -0
- data/test/test_change.rb +23 -19
- data/test/test_frozen_value.rb +155 -0
- data/test/test_helper.rb +5 -0
- data/test/test_hunk.rb +238 -0
- data/test/test_lcs.rb +147 -0
- data/test/test_ldiff.rb +64 -7
- metadata +24 -11
- /data/{licenses → licences}/COPYING.txt +0 -0
- /data/{licenses → licences}/artistic.txt +0 -0
- /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.
|
|
4
|
+
version: 2.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Austin Ziegler
|
|
@@ -195,8 +195,8 @@ description: |
|
|
|
195
195
|
to create a simple HTML diff output format and a standard diff-like tool.
|
|
196
196
|
|
|
197
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
|
-
details in the `CHANGELOG`, but users of diff-lcs should not notice any
|
|
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
200
|
significant changes to the APIs.
|
|
201
201
|
|
|
202
202
|
==== To Install:
|
|
@@ -211,12 +211,12 @@ extra_rdoc_files:
|
|
|
211
211
|
- CONTRIBUTING.md
|
|
212
212
|
- CONTRIBUTORS.md
|
|
213
213
|
- LICENCE.md
|
|
214
|
-
- Manifest.txt
|
|
215
214
|
- README.md
|
|
216
215
|
- SECURITY.md
|
|
217
|
-
-
|
|
218
|
-
-
|
|
219
|
-
-
|
|
216
|
+
- licences/COPYING.txt
|
|
217
|
+
- licences/MIT.txt
|
|
218
|
+
- licences/artistic.txt
|
|
219
|
+
- licences/dco.txt
|
|
220
220
|
files:
|
|
221
221
|
- CHANGELOG.md
|
|
222
222
|
- CODE_OF_CONDUCT.md
|
|
@@ -240,14 +240,16 @@ files:
|
|
|
240
240
|
- lib/diff/lcs/block.rb
|
|
241
241
|
- lib/diff/lcs/callbacks.rb
|
|
242
242
|
- lib/diff/lcs/change.rb
|
|
243
|
+
- lib/diff/lcs/frozen_value.rb
|
|
243
244
|
- lib/diff/lcs/hunk.rb
|
|
244
245
|
- lib/diff/lcs/internals.rb
|
|
245
246
|
- lib/diff/lcs/ldiff.rb
|
|
246
247
|
- lib/diff/lcs/string.rb
|
|
247
248
|
- lib/diff/lcs/version.rb
|
|
248
|
-
-
|
|
249
|
-
-
|
|
250
|
-
-
|
|
249
|
+
- licences/COPYING.txt
|
|
250
|
+
- licences/MIT.txt
|
|
251
|
+
- licences/artistic.txt
|
|
252
|
+
- licences/dco.txt
|
|
251
253
|
- spec/change_spec.rb
|
|
252
254
|
- spec/diff_spec.rb
|
|
253
255
|
- spec/hunk_spec.rb
|
|
@@ -287,11 +289,13 @@ files:
|
|
|
287
289
|
- test/fixtures/ldiff/output.diff.bin1-c
|
|
288
290
|
- test/fixtures/ldiff/output.diff.bin1-e
|
|
289
291
|
- test/fixtures/ldiff/output.diff.bin1-f
|
|
292
|
+
- test/fixtures/ldiff/output.diff.bin1-q
|
|
290
293
|
- test/fixtures/ldiff/output.diff.bin1-u
|
|
291
294
|
- test/fixtures/ldiff/output.diff.bin2
|
|
292
295
|
- test/fixtures/ldiff/output.diff.bin2-c
|
|
293
296
|
- test/fixtures/ldiff/output.diff.bin2-e
|
|
294
297
|
- test/fixtures/ldiff/output.diff.bin2-f
|
|
298
|
+
- test/fixtures/ldiff/output.diff.bin2-q
|
|
295
299
|
- test/fixtures/ldiff/output.diff.bin2-u
|
|
296
300
|
- test/fixtures/ldiff/output.diff.chef
|
|
297
301
|
- test/fixtures/ldiff/output.diff.chef-c
|
|
@@ -310,6 +314,9 @@ files:
|
|
|
310
314
|
- test/fixtures/ldiff/output.diff.four_lines.vs.empty-e
|
|
311
315
|
- test/fixtures/ldiff/output.diff.four_lines.vs.empty-f
|
|
312
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
|
|
313
320
|
- test/fixtures/ldiff/output.diff.issue95_trailing_context
|
|
314
321
|
- test/fixtures/ldiff/output.diff.issue95_trailing_context-c
|
|
315
322
|
- test/fixtures/ldiff/output.diff.issue95_trailing_context-e
|
|
@@ -325,13 +332,19 @@ files:
|
|
|
325
332
|
- test/fixtures/ldiff/output.diff.missing_new_line2-e
|
|
326
333
|
- test/fixtures/ldiff/output.diff.missing_new_line2-f
|
|
327
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
|
|
328
338
|
- test/fixtures/new-chef
|
|
329
339
|
- test/fixtures/new-chef2
|
|
340
|
+
- test/fixtures/new-hunks
|
|
330
341
|
- test/fixtures/old-chef
|
|
331
342
|
- test/fixtures/old-chef2
|
|
343
|
+
- test/fixtures/old-hunks
|
|
332
344
|
- test/test_block.rb
|
|
333
345
|
- test/test_change.rb
|
|
334
346
|
- test/test_diff.rb
|
|
347
|
+
- test/test_frozen_value.rb
|
|
335
348
|
- test/test_helper.rb
|
|
336
349
|
- test/test_hunk.rb
|
|
337
350
|
- test/test_issues.rb
|
|
@@ -371,7 +384,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
371
384
|
- !ruby/object:Gem::Version
|
|
372
385
|
version: '0'
|
|
373
386
|
requirements: []
|
|
374
|
-
rubygems_version: 4.0.
|
|
387
|
+
rubygems_version: 4.0.20
|
|
375
388
|
specification_version: 4
|
|
376
389
|
summary: Diff::LCS computes the difference between two Enumerable sequences using
|
|
377
390
|
the McIlroy-Hunt longest common subsequence (LCS) algorithm
|
|
File without changes
|
|
File without changes
|
|
File without changes
|