diff-lcs 1.6.0 → 1.6.2

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 (70) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +27 -0
  3. data/CONTRIBUTING.md +9 -12
  4. data/CONTRIBUTORS.md +1 -0
  5. data/LICENCE.md +15 -16
  6. data/Manifest.txt +54 -1
  7. data/README.md +1 -1
  8. data/Rakefile +44 -27
  9. data/lib/diff/lcs/backports.rb +4 -0
  10. data/lib/diff/lcs/change.rb +2 -2
  11. data/lib/diff/lcs/htmldiff.rb +3 -3
  12. data/lib/diff/lcs/ldiff.rb +14 -8
  13. data/lib/diff/lcs/version.rb +7 -0
  14. data/lib/diff/lcs.rb +3 -3
  15. data/mise.toml +5 -0
  16. data/spec/fixtures/123_x +2 -0
  17. data/spec/fixtures/456_x +2 -0
  18. data/spec/fixtures/empty +0 -0
  19. data/spec/fixtures/file1.bin +0 -0
  20. data/spec/fixtures/file2.bin +0 -0
  21. data/spec/fixtures/four_lines +4 -0
  22. data/spec/fixtures/four_lines_with_missing_new_line +4 -0
  23. data/spec/fixtures/ldiff/diff.missing_new_line1-e +1 -0
  24. data/spec/fixtures/ldiff/diff.missing_new_line1-f +1 -0
  25. data/spec/fixtures/ldiff/diff.missing_new_line2-e +1 -0
  26. data/spec/fixtures/ldiff/diff.missing_new_line2-f +1 -0
  27. data/spec/fixtures/ldiff/error.diff.chef-e +2 -0
  28. data/spec/fixtures/ldiff/error.diff.chef-f +2 -0
  29. data/spec/fixtures/ldiff/error.diff.missing_new_line1-e +1 -0
  30. data/spec/fixtures/ldiff/error.diff.missing_new_line1-f +1 -0
  31. data/spec/fixtures/ldiff/error.diff.missing_new_line2-e +1 -0
  32. data/spec/fixtures/ldiff/error.diff.missing_new_line2-f +1 -0
  33. data/spec/fixtures/ldiff/output.diff.bin1 +0 -0
  34. data/spec/fixtures/ldiff/output.diff.bin1-c +0 -0
  35. data/spec/fixtures/ldiff/output.diff.bin1-e +0 -0
  36. data/spec/fixtures/ldiff/output.diff.bin1-f +0 -0
  37. data/spec/fixtures/ldiff/output.diff.bin1-u +0 -0
  38. data/spec/fixtures/ldiff/output.diff.bin2 +1 -0
  39. data/spec/fixtures/ldiff/output.diff.bin2-c +1 -0
  40. data/spec/fixtures/ldiff/output.diff.bin2-e +1 -0
  41. data/spec/fixtures/ldiff/output.diff.bin2-f +1 -0
  42. data/spec/fixtures/ldiff/output.diff.bin2-u +1 -0
  43. data/spec/fixtures/ldiff/output.diff.empty.vs.four_lines +5 -0
  44. data/spec/fixtures/ldiff/output.diff.empty.vs.four_lines-c +9 -0
  45. data/spec/fixtures/ldiff/output.diff.empty.vs.four_lines-e +6 -0
  46. data/spec/fixtures/ldiff/output.diff.empty.vs.four_lines-f +6 -0
  47. data/spec/fixtures/ldiff/output.diff.empty.vs.four_lines-u +7 -0
  48. data/spec/fixtures/ldiff/output.diff.four_lines.vs.empty +5 -0
  49. data/spec/fixtures/ldiff/output.diff.four_lines.vs.empty-c +9 -0
  50. data/spec/fixtures/ldiff/output.diff.four_lines.vs.empty-e +1 -0
  51. data/spec/fixtures/ldiff/output.diff.four_lines.vs.empty-f +1 -0
  52. data/spec/fixtures/ldiff/output.diff.four_lines.vs.empty-u +7 -0
  53. data/spec/fixtures/ldiff/output.diff.issue95_trailing_context +4 -0
  54. data/spec/fixtures/ldiff/output.diff.issue95_trailing_context-c +9 -0
  55. data/spec/fixtures/ldiff/output.diff.issue95_trailing_context-e +3 -0
  56. data/spec/fixtures/ldiff/output.diff.issue95_trailing_context-f +3 -0
  57. data/spec/fixtures/ldiff/output.diff.issue95_trailing_context-u +6 -0
  58. data/spec/fixtures/ldiff/output.diff.missing_new_line1 +5 -0
  59. data/spec/fixtures/ldiff/output.diff.missing_new_line1-c +14 -0
  60. data/spec/fixtures/ldiff/output.diff.missing_new_line1-e +0 -0
  61. data/spec/fixtures/ldiff/output.diff.missing_new_line1-f +0 -0
  62. data/spec/fixtures/ldiff/output.diff.missing_new_line1-u +9 -0
  63. data/spec/fixtures/ldiff/output.diff.missing_new_line2 +5 -0
  64. data/spec/fixtures/ldiff/output.diff.missing_new_line2-c +14 -0
  65. data/spec/fixtures/ldiff/output.diff.missing_new_line2-e +0 -0
  66. data/spec/fixtures/ldiff/output.diff.missing_new_line2-f +0 -0
  67. data/spec/fixtures/ldiff/output.diff.missing_new_line2-u +9 -0
  68. data/spec/spec_helper.rb +93 -93
  69. metadata +67 -63
  70. data/Contributing.md +0 -74
