repeatable 1.2.0 → 1.2.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.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +19 -23
  3. data/.ruby-version +1 -0
  4. data/.yardopts +1 -0
  5. data/CHANGELOG.md +16 -2
  6. data/Gemfile +1 -0
  7. data/Gemfile.lock +86 -73
  8. data/README.md +8 -5
  9. data/lib/repeatable/expression/date.rb +1 -0
  10. data/lib/repeatable/expression/range_in_year.rb +2 -0
  11. data/lib/repeatable/version.rb +1 -1
  12. data/rbi/repeatable.rbi +1 -1
  13. data/sorbet/rbi/gems/{ast@2.4.2.rbi → ast@2.4.3.rbi} +3 -3
  14. data/sorbet/rbi/gems/benchmark@0.4.1.rbi +619 -0
  15. data/sorbet/rbi/gems/{commander@4.6.0.rbi → commander@5.0.0.rbi} +1 -0
  16. data/sorbet/rbi/gems/{diff-lcs@1.4.4.rbi → diff-lcs@1.6.2.rbi} +135 -83
  17. data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +25 -15
  18. data/sorbet/rbi/gems/{highline@2.0.3.rbi → highline@3.0.1.rbi} +1 -0
  19. data/sorbet/rbi/gems/{json@2.7.2.rbi → json@2.13.2.rbi} +759 -233
  20. data/sorbet/rbi/gems/{language_server-protocol@3.17.0.3.rbi → language_server-protocol@3.17.0.5.rbi} +11 -5
  21. data/sorbet/rbi/gems/logger@1.7.0.rbi +963 -0
  22. data/sorbet/rbi/gems/{method_source@1.0.0.rbi → method_source@1.1.0.rbi} +41 -9
  23. data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.27.0.rbi} +32 -21
  24. data/sorbet/rbi/gems/{parlour@8.1.0.rbi → parlour@9.1.2.rbi} +86 -68
  25. data/sorbet/rbi/gems/{parser@3.3.1.0.rbi → parser@3.3.9.0.rbi} +908 -891
  26. data/sorbet/rbi/gems/{prism@0.28.0.rbi → prism@1.4.0.rbi} +14078 -10249
  27. data/sorbet/rbi/gems/{pry@0.14.0.rbi → pry@0.15.2.rbi} +437 -244
  28. data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.rbi} +36 -33
  29. data/sorbet/rbi/gems/{rake@13.0.3.rbi → rake@13.3.0.rbi} +83 -76
  30. data/sorbet/rbi/gems/rbi@0.3.6.rbi +6893 -0
  31. data/sorbet/rbi/gems/rbs@3.9.5.rbi +6976 -0
  32. data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.11.2.rbi} +1089 -1015
  33. data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.4.3.rbi} +833 -329
  34. data/sorbet/rbi/gems/{rspec-core@3.10.1.rbi → rspec-core@3.13.5.rbi} +1014 -613
  35. data/sorbet/rbi/gems/{rspec-expectations@3.10.1.rbi → rspec-expectations@3.13.5.rbi} +897 -638
  36. data/sorbet/rbi/gems/{rspec-mocks@3.10.2.rbi → rspec-mocks@3.13.5.rbi} +547 -444
  37. data/sorbet/rbi/gems/{rspec-support@3.10.2.rbi → rspec-support@3.13.5.rbi} +337 -304
  38. data/sorbet/rbi/gems/rspec@3.13.1.rbi +83 -0
  39. data/sorbet/rbi/gems/{rubocop-ast@1.31.3.rbi → rubocop-ast@1.46.0.rbi} +1678 -958
  40. data/sorbet/rbi/gems/{rubocop-performance@1.20.2.rbi → rubocop-performance@1.25.0.rbi} +1 -0
  41. data/sorbet/rbi/gems/{rubocop@1.62.1.rbi → rubocop@1.80.2.rbi} +11243 -5431
  42. data/sorbet/rbi/gems/simplecov-html@0.13.2.rbi +225 -0
  43. data/sorbet/rbi/gems/{simplecov@0.21.2.rbi → simplecov@0.22.0.rbi} +39 -25
  44. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +233 -2
  45. data/sorbet/rbi/gems/spoom@1.6.3.rbi +6985 -0
  46. data/sorbet/rbi/gems/{standard-performance@1.3.1.rbi → standard-performance@1.8.0.rbi} +1 -0
  47. data/sorbet/rbi/gems/{standard@1.35.1.rbi → standard@1.51.0.rbi} +181 -96
  48. data/sorbet/rbi/gems/{tapioca@0.13.3.rbi → tapioca@0.16.11.rbi} +489 -388
  49. data/sorbet/rbi/gems/{thor@1.3.1.rbi → thor@1.4.0.rbi} +94 -46
  50. data/sorbet/rbi/gems/unicode-display_width@3.2.0.rbi +132 -0
  51. data/sorbet/rbi/gems/unicode-emoji@4.1.0.rbi +251 -0
  52. data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
  53. data/sorbet/rbi/gems/{yard@0.9.36.rbi → yard@0.9.37.rbi} +394 -236
  54. metadata +46 -40
  55. data/sorbet/rbi/gems/rbi@0.1.13.rbi +0 -3071
  56. data/sorbet/rbi/gems/rspec@3.10.0.rbi +0 -76
  57. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -216
  58. data/sorbet/rbi/gems/spoom@1.3.2.rbi +0 -4420
  59. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
  60. /data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +0 -0
@@ -4,14 +4,62 @@
4
4
  # This is an autogenerated file for types exported from the `diff-lcs` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem diff-lcs`.
6
6
 
7
+
7
8
  # source://diff-lcs//lib/diff/lcs.rb#3
8
9
  module Diff; end
9
10
 
11
+ # == How Diff Works (by Mark-Jason Dominus)
12
+ #
13
+ # I once read an article written by the authors of +diff+; they said that they
14
+ # hard worked very hard on the algorithm until they found the right one.
15
+ #
16
+ # I think what they ended up using (and I hope someone will correct me, because
17
+ # I am not very confident about this) was the `longest common subsequence'
18
+ # method. In the LCS problem, you have two sequences of items:
19
+ #
20
+ # a b c d f g h j q z
21
+ # a b c d e f g i j k r x y z
22
+ #
23
+ # and you want to find the longest sequence of items that is present in both
24
+ # original sequences in the same order. That is, you want to find a new
25
+ # sequence *S* which can be obtained from the first sequence by deleting some
26
+ # items, and from the second sequence by deleting other items. You also want
27
+ # *S* to be as long as possible. In this case *S* is:
28
+ #
29
+ # a b c d f g j z
30
+ #
31
+ # From there it's only a small step to get diff-like output:
32
+ #
33
+ # e h i k q r x y
34
+ # + - + + - + + +
35
+ #
36
+ # This module solves the LCS problem. It also includes a canned function to
37
+ # generate +diff+-like output.
38
+ #
39
+ # It might seem from the example above that the LCS of two sequences is always
40
+ # pretty obvious, but that's not always the case, especially when the two
41
+ # sequences have many repeated elements. For example, consider
42
+ #
43
+ # a x b y c z p d q
44
+ # a b c a x b y c z
45
+ #
46
+ # A naive approach might start by matching up the +a+ and +b+ that appear at
47
+ # the beginning of each sequence, like this:
48
+ #
49
+ # a x b y c z p d q
50
+ # a b c a b y c z
51
+ #
52
+ # This finds the common subsequence +a b c z+. But actually, the LCS is +a x b
53
+ # y c z+:
54
+ #
55
+ # a x b y c z p d q
56
+ # a b c a x b y c z
57
+ #
10
58
  # source://diff-lcs//lib/diff/lcs.rb#51
11
59
  module Diff::LCS
12
60
  # Returns the difference set between +self+ and +other+. See Diff::LCS#diff.
13
61
  #
14
- # source://diff-lcs//lib/diff/lcs.rb#75
62
+ # source://diff-lcs//lib/diff/lcs.rb#76
15
63
  def diff(other, callbacks = T.unsafe(nil), &block); end
16
64
 
17
65
  # Returns an Array containing the longest common subsequence(s) between
@@ -20,80 +68,81 @@ module Diff::LCS
20
68
  # lcs = seq1.lcs(seq2)
21
69
  #
22
70
  # A note when using objects: Diff::LCS only works properly when each object