@@ -0,0 +1,7 @@
1
+ --- spec/fixtures/empty 2025-01-31 12:14:52.856031635 +0100
2
+ +++ spec/fixtures/four_lines 2025-01-31 12:13:45.476036544 +0100
3
+ @@ -0,0 +1,4 @@
4
+ +one
5
+ +two
6
+ +three
7
+ +four
@@ -0,0 +1,5 @@
1
+ 1,4d0
2
+ < one
3
+ < two
4
+ < three
5
+ < four
@@ -0,0 +1,9 @@
1
+ *** spec/fixtures/four_lines 2025-01-31 12:13:45.476036544 +0100
2
+ --- spec/fixtures/empty 2025-01-31 12:14:52.856031635 +0100
3
+ ***************
4
+ *** 1,4 ****
5
+ - one
6
+ - two
7
+ - three
8
+ - four
9
+ --- 0 ----
@@ -0,0 +1,7 @@
1
+ --- spec/fixtures/four_lines 2025-01-31 12:13:45.476036544 +0100
2
+ +++ spec/fixtures/empty 2025-01-31 12:14:52.856031635 +0100
3
+ @@ -1,4 +0,0 @@
4
+ -one
5
+ -two
6
+ -three
7
+ -four
@@ -0,0 +1,4 @@
1
+ 1c1
2
+ < 123
3
+ ---
4
+ > 456
@@ -0,0 +1,9 @@
1
+ *** spec/fixtures/123_x 2025-01-31 17:00:17.070615716 +0100
2
+ --- spec/fixtures/456_x 2025-01-31 16:58:26.380624827 +0100
3
+ ***************
4
+ *** 1,2 ****
5
+ ! 123
6
+ x
7
+ --- 1,2 ----
8
+ ! 456
9
+ x
@@ -0,0 +1,6 @@
1
+ --- spec/fixtures/123_x 2025-01-31 17:00:17.070615716 +0100
2
+ +++ spec/fixtures/456_x 2025-01-31 16:58:26.380624827 +0100
3
+ @@ -1,2 +1,2 @@
4
+ -123
5
+ +456
6
+ x
@@ -0,0 +1,5 @@
1
+ 4c4
2
+ < four
3
+ ---
4
+ > four
5
+
@@ -0,0 +1,14 @@
1
+ *** spec/fixtures/four_lines 2025-01-31 12:17:43.926013315 +0100
2
+ --- spec/fixtures/four_lines_with_missing_new_line 2025-01-31 12:17:43.926013315 +0100
3
+ ***************
4
+ *** 1,4 ****
5
+ one
6
+ two
7
+ three
8
+ ! four
9
+ --- 1,4 ----
10
+ one
11
+ two
12
+ three
13
+ ! four
14
+
@@ -0,0 +1,9 @@
1
+ --- spec/fixtures/four_lines 2025-01-31 12:17:43.926013315 +0100
2
+ +++ spec/fixtures/four_lines_with_missing_new_line 2025-01-31 12:17:43.926013315 +0100
3
+ @@ -1,4 +1,4 @@
4
+ one
5
+ two
6
+ three
7
+ -four
8
+ +four
9
+
@@ -0,0 +1,5 @@
1
+ 4c4
2
+ < four
3
+
4
+ ---
5
+ > four
@@ -0,0 +1,14 @@
1
+ *** spec/fixtures/four_lines_with_missing_new_line 2025-01-31 12:17:43.926013315 +0100
2
+ --- spec/fixtures/four_lines 2025-01-31 12:17:43.926013315 +0100
3
+ ***************
4
+ *** 1,4 ****
5
+ one
6
+ two
7
+ three
8
+ ! four
9
+
10
+ --- 1,4 ----
11
+ one
12
+ two
13
+ three
14
+ ! four
@@ -0,0 +1,9 @@
1
+ --- spec/fixtures/four_lines_with_missing_new_line 2025-01-31 12:17:43.926013315 +0100
2
+ +++ spec/fixtures/four_lines 2025-01-31 12:17:43.926013315 +0100
3
+ @@ -1,4 +1,4 @@
4
+ one
5
+ two
6
+ three
7
+ -four
8
+
9
+ +four
data/spec/spec_helper.rb CHANGED
@@ -7,28 +7,21 @@ require "psych" if RUBY_VERSION >= "1.9"
7
7
 