23
- # can be used as a key in a Hash, which typically means that the objects must
24
- # implement Object#eql? in a way that two identical values compare
25
- # identically for key purposes. That is:
71
+ # can be used as a key in a Hash. This means that those objects must implement
72
+ # the methods +#hash+ and +#eql?+ such that two objects containing identical values
73
+ # compare identically for key purposes. That is:
26
74
  #
27
- # O.new('a').eql?(O.new('a')) == true
75
+ # O.new('a').eql?(O.new('a')) == true &&
76
+ # O.new('a').hash == O.new('a').hash
28
77
  #
29
- # source://diff-lcs//lib/diff/lcs.rb#70
78
+ # source://diff-lcs//lib/diff/lcs.rb#71
30
79
  def lcs(other, &block); end
31
80
 
32
81
  # Attempts to patch +self+ with the provided +patchset+. A new sequence based
33
82
  # on +self+ and the +patchset+ will be created. See Diff::LCS#patch. Attempts
34
83
  # to autodiscover the direction of the patch.
35
84
  #
36
- # source://diff-lcs//lib/diff/lcs.rb#101
85
+ # source://diff-lcs//lib/diff/lcs.rb#102
37
86
  def patch(patchset); end
38
87
 
39
88
  # Attempts to patch +self+ with the provided +patchset+. A new sequence based
40
89
  # on +self+ and the +patchset+ will be created. See Diff::LCS#patch. Does no
41
90
  # patch direction autodiscovery.
42
91
  #
43
- # source://diff-lcs//lib/diff/lcs.rb#109
92
+ # source://diff-lcs//lib/diff/lcs.rb#110
44
93
  def patch!(patchset); end
45
94
 
46
95
  # Attempts to patch +self+ with the provided +patchset+, using #patch!. If
47
96
  # the sequence this is used on supports #replace, the value of +self+ will be
48
97
  # replaced. See Diff::LCS#patch. Does no patch direction autodiscovery.
49
98
  #
50
- # source://diff-lcs//lib/diff/lcs.rb#123
99
+ # source://diff-lcs//lib/diff/lcs.rb#124
51
100
  def patch_me(patchset); end
52
101
 
53
102
  # Returns the balanced ("side-by-side") difference set between +self+ and
54
103
  # +other+. See Diff::LCS#sdiff.
55
104
  #
56
- # source://diff-lcs//lib/diff/lcs.rb#81
105
+ # source://diff-lcs//lib/diff/lcs.rb#82
57
106
  def sdiff(other, callbacks = T.unsafe(nil), &block); end
58
107
 
59
108
  # Traverses the discovered longest common subsequences between +self+ and
60
109
  # +other+ using the alternate, balanced algorithm. See
61
110
  # Diff::LCS#traverse_balanced.
62
111
  #
63
- # source://diff-lcs//lib/diff/lcs.rb#94
112
+ # source://diff-lcs//lib/diff/lcs.rb#95
64
113
  def traverse_balanced(other, callbacks = T.unsafe(nil), &block); end
65
114
 
66
115
  # Traverses the discovered longest common subsequences between +self+ and
67
116
  # +other+. See Diff::LCS#traverse_sequences.
68
117
  #
69
- # source://diff-lcs//lib/diff/lcs.rb#87
118
+ # source://diff-lcs//lib/diff/lcs.rb#88
70
119
  def traverse_sequences(other, callbacks = T.unsafe(nil), &block); end
71
120
 
72
121
  # Attempts to patch +self+ with the provided +patchset+. A new sequence based
73
122
  # on +self+ and the +patchset+ will be created. See Diff::LCS#patch. Attempts
74
123
  # to autodiscover the direction of the patch.
75
124
  #
76
- # source://diff-lcs//lib/diff/lcs.rb#101
125
+ # source://diff-lcs//lib/diff/lcs.rb#102
77
126
  def unpatch(patchset); end
78
127
 
79
128
  # Attempts to unpatch +self+ with the provided +patchset+. A new sequence
80
129
  # based on +self+ and the +patchset+ will be created. See Diff::LCS#unpatch.
81
130
  # Does no patch direction autodiscovery.
82
131
  #
83
- # source://diff-lcs//lib/diff/lcs.rb#116
132
+ # source://diff-lcs//lib/diff/lcs.rb#117
84
133
  def unpatch!(patchset); end
85
134
 
86
135
  # Attempts to unpatch +self+ with the provided +patchset+, using #unpatch!.
87
136
  # If the sequence this is used on supports #replace, the value of +self+ will
88
137
  # be replaced. See Diff::LCS#unpatch. Does no patch direction autodiscovery.
89
138
  #
90
- # source://diff-lcs//lib/diff/lcs.rb#134
139
+ # source://diff-lcs//lib/diff/lcs.rb#135
91
140
  def unpatch_me(patchset); end
92
141
 
93
142
  class << self
94
- # :yields seq1[i] for each matched:
143
+ # :yields: seq1[i] for each matched
95
144
  #
96
- # source://diff-lcs//lib/diff/lcs.rb#144
145
+ # source://diff-lcs//lib/diff/lcs.rb#145
97
146
  def LCS(seq1, seq2, &block); end
98
147
 
99
148
  # source://diff-lcs//lib/diff/lcs/callbacks.rb#52
@@ -109,12 +158,12 @@ module Diff::LCS
109
158
  # initialise it. If the +callbacks+ object (possibly initialised) responds to
110
159
  # #finish, it will be called.
111
160
  #
112
- # source://diff-lcs//lib/diff/lcs.rb#168
161
+ # source://diff-lcs//lib/diff/lcs.rb#169
113
162
  def diff(seq1, seq2, callbacks = T.unsafe(nil), &block); end
114
163
 
115
- # :yields seq1[i] for each matched:
164
+ # :yields: seq1[i] for each matched
116
165
  #
117
- # source://diff-lcs//lib/diff/lcs.rb#144
166
+ # source://diff-lcs//lib/diff/lcs.rb#145
118
167
  def lcs(seq1, seq2, &block); end
119
168
 
120
169
  # Applies a +patchset+ to the sequence +src+ according to the +direction+
@@ -158,13 +207,13 @@ module Diff::LCS
158
207
  # representations of those objects. Prior to application, array
159
208
  # representations of Diff::LCS::Change objects will be reified.
160
209
  #
161
- # source://diff-lcs//lib/diff/lcs.rb#624
210
+ # source://diff-lcs//lib/diff/lcs.rb#627
162
211
  def patch(src, patchset, direction = T.unsafe(nil)); end
163
212
 
164
213
  # Given a set of patchset, convert the current version to the next version.
165
214
  # Does no auto-discovery.
166
215
  #
167
- # source://diff-lcs//lib/diff/lcs.rb#734
216
+ # source://diff-lcs//lib/diff/lcs.rb#737
168
217
  def patch!(src, patchset); end
169
218
 
170
219
  # #sdiff computes all necessary components to show two sequences and their
@@ -196,7 +245,7 @@ module Diff::LCS
196
245
  # end
197
246
  # end
198
247
  #
199
- # source://diff-lcs//lib/diff/lcs.rb#200
248
+ # source://diff-lcs//lib/diff/lcs.rb#201
200
249
  def sdiff(seq1, seq2, callbacks = T.unsafe(nil), &block); end
201
250
 
202
251
  # #traverse_balanced is an alternative to #traverse_sequences. It uses a
@@ -229,7 +278,7 @@ module Diff::LCS
229
278
  # occurred.
230
279
  #
231
280
  # #traverse_balanced might be a bit slower than #traverse_sequences,
232
- # noticable only while processing huge amounts of data.
281
+ # noticeable only while processing huge amounts of data.
233
282
  #
234
283
  # == Algorithm
235
284
  #
@@ -273,7 +322,7 @@ module Diff::LCS
273
322
  # The methods for <tt>callbacks#match</tt>, <tt>callbacks#discard_a</tt>,
274
323
  # <tt>callbacks#discard_b</tt>, and <tt>callbacks#change</tt> are invoked
275
324
  # with an event comprising the action ("=", "+", "-", or "!", respectively),
276
- # the indicies +i+ and +j+, and the elements <tt>A[i]</tt> and <tt>B[j]</tt>.
325
+ # the indexes +i+ and +j+, and the elements <tt>A[i]</tt> and <tt>B[j]</tt>.
277
326
  # Return values are discarded by #traverse_balanced.
278
327
  #
279
328
  # === Context
@@ -281,7 +330,7 @@ module Diff::LCS
281
330
  # Note that +i+ and +j+ may not be the same index position, even if +a+ and
282
331
  # +b+ are considered to be pointing to matching or changed elements.