8
8
  if ENV["COVERAGE"]
9
9
  require "simplecov"
10
+ require "simplecov-lcov"
10
11
 
11
- def require_do(resource)
12
- require resource
13
- yield if block_given?
14
- rescue LoadError
15
- nil
12
+ SimpleCov::Formatter::LcovFormatter.config do |config|
13
+ config.report_with_single_file = true
14
+ config.lcov_file_name = "lcov.info"
16
15
  end
17
16
 
18
- formatters = [SimpleCov::Formatter::HTMLFormatter]
19
-
20
- require_do("simplecov-rcov") {
21
- formatters << SimpleCov::Formatter::RcovFormatter
22
- }
23
- require_do("simplecov-vim/formatter") {
24
- formatters << SimpleCov::Formatter::VimFormatter
25
- }
26
- require_do("simplecov-sublime-ruby-coverage") {
27
- formatters << SimpleCov::Formatter::SublimeRubyCoverageFormatter
28
- }
29
-
30
- SimpleCov.start do
31
- formatter SimpleCov::Formatter::MultiFormatter.new(formatters)
17
+ SimpleCov.start "test_frameworks" do
18
+ enable_coverage :branch
19
+ primary_coverage :branch
20
+ formatter SimpleCov::Formatter::MultiFormatter.new([
21
+ SimpleCov::Formatter::HTMLFormatter,
22
+ SimpleCov::Formatter::LcovFormatter,
23
+ SimpleCov::Formatter::SimpleFormatter
24
+ ])
32
25
  end
33
26
  end
34
27
 
@@ -250,100 +243,107 @@ module Diff::LCS::SpecHelper
250
243
  new_result
251
244
  end
252
245
 
253
- def simple_callback
254
- callbacks = Object.new
255
- class << callbacks
256
- attr_reader :matched_a
257
- attr_reader :matched_b
258
- attr_reader :discards_a
259
- attr_reader :discards_b
260
- attr_reader :done_a
261
- attr_reader :done_b
262
-
263
- def reset
264
- @matched_a = []
265
- @matched_b = []
266
- @discards_a = []
267
- @discards_b = []
268
- @done_a = []
269
- @done_b = []
270
- end
246
+ class SimpleCallback
247
+ def initialize
248
+ reset
249
+ end
271
250
 
272
- def match(event)
273
- @matched_a << event.old_element
274
- @matched_b << event.new_element
275
- end
251
+ attr_reader :matched_a
252
+ attr_reader :matched_b
253
+ attr_reader :discards_a
254
+ attr_reader :discards_b
255
+ attr_reader :done_a
256
+ attr_reader :done_b
257
+
258
+ def reset
259
+ @matched_a = []
260
+ @matched_b = []
261
+ @discards_a = []
262
+ @discards_b = []
263
+ @done_a = []
264
+ @done_b = []
265
+ self
266
+ end
276
267
 
277
- def discard_b(event)
278
- @discards_b << event.new_element
279
- end
268
+ def match(event)
269
+ @matched_a << event.old_element
270
+ @matched_b << event.new_element
271
+ end
280
272
 