283
332
  #
284
- # source://diff-lcs//lib/diff/lcs.rb#475
333
+ # source://diff-lcs//lib/diff/lcs.rb#476
285
334
  def traverse_balanced(seq1, seq2, callbacks = T.unsafe(nil)); end
286
335
 
287
336
  # #traverse_sequences is the most general facility provided by this module;
@@ -333,12 +382,13 @@ module Diff::LCS
333
382
  # advance that arrow and will call <tt>callbacks#discard_a</tt> or
334
383
  # <tt>callbacks#discard_b</tt>, depending on which arrow it advanced. If both
335
384
  # arrows point to elements that are not part of the longest common
336
- # subsequence, then #traverse_sequences will advance one of them and call the
337
- # appropriate callback, but it is not specified which it will call.
385
+ # subsequence, then #traverse_sequences will advance arrow +a+ and call the
386
+ # appropriate callback, then it will advance arrow +b+ and call the appropriate
387
+ # callback.
338
388
  #
339
389
  # The methods for <tt>callbacks#match</tt>, <tt>callbacks#discard_a</tt>, and
340
390
  # <tt>callbacks#discard_b</tt> are invoked with an event comprising the
341
- # action ("=", "+", or "-", respectively), the indicies +i+ and +j+, and the
391
+ # action ("=", "+", or "-", respectively), the indexes +i+ and +j+, and the
342
392
  # elements <tt>A[i]</tt> and <tt>B[j]</tt>. Return values are discarded by
343
393
  # #traverse_sequences.
344
394
  #
@@ -365,13 +415,13 @@ module Diff::LCS
365
415
  # is reached, if +a+ has not yet reached the end of +A+ or +b+ has not yet
366
416
  # reached the end of +B+.
367
417
  #
368
- # source://diff-lcs//lib/diff/lcs.rb#284
418
+ # source://diff-lcs//lib/diff/lcs.rb#286
369
419
  def traverse_sequences(seq1, seq2, callbacks = T.unsafe(nil)); end
370
420
 
371
421
  # Given a set of patchset, convert the current version to the prior version.
372
422
  # Does no auto-discovery.
373
423
  #
374
- # source://diff-lcs//lib/diff/lcs.rb#728
424
+ # source://diff-lcs//lib/diff/lcs.rb#731
375
425
  def unpatch!(src, patchset); end
376
426
 
377
427
  private
@@ -506,6 +556,8 @@ class Diff::LCS::Change
506
556
  end
507
557
  end
508
558
 
559
+ # Fixnum is deprecated in Ruby 2.4 # standard:disable Naming/ConstantName
560
+ #
509
561
  # source://diff-lcs//lib/diff/lcs/change.rb#7
510
562
  Diff::LCS::Change::IntClass = Integer
511
563
 
@@ -648,15 +700,15 @@ end
648
700
  # require 'pp'
649
701
  # pp diffs.map { |e| e.map { |f| f.to_a } }
650
702
  #
651
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#223
703
+ # source://diff-lcs//lib/diff/lcs/callbacks.rb#225
652
704
  class Diff::LCS::ContextDiffCallbacks < ::Diff::LCS::DiffCallbacks
653
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#232
705
+ # source://diff-lcs//lib/diff/lcs/callbacks.rb#234
654
706
  def change(event); end
655
707
 
656
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#224
708
+ # source://diff-lcs//lib/diff/lcs/callbacks.rb#226
657
709
  def discard_a(event); end
658
710
 
659
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#228
711
+ # source://diff-lcs//lib/diff/lcs/callbacks.rb#230
660
712
  def discard_b(event); end
661
713
  end
662
714
 
@@ -748,38 +800,38 @@ end
748
800
  # require 'pp'
749
801
  # pp diffs.map { |e| e.map { |f| f.to_a } }
750
802
  #
751
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#106
803
+ # source://diff-lcs//lib/diff/lcs/callbacks.rb#108
752
804
  class Diff::LCS::DiffCallbacks
753
- # :yields self:
805
+ # :yields: self
754
806
  #
755
807
  # @return [DiffCallbacks] a new instance of DiffCallbacks
756
808
  #
757
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#110
809
+ # source://diff-lcs//lib/diff/lcs/callbacks.rb#112
758
810
  def initialize; end
759
811
 
760
812
  # Returns the difference set collected during the diff process.
761
813
  #
762
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#108
814
+ # source://diff-lcs//lib/diff/lcs/callbacks.rb#110
763
815
  def diffs; end
764
816
 
765
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#133
817
+ # source://diff-lcs//lib/diff/lcs/callbacks.rb#135
766
818
  def discard_a(event); end
767
819
 
768
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#137
820
+ # source://diff-lcs//lib/diff/lcs/callbacks.rb#139
769
821
  def discard_b(event); end
770
822
 
771
823
  # Finalizes the diff process. If an unprocessed hunk still exists, then it
772
824
  # is appended to the diff list.
773
825
  #
774
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#125
826
+ # source://diff-lcs//lib/diff/lcs/callbacks.rb#127
775
827
  def finish; end
776
828
 
777
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#129
829
+ # source://diff-lcs//lib/diff/lcs/callbacks.rb#131
778
830
  def match(_event); end
779
831
 
780
832
  private
781
833
 
782
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#141
834
+ # source://diff-lcs//lib/diff/lcs/callbacks.rb#143
783
835
  def finish_hunk; end
784
836
  end
785
837
 
@@ -799,48 +851,48 @@ class Diff::LCS::Hunk
799
851
 
800
852
  # Returns the value of attribute blocks.
801
853
  #
802
- # source://diff-lcs//lib/diff/lcs/hunk.rb#63
854
+ # source://diff-lcs//lib/diff/lcs/hunk.rb#64
803
855
  def blocks; end
804
856
 
805
857
  # Returns a diff string based on a format.
806
858
  #
807
- # source://diff-lcs//lib/diff/lcs/hunk.rb#116
859
+ # source://diff-lcs//lib/diff/lcs/hunk.rb#115
808
860
  def diff(format, last = T.unsafe(nil)); end
809
861
 
810
862
  # Returns the value of attribute end_new.
811
863
  #
812
- # source://diff-lcs//lib/diff/lcs/hunk.rb#65
864
+ # source://diff-lcs//lib/diff/lcs/hunk.rb#66
813
865
  def end_new; end
814
866
 
815
867
  # Returns the value of attribute end_old.
816
868
  #
817
- # source://diff-lcs//lib/diff/lcs/hunk.rb#65
869
+ # source://diff-lcs//lib/diff/lcs/hunk.rb#66
818
870
  def end_old; end
819
871
 
820
872
  # Returns the value of attribute file_length_difference.
821
873
  #
822
- # source://diff-lcs//lib/diff/lcs/hunk.rb#66
874
+ # source://diff-lcs//lib/diff/lcs/hunk.rb#67
823
875
  def file_length_difference; end
824
876
 
825
877
  # Change the "start" and "end" fields to note that context should be added
826
878
  # to this hunk.
827
879
  #
828
- # source://diff-lcs//lib/diff/lcs/hunk.rb#70
880
+ # source://diff-lcs//lib/diff/lcs/hunk.rb#71
829
881
  def flag_context; end
830
882
 
831
- # source://diff-lcs//lib/diff/lcs/hunk.rb#72
883
+ # source://diff-lcs//lib/diff/lcs/hunk.rb#73
832
884
  def flag_context=(context); end
833
885
 
834
886
  # Merges this hunk and the provided hunk together if they overlap. Returns
835
887
  # a truthy value so that if there is no overlap, you can know the merge
836
888
  # was skipped.
837
889
  #
838
- # source://diff-lcs//lib/diff/lcs/hunk.rb#98
890
+ # source://diff-lcs//lib/diff/lcs/hunk.rb#97
839
891
  def merge(hunk); end
840
892
 
841
893
  # @return [Boolean]
842
894
  #
843
- # source://diff-lcs//lib/diff/lcs/hunk.rb#326
895
+ # source://diff-lcs//lib/diff/lcs/hunk.rb#347
844
896
  def missing_last_newline?(data); end
845
897
 
846
898
  # Determines whether there is an overlap between this hunk and the
@@ -849,61 +901,61 @@ class Diff::LCS::Hunk
849
901
  #
850
902
  # @return [Boolean]
851
903
  #
852
- # source://diff-lcs//lib/diff/lcs/hunk.rb#110
904
+ # source://diff-lcs//lib/diff/lcs/hunk.rb#109
853
905
  def overlaps?(hunk); end