281
- def discard_a(event)
282
- @discards_a << event.old_element
283
- end
273
+ def discard_b(event)
274
+ @discards_b << event.new_element
275
+ end
284
276
 
285
- def finished_a(event)
286
- @done_a << [
287
- event.old_element, event.old_position,
288
- event.new_element, event.new_position
289
- ]
290
- end
277
+ def discard_a(event)
278
+ @discards_a << event.old_element
279
+ end
291
280
 
292
- def finished_b(event)
293
- @done_b << [
294
- event.old_element, event.old_position,
295
- event.new_element, event.new_position
296
- ]
297
- end
281
+ def finished_a(event)
282
+ @done_a << [
283
+ event.old_element, event.old_position,
284
+ event.new_element, event.new_position
285
+ ]
286
+ end
287
+
288
+ def finished_b(event)
289
+ @done_b << [
290
+ event.old_element, event.old_position,
291
+ event.new_element, event.new_position
292
+ ]
298
293
  end
299
- callbacks.reset
300
- callbacks
294
+ end
295
+
296
+ def simple_callback
297
+ SimpleCallback.new
298
+ end
299
+
300
+ class SimpleCallbackNoFinishers < SimpleCallback
301
+ undef :finished_a
302
+ undef :finished_b
301
303
  end
302
304
 
303
305
  def simple_callback_no_finishers
304
- simple = simple_callback
305
- class << simple
306
- undef :finished_a
307
- undef :finished_b
308
- end
309
- simple
306
+ SimpleCallbackNoFinishers.new
310
307
  end
311
308
 
312
- def balanced_callback
313
- cb = Object.new
314
- class << cb
315
- attr_reader :result
309
+ class BalancedCallback
310
+ def initialize
311
+ reset
312
+ end
316
313
 
317
- def reset
318
- @result = []
319
- end
314
+ attr_reader :result
320
315
 
321
- def match(event)
322
- @result << ["=", event.old_position, event.new_position]
323
- end
316
+ def reset
317
+ @result = []
318
+ end
324
319
 
325
- def discard_a(event)
326
- @result << ["<", event.old_position, event.new_position]
327
- end
320
+ def match(event)
321
+ @result << ["=", event.old_position, event.new_position]
322
+ end
328
323
 
329
- def discard_b(event)
330
- @result << [">", event.old_position, event.new_position]
331
- end
324
+ def discard_a(event)
325
+ @result << ["<", event.old_position, event.new_position]
326
+ end
332
327
 
333
- def change(event)
334
- @result << ["!", event.old_position, event.new_position]
335
- end
328
+ def discard_b(event)
329
+ @result << [">", event.old_position, event.new_position]
336
330
  end
337
- cb.reset
338
- cb
331
+
332
+ def change(event)
333
+ @result << ["!", event.old_position, event.new_position]
334
+ end
335
+ end
336
+
337
+ def balanced_callback
338
+ BalancedCallback.new
339
+ end
340
+
341
+ class BalancedCallbackNoChange < BalancedCallback
342
+ undef :change
339
343
  end
340
344
 
341
345
  def balanced_callback_no_change
342
- balanced = balanced_callback
343
- class << balanced
344
- undef :change
345
- end
346
- balanced
346
+ BalancedCallbackNoChange.new
347
347
  end
348
348
 
349
349
  module Matchers
metadata CHANGED
@@ -1,77 +1,42 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diff-lcs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Ziegler
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-02-13 00:00:00.000000000 Z
10
+ date: 2025-05-12 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: hoe
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '3.0'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '5'
23
- type: :development
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: '3.0'
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '5'
33
- - !ruby/object:Gem::Dependency
34
- name: hoe-doofus
35
14
  requirement: !ruby/object:Gem::Requirement
36
15
  requirements:
37
16
  - - "~>"
38
17
  - !ruby/object:Gem::Version
39
- version: '1.0'
18
+ version: '4.0'
40
19
  type: :development
41
20
  prerelease: false
42
21
  version_requirements: !ruby/object:Gem::Requirement
43
22
  requirements:
44
23
  - - "~>"
45
24
  - !ruby/object:Gem::Version
46
- version: '1.0'
25
+ version: '4.0'
47
26
  - !ruby/object:Gem::Dependency
48
- name: hoe-gemspec2
27
+ name: hoe-halostatue
49
28
  requirement: !ruby/object:Gem::Requirement
50
29
  requirements:
51
30
  - - "~>"
52
31
  - !ruby/object:Gem::Version
53
- version: '1.1'
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - "~>"
59
- - !ruby/object:Gem::Version
60
- version: '1.1'
61
- - !ruby/object:Gem::Dependency
62
- name: hoe-git2
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '1.7'
32
+ version: '2.0'
68
33
  type: :development
69
34
  prerelease: false
70
35
  version_requirements: !ruby/object:Gem::Requirement
71
36
  requirements:
72
37
  - - "~>"
73
38
  - !ruby/object:Gem::Version
74
- version: '1.7'
39
+ version: '2.0'
75
40
  - !ruby/object:Gem::Dependency
76
41
  name: hoe-rubygems
77
42
  requirement: !ruby/object:Gem::Requirement
@@ -146,26 +111,12 @@ dependencies:
146
111
  - - "<"
147
112
  - !ruby/object:Gem::Version
148
113
  version: '7'
149
- - !ruby/object:Gem::Dependency
150
- name: simplecov
151
- requirement: !ruby/object:Gem::Requirement
152
- requirements:
153
- - - "~>"
154
- - !ruby/object:Gem::Version
155
- version: '0.21'
156
- type: :development
157
- prerelease: false
158
- version_requirements: !ruby/object:Gem::Requirement
159
- requirements:
160
- - - "~>"
161
- - !ruby/object:Gem::Version
162
- version: '0.21'
163
114
  description: |-
164
115
  Diff::LCS computes the difference between two Enumerable sequences using the
165
116
  McIlroy-Hunt longest common subsequence (LCS) algorithm. It includes utilities
166
117
  to create a simple HTML diff output format and a standard diff-like tool.
167
118
 
168
- This is release 1.4.3, providing a simple extension that allows for
119
+ This is release 1.6.1, providing a simple extension that allows for
169
120
  Diff::LCS::Change objects to be treated implicitly as arrays and fixes a number
170
121
  of formatting issues.
171
122
 
@@ -185,7 +136,6 @@ extra_rdoc_files:
185
136
  - CODE_OF_CONDUCT.md
186
137
  - CONTRIBUTING.md
187
138
  - CONTRIBUTORS.md
188
- - Contributing.md
189
139
  - LICENCE.md
190
140
  - Manifest.txt
191
141
  - README.md
@@ -198,7 +148,6 @@ files:
198
148
  - CODE_OF_CONDUCT.md
199
149
  - CONTRIBUTING.md
200
150
  - CONTRIBUTORS.md
201
- - Contributing.md
202
151
  - LICENCE.md
203
152
  - Manifest.txt
204
153
  - README.md
@@ -220,17 +169,46 @@ files:
220
169
  - lib/diff/lcs/internals.rb
221
170
  - lib/diff/lcs/ldiff.rb
222
171
  - lib/diff/lcs/string.rb
172
+ - lib/diff/lcs/version.rb
173
+ - mise.toml
223
174
  - spec/change_spec.rb
224
175
  - spec/diff_spec.rb
176
+ - spec/fixtures/123_x
177
+ - spec/fixtures/456_x
225
178
  - spec/fixtures/aX
226
179
  - spec/fixtures/bXaX
227
180
  - spec/fixtures/ds1.csv
228
181
  - spec/fixtures/ds2.csv
182
+ - spec/fixtures/empty
183
+ - spec/fixtures/file1.bin
184
+ - spec/fixtures/file2.bin
185
+ - spec/fixtures/four_lines
186
+ - spec/fixtures/four_lines_with_missing_new_line
187
+ - spec/fixtures/ldiff/diff.missing_new_line1-e
188
+ - spec/fixtures/ldiff/diff.missing_new_line1-f
189
+ - spec/fixtures/ldiff/diff.missing_new_line2-e
190
+ - spec/fixtures/ldiff/diff.missing_new_line2-f
191
+ - spec/fixtures/ldiff/error.diff.chef-e
192
+ - spec/fixtures/ldiff/error.diff.chef-f
193
+ - spec/fixtures/ldiff/error.diff.missing_new_line1-e
194
+ - spec/fixtures/ldiff/error.diff.missing_new_line1-f
195
+ - spec/fixtures/ldiff/error.diff.missing_new_line2-e
196
+ - spec/fixtures/ldiff/error.diff.missing_new_line2-f
229
197
  - spec/fixtures/ldiff/output.diff