854
906
 
855
907
  # Returns the value of attribute start_new.
856
908
  #
857
- # source://diff-lcs//lib/diff/lcs/hunk.rb#64
909
+ # source://diff-lcs//lib/diff/lcs/hunk.rb#65
858
910
  def start_new; end
859
911
 
860
912
  # Returns the value of attribute start_old.
861
913
  #
862
- # source://diff-lcs//lib/diff/lcs/hunk.rb#64
914
+ # source://diff-lcs//lib/diff/lcs/hunk.rb#65
863
915
  def start_old; end
864
916
 
865
917
  # Merges this hunk and the provided hunk together if they overlap. Returns
866
918
  # a truthy value so that if there is no overlap, you can know the merge
867
919
  # was skipped.
868
920
  #
869
- # source://diff-lcs//lib/diff/lcs/hunk.rb#98
921
+ # source://diff-lcs//lib/diff/lcs/hunk.rb#97
870
922
  def unshift(hunk); end
871
923
 
872
924
  private
873
925
 
874
- # source://diff-lcs//lib/diff/lcs/hunk.rb#213
926
+ # source://diff-lcs//lib/diff/lcs/hunk.rb#222
875
927
  def context_diff(last = T.unsafe(nil)); end
876
928
 
877
929
  # Generate a range of item numbers to print. Only print 1 number if the
878
930
  # range has only one item in it. Otherwise, it's 'start,end'
879
931
  #
880
- # source://diff-lcs//lib/diff/lcs/hunk.rb#293
881
- def context_range(mode, op, last = T.unsafe(nil)); end
932
+ # source://diff-lcs//lib/diff/lcs/hunk.rb#316
933
+ def context_range(mode, op); end
882
934
 
883
- # source://diff-lcs//lib/diff/lcs/hunk.rb#271
884
- def ed_diff(format, _last = T.unsafe(nil)); end
935
+ # source://diff-lcs//lib/diff/lcs/hunk.rb#284
936
+ def ed_diff(format, last); end
885
937
 
886
- # source://diff-lcs//lib/diff/lcs/hunk.rb#339
938
+ # source://diff-lcs//lib/diff/lcs/hunk.rb#360
887
939
  def encode(literal, target_encoding = T.unsafe(nil)); end
888
940
 
889
- # source://diff-lcs//lib/diff/lcs/hunk.rb#343
941
+ # source://diff-lcs//lib/diff/lcs/hunk.rb#364
890
942
  def encode_as(string, *args); end
891
943
 
892
944
  # Note that an old diff can't have any context. Therefore, we know that
893
945
  # there's only one block in the hunk.
894
946
  #
895
- # source://diff-lcs//lib/diff/lcs/hunk.rb#135
896
- def old_diff(_last = T.unsafe(nil)); end
947
+ # source://diff-lcs//lib/diff/lcs/hunk.rb#134
948
+ def old_diff(last = T.unsafe(nil)); end
897
949
 
898
- # source://diff-lcs//lib/diff/lcs/hunk.rb#160
950
+ # source://diff-lcs//lib/diff/lcs/hunk.rb#167
899
951
  def unified_diff(last = T.unsafe(nil)); end
900
952
 
901
953
  # Generate a range of item numbers to print for unified diff. Print number
902
954
  # where block starts, followed by number of lines in the block
903
955
  # (don't print number of lines if it's 1)
904
956
  #
905
- # source://diff-lcs//lib/diff/lcs/hunk.rb#311
906
- def unified_range(mode, last); end
957
+ # source://diff-lcs//lib/diff/lcs/hunk.rb#331
958
+ def unified_range(mode); end
907
959
  end
908
960
 
909
961
  # source://diff-lcs//lib/diff/lcs/hunk.rb#10
@@ -920,7 +972,7 @@ module Diff::LCS::Internals
920
972
  # the object form of same) and detection of whether the patchset represents
921
973
  # changes to be made.
922
974
  #
923
- # source://diff-lcs//lib/diff/lcs/internals.rb#98
975
+ # source://diff-lcs//lib/diff/lcs/internals.rb#102
924
976
  def analyze_patchset(patchset, depth = T.unsafe(nil)); end
925
977
 
926
978
  # Examine the patchset and the source to see in which direction the