230
198
  - spec/fixtures/ldiff/output.diff-c
231
199
  - spec/fixtures/ldiff/output.diff-e
232
200
  - spec/fixtures/ldiff/output.diff-f
233
201
  - spec/fixtures/ldiff/output.diff-u
202
+ - spec/fixtures/ldiff/output.diff.bin1
203
+ - spec/fixtures/ldiff/output.diff.bin1-c
204
+ - spec/fixtures/ldiff/output.diff.bin1-e
205
+ - spec/fixtures/ldiff/output.diff.bin1-f
206
+ - spec/fixtures/ldiff/output.diff.bin1-u
207
+ - spec/fixtures/ldiff/output.diff.bin2
208
+ - spec/fixtures/ldiff/output.diff.bin2-c
209
+ - spec/fixtures/ldiff/output.diff.bin2-e
210
+ - spec/fixtures/ldiff/output.diff.bin2-f
211
+ - spec/fixtures/ldiff/output.diff.bin2-u
234
212
  - spec/fixtures/ldiff/output.diff.chef
235
213
  - spec/fixtures/ldiff/output.diff.chef-c
236
214
  - spec/fixtures/ldiff/output.diff.chef-e
@@ -242,6 +220,31 @@ files:
242
220
  - spec/fixtures/ldiff/output.diff.chef2-e
243
221
  - spec/fixtures/ldiff/output.diff.chef2-f
244
222
  - spec/fixtures/ldiff/output.diff.chef2-u
223
+ - spec/fixtures/ldiff/output.diff.empty.vs.four_lines
224
+ - spec/fixtures/ldiff/output.diff.empty.vs.four_lines-c
225
+ - spec/fixtures/ldiff/output.diff.empty.vs.four_lines-e
226
+ - spec/fixtures/ldiff/output.diff.empty.vs.four_lines-f
227
+ - spec/fixtures/ldiff/output.diff.empty.vs.four_lines-u
228
+ - spec/fixtures/ldiff/output.diff.four_lines.vs.empty
229
+ - spec/fixtures/ldiff/output.diff.four_lines.vs.empty-c
230
+ - spec/fixtures/ldiff/output.diff.four_lines.vs.empty-e
231
+ - spec/fixtures/ldiff/output.diff.four_lines.vs.empty-f
232
+ - spec/fixtures/ldiff/output.diff.four_lines.vs.empty-u
233
+ - spec/fixtures/ldiff/output.diff.issue95_trailing_context
234
+ - spec/fixtures/ldiff/output.diff.issue95_trailing_context-c
235
+ - spec/fixtures/ldiff/output.diff.issue95_trailing_context-e
236
+ - spec/fixtures/ldiff/output.diff.issue95_trailing_context-f
237
+ - spec/fixtures/ldiff/output.diff.issue95_trailing_context-u
238
+ - spec/fixtures/ldiff/output.diff.missing_new_line1
239
+ - spec/fixtures/ldiff/output.diff.missing_new_line1-c
240
+ - spec/fixtures/ldiff/output.diff.missing_new_line1-e
241
+ - spec/fixtures/ldiff/output.diff.missing_new_line1-f
242
+ - spec/fixtures/ldiff/output.diff.missing_new_line1-u
243
+ - spec/fixtures/ldiff/output.diff.missing_new_line2
244
+ - spec/fixtures/ldiff/output.diff.missing_new_line2-c
245
+ - spec/fixtures/ldiff/output.diff.missing_new_line2-e
246
+ - spec/fixtures/ldiff/output.diff.missing_new_line2-f
247
+ - spec/fixtures/ldiff/output.diff.missing_new_line2-u
245
248
  - spec/fixtures/new-chef
246
249
  - spec/fixtures/new-chef2
247
250
  - spec/fixtures/old-chef
@@ -261,9 +264,11 @@ licenses:
261
264
  - Artistic-1.0-Perl
262
265
  - GPL-2.0-or-later
263
266
  metadata:
264
- rubygems_mfa_required: 'true'
267
+ homepage_uri: https://github.com/halostatue/diff-lcs
265
268
  changelog_uri: https://github.com/halostatue/diff-lcs/blob/main/CHANGELOG.md
266
- post_install_message:
269
+ source_code_uri: https://github.com/halostatue/diff-lcs
270
+ bug_tracker_uri: https://github.com/halostatue/diff-lcs/issues
271
+ rubygems_mfa_required: 'true'
267
272
  rdoc_options:
268
273
  - "--main"
269
274
  - README.md
@@ -280,8 +285,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
280
285
  - !ruby/object:Gem::Version
281
286
  version: '0'
282
287
  requirements: []
283
- rubygems_version: 3.5.22
284
- signing_key:
288
+ rubygems_version: 3.6.6
285
289
  specification_version: 4
286
290
  summary: Diff::LCS computes the difference between two Enumerable sequences using
287
291
  the McIlroy-Hunt longest common subsequence (LCS) algorithm
data/Contributing.md DELETED
@@ -1,74 +0,0 @@
1
- # Contributing
2
-
3
- Contribution to diff-lcs is encouraged in any form: a bug report, a feature
4
- request, or code contributions. There are a few DOs and DON'Ts for
5
-
6
- - DO:
7
-
8
- - Keep the coding style that already exists for any updated Ruby code (support
9
- or otherwise). I use [Standard Ruby][standardrb] for linting and formatting.
10
-
11
- - Use thoughtfully-named topic branches for contributions. Rebase your commits
12
- into logical chunks as necessary.
13
-
14
- - Use [quality commit messages][qcm].
15
-
16
- - Add your name or GitHub handle to `CONTRIBUTORS.md` and a record in the
17
- `CHANGELOG.md` as a separate commit from your main change. (Follow the style
18
- in the `CHANGELOG.md` and provide a link to your PR.)
19
-
20
- - Add or update tests, written in [RSpec][rspec], as appropriate.
21
-
22
- - Add or update documentation, as appropriate.
23
-
24
- - DO NOT:
25
-
26
- - Modify `VERSION` in `lib/diff/lcs.rb`. When your patch is accepted and a
27
- release is made, the version will be updated at that point.
28
-
29
- - Modify `diff-lcs.gemspect`; it is a generated file. (You _may_ use
30
- `rake gemspec` to regenerate it if your change involves metadata related to
31
- gem itself).
32
-
33
- - Modify the `Gemfile`.
34
-
35
- ## Test Dependencies
36
-
37
- diff-lcs uses Ryan Davis's [Hoe][Hoe] to manage the release process, and it adds
38
- a number of rake tasks. You will mostly be interested in `rake`, which runs
39
- tests in the same way that `rake spec` does.
40
-
41
- To assist with the installation of the development dependencies for diff-lcs, I
42
- have provided a Gemfile pointing to the (generated) `diff-lcs.gemspec` file.
43
- `minitar.gemspec` file. This will permit you to use `bundle install` to install
44
- the dependencies.
45
-
46
- You can run tests with code coverage analysis by running `rake spec:coverage`.
47
-
48
- ## Workflow
49
-
50
- Here's the most direct way to get your work merged into the project:
51
-
52
- - Fork the project.
53
- - Clone your fork (`git clone git://github.com/<username>/diff-lcs.git`).
54
- - Create a topic branch to contain your change
55
- (`git checkout -b my_awesome_feature`).
56
- - Hack away, add tests. Not necessarily in that order.
57
- - Make sure everything still passes by running `rake`.
58
- - If necessary, rebase your commits into logical chunks, without errors.
59
- - Push the branch up (`git push origin my_awesome_feature`).
60
- - Create a pull request against halostatue/diff-lcs and describe what your
61
- change does and the why you think it should be merged.
62
-
63
- ### Help Wanted
64
-
65
- I want to automated the releases. I am **not** switching from Hoe for release
66
- management, so the use of [rubygems/release-gem][release-gem] requires some care
67
- (perhaps by exporting `VERSION=$(rake version)` to the job), but assistance in
68
- getting this action going for an automated release would be greatly appreciated.
69
-
70
- [hoe]: https://github.com/seattlerb/hoe
71
- [qcm]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
72
- [release-gem]: https://github.com/rubygems/release-gem
73
- [rspec]: http://rspec.info/documentation/
74
- [standardrb]: https://github.com/standardrb/standard