@@ -931,7 +983,7 @@ module Diff::LCS::Internals
931
983
  # Diff::LCS::Change as its source, as an array will cause the creation
932
984
  # of one of the above.
933
985
  #
934
- # source://diff-lcs//lib/diff/lcs/internals.rb#143
986
+ # source://diff-lcs//lib/diff/lcs/internals.rb#147
935
987
  def intuit_diff_direction(src, patchset, limit = T.unsafe(nil)); end
936
988
 
937
989
  # Compute the longest common subsequence between the sequenced
@@ -952,14 +1004,14 @@ module Diff::LCS::Internals
952
1004
  # Enumerable, compute the inverse of +vector+ that maps this Enumerable
953
1005
  # onto the collection. (Currently unused.)
954
1006
  #
955
- # source://diff-lcs//lib/diff/lcs/internals.rb#282
1007
+ # source://diff-lcs//lib/diff/lcs/internals.rb#286
956
1008
  def inverse_vector(a, vector); end
957
1009
 
958
1010
  # Returns a hash mapping each element of an Enumerable to the set of
959
1011
  # positions it occupies in the Enumerable, optionally restricted to the
960
1012
  # elements specified in the range of indexes specified by +interval+.
961
1013
  #
962
- # source://diff-lcs//lib/diff/lcs/internals.rb#294
1014
+ # source://diff-lcs//lib/diff/lcs/internals.rb#298
963
1015
  def position_hash(enum, interval); end
964
1016
 
965
1017
  # Find the place at which +value+ would normally be inserted into the
@@ -971,7 +1023,7 @@ module Diff::LCS::Internals
971
1023
  #
972
1024
  # This operation preserves the sort order.
973
1025
  #
974
- # source://diff-lcs//lib/diff/lcs/internals.rb#248
1026
+ # source://diff-lcs//lib/diff/lcs/internals.rb#252
975
1027
  def replace_next_larger(enum, value, last_index = T.unsafe(nil)); end
976
1028
  end
977
1029
  end
@@ -1041,32 +1093,32 @@ end
1041
1093
  # require 'pp'
1042
1094
  # pp diffs.map { |e| e.to_a }
1043
1095
  #
1044
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#301
1096
+ # source://diff-lcs//lib/diff/lcs/callbacks.rb#303
1045
1097
  class Diff::LCS::SDiffCallbacks
1046
- # :yields self:
1098
+ # :yields: self
1047
1099
  #
1048
1100
  # @return [SDiffCallbacks] a new instance of SDiffCallbacks
1049
1101
  # @yield [_self]
1050
1102
  # @yieldparam _self [Diff::LCS::SDiffCallbacks] the object that the method was called on
1051
1103
  #
1052
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#305
1104
+ # source://diff-lcs//lib/diff/lcs/callbacks.rb#307
1053
1105
  def initialize; end
1054
1106
 
1055
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#322
1107
+ # source://diff-lcs//lib/diff/lcs/callbacks.rb#324
1056
1108
  def change(event); end
1057
1109
 
1058
1110
  # Returns the difference set collected during the diff process.
1059
1111
  #
1060
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#303
1112
+ # source://diff-lcs//lib/diff/lcs/callbacks.rb#305
1061
1113
  def diffs; end
1062
1114
 
1063
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#314
1115
+ # source://diff-lcs//lib/diff/lcs/callbacks.rb#316
1064
1116
  def discard_a(event); end
1065
1117
 
1066
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#318
1118
+ # source://diff-lcs//lib/diff/lcs/callbacks.rb#320
1067
1119
  def discard_b(event); end
1068
1120
 
1069
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#310
1121
+ # source://diff-lcs//lib/diff/lcs/callbacks.rb#312
1070
1122
  def match(event); end
1071
1123
  end
1072
1124
 
@@ -1078,5 +1130,5 @@ end
1078
1130
  # source://diff-lcs//lib/diff/lcs/callbacks.rb#44
1079
1131
  Diff::LCS::SequenceCallbacks = Diff::LCS::DefaultCallbacks
1080
1132
 
1081
- # source://diff-lcs//lib/diff/lcs.rb#52
1133
+ # source://diff-lcs//lib/diff/lcs/version.rb#5
1082
1134
  Diff::LCS::VERSION = T.let(T.unsafe(nil), String)