mootool 0.2.6 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -1
- data/.rubocop.yml +7 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +71 -67
- data/lib/mootool/command.rb +1 -0
- data/lib/mootool/controller_base.rb +1 -0
- data/lib/mootool/controllers/dwarf.rb +2 -1
- data/lib/mootool/controllers/dyld_linker.rb +1 -0
- data/lib/mootool/controllers/dyld_shared_cache.rb +1 -0
- data/lib/mootool/controllers/fat_binary.rb +1 -0
- data/lib/mootool/controllers/kernel_collection.rb +4 -3
- data/lib/mootool/controllers/sections.rb +1 -0
- data/lib/mootool/core_extensions.rb +3 -3
- data/lib/mootool/models/decompressor.rb +5 -2
- data/lib/mootool/models/device_tree.rb +5 -3
- data/lib/mootool/models/img4.rb +2 -1
- data/lib/mootool/models/ipsw.rb +5 -1
- data/lib/mootool/version.rb +2 -1
- data/lib/mootool.rb +1 -0
- data/sorbet/config +1 -1
- data/sorbet/rbi/annotations/.gitattributes +1 -0
- data/sorbet/rbi/annotations/rainbow.rbi +2 -2
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +48 -82
- data/sorbet/rbi/gems/childprocess@4.1.0.rbi +107 -153
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +192 -332
- data/sorbet/rbi/gems/docile@1.4.0.rbi +376 -0
- data/sorbet/rbi/gems/erubi@1.12.0.rbi +146 -0
- data/sorbet/rbi/gems/iniparse@1.5.0.rbi +166 -276
- data/sorbet/rbi/gems/{json@2.6.2.rbi → json@2.6.3.rbi} +119 -228
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
- data/sorbet/rbi/gems/lzfse@0.0.2.rbi +55 -0
- data/sorbet/rbi/gems/lzss@0.1.rbi +8 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +52 -80
- data/sorbet/rbi/gems/{overcommit@0.59.1.rbi → overcommit@0.60.0.rbi} +534 -887
- data/sorbet/rbi/gems/parallel@1.23.0.rbi +273 -0
- data/sorbet/rbi/gems/parser@3.2.2.4.rbi +5451 -0
- data/sorbet/rbi/gems/{plist@3.6.0.rbi → plist@3.7.0.rbi} +125 -3
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
- data/sorbet/rbi/gems/prism@0.17.1.rbi +27700 -0
- data/sorbet/rbi/gems/racc@1.7.3.rbi +161 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +141 -191
- data/sorbet/rbi/gems/rake@13.1.0.rbi +2887 -0
- data/sorbet/rbi/gems/{rbi@0.0.15.rbi → rbi@0.1.4.rbi} +979 -1676
- data/sorbet/rbi/gems/regexp_parser@2.8.2.rbi +3749 -0
- data/sorbet/rbi/gems/{rexml@3.2.5.rbi → rexml@3.2.6.rbi} +811 -1268
- data/sorbet/rbi/gems/{rspec-core@3.11.0.rbi → rspec-core@3.12.2.rbi} +2662 -4722
- data/sorbet/rbi/gems/{rspec-expectations@3.11.0.rbi → rspec-expectations@3.12.3.rbi} +1557 -2608
- data/sorbet/rbi/gems/rspec-mocks@3.12.6.rbi +5306 -0
- data/sorbet/rbi/gems/rspec-support@3.12.1.rbi +1609 -0
- data/sorbet/rbi/gems/rspec@3.12.0.rbi +82 -0
- data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +7090 -0
- data/sorbet/rbi/gems/rubocop-capybara@2.19.0.rbi +1125 -0
- data/sorbet/rbi/gems/rubocop-factory_bot@2.24.0.rbi +878 -0
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +88 -173
- data/sorbet/rbi/gems/rubocop-rspec@2.25.0.rbi +7997 -0
- data/sorbet/rbi/gems/rubocop@1.57.2.rbi +56813 -0
- data/sorbet/rbi/gems/ruby-lzma@0.4.3.rbi +19 -0
- data/sorbet/rbi/gems/ruby-macho@3.0.0.rbi +899 -1237
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
- data/sorbet/rbi/gems/rubyzip@2.3.2.rbi +808 -1275
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +216 -0
- data/sorbet/rbi/gems/simplecov@0.22.0.rbi +2148 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +8 -0
- data/sorbet/rbi/gems/spoom@1.2.4.rbi +3777 -0
- data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +23136 -0
- data/sorbet/rbi/gems/tapioca@0.11.12.rbi +3507 -0
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +65 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
- data/sorbet/rbi/gems/{yard@0.9.28.rbi → yard@0.9.34.rbi} +4531 -7160
- data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +24 -72
- data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +385 -1697
- data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +7 -30
- data/sorbet/rbi/sorbet-typed/lib/rubocop/>=1.8/rubocop.rbi +1 -3
- data/sorbet/rbi/sorbet-typed/lib/thor/all/thor.rbi +905 -0
- data/sorbet/rbi/sorbet-typed/lib/yard/all/yard.rbi +35 -0
- data/sorbet/tapioca/require.rb +13 -1
- metadata +47 -36
- data/.DS_Store +0 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -8
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -8
- data/sorbet/rbi/gems/parallel@1.22.1.rbi +0 -353
- data/sorbet/rbi/gems/parser@3.1.2.1.rbi +0 -6198
- data/sorbet/rbi/gems/pry@0.14.1.rbi +0 -8
- data/sorbet/rbi/gems/rake@13.0.6.rbi +0 -3587
- data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +0 -3927
- data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +0 -6506
- data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +0 -2040
- data/sorbet/rbi/gems/rspec@3.11.0.rbi +0 -120
- data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +0 -7990
- data/sorbet/rbi/gems/rubocop-rspec@2.12.1.rbi +0 -7604
- data/sorbet/rbi/gems/rubocop@1.35.0.rbi +0 -62260
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -1445
- data/sorbet/rbi/gems/spoom@1.1.12.rbi +0 -2829
- data/sorbet/rbi/gems/tapioca@0.9.3.rbi +0 -2151
- data/sorbet/rbi/gems/thor@1.2.1.rbi +0 -4532
- data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +0 -60
- data/sorbet/rbi/gems/unparser@0.6.5.rbi +0 -8
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -3075
- data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +0 -458
- data/sorbet/rbi/todo.rbi +0 -7
@@ -4,19 +4,15 @@
|
|
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
|
-
# source://diff-lcs
|
8
|
-
module Diff
|
9
|
-
;
|
10
|
-
end
|
7
|
+
# source://diff-lcs//lib/diff/lcs.rb#3
|
8
|
+
module Diff; end
|
11
9
|
|
12
|
-
# source://diff-lcs
|
10
|
+
# source://diff-lcs//lib/diff/lcs.rb#51
|
13
11
|
module Diff::LCS
|
14
12
|
# Returns the difference set between +self+ and +other+. See Diff::LCS#diff.
|
15
13
|
#
|
16
|
-
# source://diff-lcs
|
17
|
-
def diff(other, callbacks = T.unsafe(nil), &block)
|
18
|
-
;
|
19
|
-
end
|
14
|
+
# source://diff-lcs//lib/diff/lcs.rb#75
|
15
|
+
def diff(other, callbacks = T.unsafe(nil), &block); end
|
20
16
|
|
21
17
|
# Returns an Array containing the longest common subsequence(s) between
|
22
18
|
# +self+ and +other+. See Diff::LCS#lcs.
|
@@ -30,102 +26,78 @@ module Diff::LCS
|
|
30
26
|
#
|
31
27
|
# O.new('a').eql?(O.new('a')) == true
|
32
28
|
#
|
33
|
-
# source://diff-lcs
|
34
|
-
def lcs(other, &block)
|
35
|
-
;
|
36
|
-
end
|
29
|
+
# source://diff-lcs//lib/diff/lcs.rb#70
|
30
|
+
def lcs(other, &block); end
|
37
31
|
|
38
32
|
# Attempts to patch +self+ with the provided +patchset+. A new sequence based
|
39
33
|
# on +self+ and the +patchset+ will be created. See Diff::LCS#patch. Attempts
|
40
34
|
# to autodiscover the direction of the patch.
|
41
35
|
#
|
42
|
-
# source://diff-lcs
|
43
|
-
def patch(patchset)
|
44
|
-
;
|
45
|
-
end
|
36
|
+
# source://diff-lcs//lib/diff/lcs.rb#101
|
37
|
+
def patch(patchset); end
|
46
38
|
|
47
39
|
# Attempts to patch +self+ with the provided +patchset+. A new sequence based
|
48
40
|
# on +self+ and the +patchset+ will be created. See Diff::LCS#patch. Does no
|
49
41
|
# patch direction autodiscovery.
|
50
42
|
#
|
51
|
-
# source://diff-lcs
|
52
|
-
def patch!(patchset)
|
53
|
-
;
|
54
|
-
end
|
43
|
+
# source://diff-lcs//lib/diff/lcs.rb#109
|
44
|
+
def patch!(patchset); end
|
55
45
|
|
56
46
|
# Attempts to patch +self+ with the provided +patchset+, using #patch!. If
|
57
47
|
# the sequence this is used on supports #replace, the value of +self+ will be
|
58
48
|
# replaced. See Diff::LCS#patch. Does no patch direction autodiscovery.
|
59
49
|
#
|
60
|
-
# source://diff-lcs
|
61
|
-
def patch_me(patchset)
|
62
|
-
;
|
63
|
-
end
|
50
|
+
# source://diff-lcs//lib/diff/lcs.rb#123
|
51
|
+
def patch_me(patchset); end
|
64
52
|
|
65
53
|
# Returns the balanced ("side-by-side") difference set between +self+ and
|
66
54
|
# +other+. See Diff::LCS#sdiff.
|
67
55
|
#
|
68
|
-
# source://diff-lcs
|
69
|
-
def sdiff(other, callbacks = T.unsafe(nil), &block)
|
70
|
-
;
|
71
|
-
end
|
56
|
+
# source://diff-lcs//lib/diff/lcs.rb#81
|
57
|
+
def sdiff(other, callbacks = T.unsafe(nil), &block); end
|
72
58
|
|
73
59
|
# Traverses the discovered longest common subsequences between +self+ and
|
74
60
|
# +other+ using the alternate, balanced algorithm. See
|
75
61
|
# Diff::LCS#traverse_balanced.
|
76
62
|
#
|
77
|
-
# source://diff-lcs
|
78
|
-
def traverse_balanced(other, callbacks = T.unsafe(nil), &block)
|
79
|
-
;
|
80
|
-
end
|
63
|
+
# source://diff-lcs//lib/diff/lcs.rb#94
|
64
|
+
def traverse_balanced(other, callbacks = T.unsafe(nil), &block); end
|
81
65
|
|
82
66
|
# Traverses the discovered longest common subsequences between +self+ and
|
83
67
|
# +other+. See Diff::LCS#traverse_sequences.
|
84
68
|
#
|
85
|
-
# source://diff-lcs
|
86
|
-
def traverse_sequences(other, callbacks = T.unsafe(nil), &block)
|
87
|
-
;
|
88
|
-
end
|
69
|
+
# source://diff-lcs//lib/diff/lcs.rb#87
|
70
|
+
def traverse_sequences(other, callbacks = T.unsafe(nil), &block); end
|
89
71
|
|
90
72
|
# Attempts to patch +self+ with the provided +patchset+. A new sequence based
|
91
73
|
# on +self+ and the +patchset+ will be created. See Diff::LCS#patch. Attempts
|
92
74
|
# to autodiscover the direction of the patch.
|
93
75
|
#
|
94
|
-
# source://diff-lcs
|
95
|
-
def unpatch(patchset)
|
96
|
-
;
|
97
|
-
end
|
76
|
+
# source://diff-lcs//lib/diff/lcs.rb#101
|
77
|
+
def unpatch(patchset); end
|
98
78
|
|
99
79
|
# Attempts to unpatch +self+ with the provided +patchset+. A new sequence
|
100
80
|
# based on +self+ and the +patchset+ will be created. See Diff::LCS#unpatch.
|
101
81
|
# Does no patch direction autodiscovery.
|
102
82
|
#
|
103
|
-
# source://diff-lcs
|
104
|
-
def unpatch!(patchset)
|
105
|
-
;
|
106
|
-
end
|
83
|
+
# source://diff-lcs//lib/diff/lcs.rb#116
|
84
|
+
def unpatch!(patchset); end
|
107
85
|
|
108
86
|
# Attempts to unpatch +self+ with the provided +patchset+, using #unpatch!.
|
109
87
|
# If the sequence this is used on supports #replace, the value of +self+ will
|
110
88
|
# be replaced. See Diff::LCS#unpatch. Does no patch direction autodiscovery.
|
111
89
|
#
|
112
|
-
# source://diff-lcs
|
113
|
-
def unpatch_me(patchset)
|
114
|
-
;
|
115
|
-
end
|
90
|
+
# source://diff-lcs//lib/diff/lcs.rb#134
|
91
|
+
def unpatch_me(patchset); end
|
116
92
|
|
117
93
|
class << self
|
118
94
|
# :yields seq1[i] for each matched:
|
119
95
|
#
|
120
|
-
# source://diff-lcs
|
121
|
-
def LCS(seq1, seq2, &block)
|
122
|
-
;
|
123
|
-
end
|
96
|
+
# source://diff-lcs//lib/diff/lcs.rb#144
|
97
|
+
def LCS(seq1, seq2, &block); end
|
124
98
|
|
125
|
-
# source://diff-lcs
|
126
|
-
def callbacks_for(callbacks)
|
127
|
-
;
|
128
|
-
end
|
99
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#52
|
100
|
+
def callbacks_for(callbacks); end
|
129
101
|
|
130
102
|
# #diff computes the smallest set of additions and deletions necessary to
|
131
103
|
# turn the first sequence into the second, and returns a description of these
|
@@ -137,17 +109,13 @@ module Diff::LCS
|
|
137
109
|
# initialise it. If the +callbacks+ object (possibly initialised) responds to
|
138
110
|
# #finish, it will be called.
|
139
111
|
#
|
140
|
-
# source://diff-lcs
|
141
|
-
def diff(seq1, seq2, callbacks = T.unsafe(nil), &block)
|
142
|
-
;
|
143
|
-
end
|
112
|
+
# source://diff-lcs//lib/diff/lcs.rb#168
|
113
|
+
def diff(seq1, seq2, callbacks = T.unsafe(nil), &block); end
|
144
114
|
|
145
115
|
# :yields seq1[i] for each matched:
|
146
116
|
#
|
147
|
-
# source://diff-lcs
|
148
|
-
def lcs(seq1, seq2, &block)
|
149
|
-
;
|
150
|
-
end
|
117
|
+
# source://diff-lcs//lib/diff/lcs.rb#144
|
118
|
+
def lcs(seq1, seq2, &block); end
|
151
119
|
|
152
120
|
# Applies a +patchset+ to the sequence +src+ according to the +direction+
|
153
121
|
# (<tt>:patch</tt> or <tt>:unpatch</tt>), producing a new sequence.
|
@@ -190,18 +158,14 @@ module Diff::LCS
|
|
190
158
|
# representations of those objects. Prior to application, array
|
191
159
|
# representations of Diff::LCS::Change objects will be reified.
|
192
160
|
#
|
193
|
-
# source://diff-lcs
|
194
|
-
def patch(src, patchset, direction = T.unsafe(nil))
|
195
|
-
;
|
196
|
-
end
|
161
|
+
# source://diff-lcs//lib/diff/lcs.rb#624
|
162
|
+
def patch(src, patchset, direction = T.unsafe(nil)); end
|
197
163
|
|
198
164
|
# Given a set of patchset, convert the current version to the next version.
|
199
165
|
# Does no auto-discovery.
|
200
166
|
#
|
201
|
-
# source://diff-lcs
|
202
|
-
def patch!(src, patchset)
|
203
|
-
;
|
204
|
-
end
|
167
|
+
# source://diff-lcs//lib/diff/lcs.rb#734
|
168
|
+
def patch!(src, patchset); end
|
205
169
|
|
206
170
|
# #sdiff computes all necessary components to show two sequences and their
|
207
171
|
# minimized differences side by side, just like the Unix utility
|
@@ -232,10 +196,8 @@ module Diff::LCS
|
|
232
196
|
# end
|
233
197
|
# end
|
234
198
|
#
|
235
|
-
# source://diff-lcs
|
236
|
-
def sdiff(seq1, seq2, callbacks = T.unsafe(nil), &block)
|
237
|
-
;
|
238
|
-
end
|
199
|
+
# source://diff-lcs//lib/diff/lcs.rb#200
|
200
|
+
def sdiff(seq1, seq2, callbacks = T.unsafe(nil), &block); end
|
239
201
|
|
240
202
|
# #traverse_balanced is an alternative to #traverse_sequences. It uses a
|
241
203
|
# different algorithm to iterate through the entries in the computed longest
|
@@ -319,10 +281,8 @@ module Diff::LCS
|
|
319
281
|
# Note that +i+ and +j+ may not be the same index position, even if +a+ and
|
320
282
|
# +b+ are considered to be pointing to matching or changed elements.
|
321
283
|
#
|
322
|
-
# source://diff-lcs
|
323
|
-
def traverse_balanced(seq1, seq2, callbacks = T.unsafe(nil))
|
324
|
-
;
|
325
|
-
end
|
284
|
+
# source://diff-lcs//lib/diff/lcs.rb#475
|
285
|
+
def traverse_balanced(seq1, seq2, callbacks = T.unsafe(nil)); end
|
326
286
|
|
327
287
|
# #traverse_sequences is the most general facility provided by this module;
|
328
288
|
# #diff and #lcs are implemented as calls to it.
|
@@ -406,25 +366,19 @@ module Diff::LCS
|
|
406
366
|
# is reached, if +a+ has not yet reached the end of +A+ or +b+ has not yet
|
407
367
|
# reached the end of +B+.
|
408
368
|
#
|
409
|
-
# source://diff-lcs
|
410
|
-
def traverse_sequences(seq1, seq2, callbacks = T.unsafe(nil))
|
411
|
-
;
|
412
|
-
end
|
369
|
+
# source://diff-lcs//lib/diff/lcs.rb#285
|
370
|
+
def traverse_sequences(seq1, seq2, callbacks = T.unsafe(nil)); end
|
413
371
|
|
414
372
|
# Given a set of patchset, convert the current version to the prior version.
|
415
373
|
# Does no auto-discovery.
|
416
374
|
#
|
417
|
-
# source://diff-lcs
|
418
|
-
def unpatch!(src, patchset)
|
419
|
-
;
|
420
|
-
end
|
375
|
+
# source://diff-lcs//lib/diff/lcs.rb#728
|
376
|
+
def unpatch!(src, patchset); end
|
421
377
|
|
422
378
|
private
|
423
379
|
|
424
|
-
# source://diff-lcs
|
425
|
-
def diff_traversal(method, seq1, seq2, callbacks, &block)
|
426
|
-
;
|
427
|
-
end
|
380
|
+
# source://diff-lcs//lib/diff/lcs/internals.rb#4
|
381
|
+
def diff_traversal(method, seq1, seq2, callbacks, &block); end
|
428
382
|
end
|
429
383
|
end
|
430
384
|
|
@@ -433,41 +387,39 @@ end
|
|
433
387
|
#
|
434
388
|
# Diff::LCS.LCS(seq1, seq2, Diff::LCS::BalancedCallbacks)
|
435
389
|
#
|
436
|
-
# source://diff-lcs
|
390
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#50
|
437
391
|
Diff::LCS::BalancedCallbacks = Diff::LCS::DefaultCallbacks
|
438
392
|
|
439
393
|
# A block is an operation removing, adding, or changing a group of items.
|
440
394
|
# Basically, this is just a list of changes, where each change adds or
|
441
395
|
# deletes a single item. Used by bin/ldiff.
|
442
396
|
#
|
443
|
-
# source://diff-lcs
|
397
|
+
# source://diff-lcs//lib/diff/lcs/block.rb#6
|
444
398
|
class Diff::LCS::Block
|
445
399
|
# @return [Block] a new instance of Block
|
446
400
|
#
|
447
|
-
# source://diff-lcs
|
448
|
-
def initialize(chunk)
|
449
|
-
;
|
450
|
-
end
|
401
|
+
# source://diff-lcs//lib/diff/lcs/block.rb#9
|
402
|
+
def initialize(chunk); end
|
451
403
|
|
452
404
|
# Returns the value of attribute changes.
|
453
405
|
#
|
454
|
-
# source://diff-lcs
|
406
|
+
# source://diff-lcs//lib/diff/lcs/block.rb#7
|
455
407
|
def changes; end
|
456
408
|
|
457
|
-
# source://diff-lcs
|
409
|
+
# source://diff-lcs//lib/diff/lcs/block.rb#21
|
458
410
|
def diff_size; end
|
459
411
|
|
460
412
|
# Returns the value of attribute insert.
|
461
413
|
#
|
462
|
-
# source://diff-lcs
|
414
|
+
# source://diff-lcs//lib/diff/lcs/block.rb#7
|
463
415
|
def insert; end
|
464
416
|
|
465
|
-
# source://diff-lcs
|
417
|
+
# source://diff-lcs//lib/diff/lcs/block.rb#25
|
466
418
|
def op; end
|
467
419
|
|
468
420
|
# Returns the value of attribute remove.
|
469
421
|
#
|
470
|
-
# source://diff-lcs
|
422
|
+
# source://diff-lcs//lib/diff/lcs/block.rb#7
|
471
423
|
def remove; end
|
472
424
|
end
|
473
425
|
|
@@ -475,99 +427,87 @@ end
|
|
475
427
|
# addition of an element from either the old or the new sequenced
|
476
428
|
# enumerable.
|
477
429
|
#
|
478
|
-
# source://diff-lcs
|
430
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#6
|
479
431
|
class Diff::LCS::Change
|
480
432
|
include ::Comparable
|
481
433
|
|
482
434
|
# @return [Change] a new instance of Change
|
483
435
|
#
|
484
|
-
# source://diff-lcs
|
485
|
-
def initialize(*args)
|
486
|
-
;
|
487
|
-
end
|
436
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#27
|
437
|
+
def initialize(*args); end
|
488
438
|
|
489
|
-
# source://diff-lcs
|
490
|
-
def <=>(other)
|
491
|
-
;
|
492
|
-
end
|
439
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#65
|
440
|
+
def <=>(other); end
|
493
441
|
|
494
|
-
# source://diff-lcs
|
495
|
-
def ==(other)
|
496
|
-
;
|
497
|
-
end
|
442
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#58
|
443
|
+
def ==(other); end
|
498
444
|
|
499
445
|
# Returns the action this Change represents.
|
500
446
|
#
|
501
|
-
# source://diff-lcs
|
447
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#20
|
502
448
|
def action; end
|
503
449
|
|
504
450
|
# @return [Boolean]
|
505
451
|
#
|
506
|
-
# source://diff-lcs
|
452
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#72
|
507
453
|
def adding?; end
|
508
454
|
|
509
455
|
# @return [Boolean]
|
510
456
|
#
|
511
|
-
# source://diff-lcs
|
457
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#84
|
512
458
|
def changed?; end
|
513
459
|
|
514
460
|
# @return [Boolean]
|
515
461
|
#
|
516
|
-
# source://diff-lcs
|
462
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#76
|
517
463
|
def deleting?; end
|
518
464
|
|
519
465
|
# Returns the sequence element of the Change.
|
520
466
|
#
|
521
|
-
# source://diff-lcs
|
467
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#25
|
522
468
|
def element; end
|
523
469
|
|
524
470
|
# @return [Boolean]
|
525
471
|
#
|
526
|
-
# source://diff-lcs
|
472
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#88
|
527
473
|
def finished_a?; end
|
528
474
|
|
529
475
|
# @return [Boolean]
|
530
476
|
#
|
531
|
-
# source://diff-lcs
|
477
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#92
|
532
478
|
def finished_b?; end
|
533
479
|
|
534
|
-
# source://diff-lcs
|
535
|
-
def inspect(*_args)
|
536
|
-
;
|
537
|
-
end
|
480
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#34
|
481
|
+
def inspect(*_args); end
|
538
482
|
|
539
483
|
# Returns the position of the Change.
|
540
484
|
#
|
541
|
-
# source://diff-lcs
|
485
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#23
|
542
486
|
def position; end
|
543
487
|
|
544
|
-
# source://diff-lcs
|
488
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#38
|
545
489
|
def to_a; end
|
546
490
|
|
547
|
-
# source://diff-lcs
|
491
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#38
|
548
492
|
def to_ary; end
|
549
493
|
|
550
494
|
# @return [Boolean]
|
551
495
|
#
|
552
|
-
# source://diff-lcs
|
496
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#80
|
553
497
|
def unchanged?; end
|
554
498
|
|
555
499
|
class << self
|
556
|
-
# source://diff-lcs
|
557
|
-
def from_a(arr)
|
558
|
-
;
|
559
|
-
end
|
500
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#44
|
501
|
+
def from_a(arr); end
|
560
502
|
|
561
503
|
# @return [Boolean]
|
562
504
|
#
|
563
|
-
# source://diff-lcs
|
564
|
-
def valid_action?(action)
|
565
|
-
;
|
566
|
-
end
|
505
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#15
|
506
|
+
def valid_action?(action); end
|
567
507
|
end
|
568
508
|
end
|
569
509
|
|
570
|
-
# source://diff-lcs
|
510
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#7
|
571
511
|
Diff::LCS::Change::IntClass = Integer
|
572
512
|
|
573
513
|
# The only actions valid for changes are '+' (add), '-' (delete), '='
|
@@ -575,71 +515,61 @@ Diff::LCS::Change::IntClass = Integer
|
|
575
515
|
# '>' (tail changes from second sequence). The last two ('<>') are only
|
576
516
|
# found with Diff::LCS::diff and Diff::LCS::sdiff.
|
577
517
|
#
|
578
|
-
# source://diff-lcs
|
518
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#13
|
579
519
|
Diff::LCS::Change::VALID_ACTIONS = T.let(T.unsafe(nil), Array)
|
580
520
|
|
581
521
|
# Represents a contextual change. Contains the position and values of the
|
582
522
|
# elements in the old and the new sequenced enumerables as well as the action
|
583
523
|
# taken.
|
584
524
|
#
|
585
|
-
# source://diff-lcs
|
525
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#101
|
586
526
|
class Diff::LCS::ContextChange < ::Diff::LCS::Change
|
587
527
|
# @return [ContextChange] a new instance of ContextChange
|
588
528
|
#
|
589
|
-
# source://diff-lcs
|
590
|
-
def initialize(*args)
|
591
|
-
;
|
592
|
-
end
|
529
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#114
|
530
|
+
def initialize(*args); end
|
593
531
|
|
594
|
-
# source://diff-lcs
|
595
|
-
def <=>(other)
|
596
|
-
;
|
597
|
-
end
|
532
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#166
|
533
|
+
def <=>(other); end
|
598
534
|
|
599
|
-
# source://diff-lcs
|
600
|
-
def ==(other)
|
601
|
-
;
|
602
|
-
end
|
535
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#157
|
536
|
+
def ==(other); end
|
603
537
|
|
604
538
|
# Returns the new element being changed.
|
605
539
|
#
|
606
|
-
# source://diff-lcs
|
540
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#112
|
607
541
|
def new_element; end
|
608
542
|
|
609
543
|
# Returns the new position being changed.
|
610
544
|
#
|
611
|
-
# source://diff-lcs
|
545
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#108
|
612
546
|
def new_position; end
|
613
547
|
|
614
548
|
# Returns the old element being changed.
|
615
549
|
#
|
616
|
-
# source://diff-lcs
|
550
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#110
|
617
551
|
def old_element; end
|
618
552
|
|
619
553
|
# Returns the old position being changed.
|
620
554
|
#
|
621
|
-
# source://diff-lcs
|
555
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#106
|
622
556
|
def old_position; end
|
623
557
|
|
624
|
-
# source://diff-lcs
|
558
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#122
|
625
559
|
def to_a; end
|
626
560
|
|
627
|
-
# source://diff-lcs
|
561
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#122
|
628
562
|
def to_ary; end
|
629
563
|
|
630
564
|
class << self
|
631
|
-
# source://diff-lcs
|
632
|
-
def from_a(arr)
|
633
|
-
;
|
634
|
-
end
|
565
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#132
|
566
|
+
def from_a(arr); end
|
635
567
|
|
636
568
|
# Simplifies a context change for use in some diff callbacks. '<' actions
|
637
569
|
# are converted to '-' and '>' actions are converted to '+'.
|
638
570
|
#
|
639
|
-
# source://diff-lcs
|
640
|
-
def simplify(event)
|
641
|
-
;
|
642
|
-
end
|
571
|
+
# source://diff-lcs//lib/diff/lcs/change.rb#138
|
572
|
+
def simplify(event); end
|
643
573
|
end
|
644
574
|
end
|
645
575
|
|
@@ -719,22 +649,16 @@ end
|
|
719
649
|
# require 'pp'
|
720
650
|
# pp diffs.map { |e| e.map { |f| f.to_a } }
|
721
651
|
#
|
722
|
-
# source://diff-lcs
|
652
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#223
|
723
653
|
class Diff::LCS::ContextDiffCallbacks < ::Diff::LCS::DiffCallbacks
|
724
|
-
# source://diff-lcs
|
725
|
-
def change(event)
|
726
|
-
;
|
727
|
-
end
|
654
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#232
|
655
|
+
def change(event); end
|
728
656
|
|
729
|
-
# source://diff-lcs
|
730
|
-
def discard_a(event)
|
731
|
-
;
|
732
|
-
end
|
657
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#224
|
658
|
+
def discard_a(event); end
|
733
659
|
|
734
|
-
# source://diff-lcs
|
735
|
-
def discard_b(event)
|
736
|
-
;
|
737
|
-
end
|
660
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#228
|
661
|
+
def discard_b(event); end
|
738
662
|
end
|
739
663
|
|
740
664
|
# This callback object implements the default set of callback events,
|
@@ -746,36 +670,28 @@ end
|
|
746
670
|
#
|
747
671
|
# Diff::LCS.LCS(seq1, seq2, Diff::LCS::DefaultCallbacks)
|
748
672
|
#
|
749
|
-
# source://diff-lcs
|
673
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#14
|
750
674
|
class Diff::LCS::DefaultCallbacks
|
751
675
|
class << self
|
752
676
|
# Called when both the old and new values have changed.
|
753
677
|
#
|
754
|
-
# source://diff-lcs
|
755
|
-
def change(event)
|
756
|
-
;
|
757
|
-
end
|
678
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#32
|
679
|
+
def change(event); end
|
758
680
|
|
759
681
|
# Called when the old value is discarded in favour of the new value.
|
760
682
|
#
|
761
|
-
# source://diff-lcs
|
762
|
-
def discard_a(event)
|
763
|
-
;
|
764
|
-
end
|
683
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#22
|
684
|
+
def discard_a(event); end
|
765
685
|
|
766
686
|
# Called when the new value is discarded in favour of the old value.
|
767
687
|
#
|
768
|
-
# source://diff-lcs
|
769
|
-
def discard_b(event)
|
770
|
-
;
|
771
|
-
end
|
688
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#27
|
689
|
+
def discard_b(event); end
|
772
690
|
|
773
691
|
# Called when two items match.
|
774
692
|
#
|
775
|
-
# source://diff-lcs
|
776
|
-
def match(event)
|
777
|
-
;
|
778
|
-
end
|
693
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#17
|
694
|
+
def match(event); end
|
779
695
|
end
|
780
696
|
end
|
781
697
|
|
@@ -829,44 +745,38 @@ end
|
|
829
745
|
# require 'pp'
|
830
746
|
# pp diffs.map { |e| e.map { |f| f.to_a } }
|
831
747
|
#
|
832
|
-
# source://diff-lcs
|
748
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#106
|
833
749
|
class Diff::LCS::DiffCallbacks
|
834
750
|
# :yields self:
|
835
751
|
#
|
836
752
|
# @return [DiffCallbacks] a new instance of DiffCallbacks
|
837
753
|
#
|
838
|
-
# source://diff-lcs
|
754
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#110
|
839
755
|
def initialize; end
|
840
756
|
|
841
757
|
# Returns the difference set collected during the diff process.
|
842
758
|
#
|
843
|
-
# source://diff-lcs
|
759
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#108
|
844
760
|
def diffs; end
|
845
761
|
|
846
|
-
# source://diff-lcs
|
847
|
-
def discard_a(event)
|
848
|
-
;
|
849
|
-
end
|
762
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#133
|
763
|
+
def discard_a(event); end
|
850
764
|
|
851
|
-
# source://diff-lcs
|
852
|
-
def discard_b(event)
|
853
|
-
;
|
854
|
-
end
|
765
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#137
|
766
|
+
def discard_b(event); end
|
855
767
|
|
856
768
|
# Finalizes the diff process. If an unprocessed hunk still exists, then it
|
857
769
|
# is appended to the diff list.
|
858
770
|
#
|
859
|
-
# source://diff-lcs
|
771
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#125
|
860
772
|
def finish; end
|
861
773
|
|
862
|
-
# source://diff-lcs
|
863
|
-
def match(_event)
|
864
|
-
;
|
865
|
-
end
|
774
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#129
|
775
|
+
def match(_event); end
|
866
776
|
|
867
777
|
private
|
868
778
|
|
869
|
-
# source://diff-lcs
|
779
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#141
|
870
780
|
def finish_hunk; end
|
871
781
|
end
|
872
782
|
|
@@ -874,71 +784,61 @@ end
|
|
874
784
|
# each block. (So if we're not using context, every hunk will contain one
|
875
785
|
# block.) Used in the diff program (bin/ldiff).
|
876
786
|
#
|
877
|
-
# source://diff-lcs
|
787
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#8
|
878
788
|
class Diff::LCS::Hunk
|
879
789
|
# Create a hunk using references to both the old and new data, as well as the
|
880
790
|
# piece of data.
|
881
791
|
#
|
882
792
|
# @return [Hunk] a new instance of Hunk
|
883
793
|
#
|
884
|
-
# source://diff-lcs
|
885
|
-
def initialize(data_old, data_new, piece, flag_context, file_length_difference)
|
886
|
-
;
|
887
|
-
end
|
794
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#16
|
795
|
+
def initialize(data_old, data_new, piece, flag_context, file_length_difference); end
|
888
796
|
|
889
797
|
# Returns the value of attribute blocks.
|
890
798
|
#
|
891
|
-
# source://diff-lcs
|
799
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#63
|
892
800
|
def blocks; end
|
893
801
|
|
894
802
|
# Returns a diff string based on a format.
|
895
803
|
#
|
896
|
-
# source://diff-lcs
|
897
|
-
def diff(format, last = T.unsafe(nil))
|
898
|
-
;
|
899
|
-
end
|
804
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#116
|
805
|
+
def diff(format, last = T.unsafe(nil)); end
|
900
806
|
|
901
807
|
# Returns the value of attribute end_new.
|
902
808
|
#
|
903
|
-
# source://diff-lcs
|
809
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#65
|
904
810
|
def end_new; end
|
905
811
|
|
906
812
|
# Returns the value of attribute end_old.
|
907
813
|
#
|
908
|
-
# source://diff-lcs
|
814
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#65
|
909
815
|
def end_old; end
|
910
816
|
|
911
817
|
# Returns the value of attribute file_length_difference.
|
912
818
|
#
|
913
|
-
# source://diff-lcs
|
819
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#66
|
914
820
|
def file_length_difference; end
|
915
821
|
|
916
822
|
# Change the "start" and "end" fields to note that context should be added
|
917
823
|
# to this hunk.
|
918
824
|
#
|
919
|
-
# source://diff-lcs
|
825
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#70
|
920
826
|
def flag_context; end
|
921
827
|
|
922
|
-
# source://diff-lcs
|
923
|
-
def flag_context=(context)
|
924
|
-
;
|
925
|
-
end
|
828
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#72
|
829
|
+
def flag_context=(context); end
|
926
830
|
|
927
831
|
# Merges this hunk and the provided hunk together if they overlap. Returns
|
928
832
|
# a truthy value so that if there is no overlap, you can know the merge
|
929
833
|
# was skipped.
|
930
834
|
#
|
931
|
-
# source://diff-lcs
|
932
|
-
def merge(hunk)
|
933
|
-
;
|
934
|
-
end
|
835
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#98
|
836
|
+
def merge(hunk); end
|
935
837
|
|
936
838
|
# @return [Boolean]
|
937
839
|
#
|
938
|
-
# source://diff-lcs
|
939
|
-
def missing_last_newline?(data)
|
940
|
-
;
|
941
|
-
end
|
840
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#326
|
841
|
+
def missing_last_newline?(data); end
|
942
842
|
|
943
843
|
# Determines whether there is an overlap between this hunk and the
|
944
844
|
# provided hunk. This will be true if the difference between the two hunks
|
@@ -946,90 +846,70 @@ class Diff::LCS::Hunk
|
|
946
846
|
#
|
947
847
|
# @return [Boolean]
|
948
848
|
#
|
949
|
-
# source://diff-lcs
|
950
|
-
def overlaps?(hunk)
|
951
|
-
;
|
952
|
-
end
|
849
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#110
|
850
|
+
def overlaps?(hunk); end
|
953
851
|
|
954
852
|
# Returns the value of attribute start_new.
|
955
853
|
#
|
956
|
-
# source://diff-lcs
|
854
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#64
|
957
855
|
def start_new; end
|
958
856
|
|
959
857
|
# Returns the value of attribute start_old.
|
960
858
|
#
|
961
|
-
# source://diff-lcs
|
859
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#64
|
962
860
|
def start_old; end
|
963
861
|
|
964
862
|
# Merges this hunk and the provided hunk together if they overlap. Returns
|
965
863
|
# a truthy value so that if there is no overlap, you can know the merge
|
966
864
|
# was skipped.
|
967
865
|
#
|
968
|
-
# source://diff-lcs
|
969
|
-
def unshift(hunk)
|
970
|
-
;
|
971
|
-
end
|
866
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#98
|
867
|
+
def unshift(hunk); end
|
972
868
|
|
973
869
|
private
|
974
870
|
|
975
|
-
# source://diff-lcs
|
976
|
-
def context_diff(last = T.unsafe(nil))
|
977
|
-
;
|
978
|
-
end
|
871
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#213
|
872
|
+
def context_diff(last = T.unsafe(nil)); end
|
979
873
|
|
980
874
|
# Generate a range of item numbers to print. Only print 1 number if the
|
981
875
|
# range has only one item in it. Otherwise, it's 'start,end'
|
982
876
|
#
|
983
|
-
# source://diff-lcs
|
984
|
-
def context_range(mode, op, last = T.unsafe(nil))
|
985
|
-
;
|
986
|
-
end
|
877
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#293
|
878
|
+
def context_range(mode, op, last = T.unsafe(nil)); end
|
987
879
|
|
988
|
-
# source://diff-lcs
|
989
|
-
def ed_diff(format, _last = T.unsafe(nil))
|
990
|
-
;
|
991
|
-
end
|
880
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#271
|
881
|
+
def ed_diff(format, _last = T.unsafe(nil)); end
|
992
882
|
|
993
|
-
# source://diff-lcs
|
994
|
-
def encode(literal, target_encoding = T.unsafe(nil))
|
995
|
-
;
|
996
|
-
end
|
883
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#339
|
884
|
+
def encode(literal, target_encoding = T.unsafe(nil)); end
|
997
885
|
|
998
|
-
# source://diff-lcs
|
999
|
-
def encode_as(string, *args)
|
1000
|
-
;
|
1001
|
-
end
|
886
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#343
|
887
|
+
def encode_as(string, *args); end
|
1002
888
|
|
1003
889
|
# Note that an old diff can't have any context. Therefore, we know that
|
1004
890
|
# there's only one block in the hunk.
|
1005
891
|
#
|
1006
|
-
# source://diff-lcs
|
1007
|
-
def old_diff(_last = T.unsafe(nil))
|
1008
|
-
;
|
1009
|
-
end
|
892
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#135
|
893
|
+
def old_diff(_last = T.unsafe(nil)); end
|
1010
894
|
|
1011
|
-
# source://diff-lcs
|
1012
|
-
def unified_diff(last = T.unsafe(nil))
|
1013
|
-
;
|
1014
|
-
end
|
895
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#160
|
896
|
+
def unified_diff(last = T.unsafe(nil)); end
|
1015
897
|
|
1016
898
|
# Generate a range of item numbers to print for unified diff. Print number
|
1017
899
|
# where block starts, followed by number of lines in the block
|
1018
900
|
# (don't print number of lines if it's 1)
|
1019
901
|
#
|
1020
|
-
# source://diff-lcs
|
1021
|
-
def unified_range(mode, last)
|
1022
|
-
;
|
1023
|
-
end
|
902
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#311
|
903
|
+
def unified_range(mode, last); end
|
1024
904
|
end
|
1025
905
|
|
1026
|
-
# source://diff-lcs
|
906
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#10
|
1027
907
|
Diff::LCS::Hunk::ED_DIFF_OP_ACTION = T.let(T.unsafe(nil), Hash)
|
1028
908
|
|
1029
|
-
# source://diff-lcs
|
909
|
+
# source://diff-lcs//lib/diff/lcs/hunk.rb#9
|
1030
910
|
Diff::LCS::Hunk::OLD_DIFF_OP_ACTION = T.let(T.unsafe(nil), Hash)
|
1031
911
|
|
1032
|
-
# source://diff-lcs
|
912
|
+
# source://diff-lcs//lib/diff/lcs/internals.rb#29
|
1033
913
|
module Diff::LCS::Internals
|
1034
914
|
class << self
|
1035
915
|
# This method will analyze the provided patchset to provide a single-pass
|
@@ -1037,10 +917,8 @@ module Diff::LCS::Internals
|
|
1037
917
|
# the object form of same) and detection of whether the patchset represents
|
1038
918
|
# changes to be made.
|
1039
919
|
#
|
1040
|
-
# source://diff-lcs
|
1041
|
-
def analyze_patchset(patchset, depth = T.unsafe(nil))
|
1042
|
-
;
|
1043
|
-
end
|
920
|
+
# source://diff-lcs//lib/diff/lcs/internals.rb#102
|
921
|
+
def analyze_patchset(patchset, depth = T.unsafe(nil)); end
|
1044
922
|
|
1045
923
|
# Examine the patchset and the source to see in which direction the
|
1046
924
|
# patch should be applied.
|
@@ -1050,10 +928,8 @@ module Diff::LCS::Internals
|
|
1050
928
|
# Diff::LCS::Change as its source, as an array will cause the creation
|
1051
929
|
# of one of the above.
|
1052
930
|
#
|
1053
|
-
# source://diff-lcs
|
1054
|
-
def intuit_diff_direction(src, patchset, limit = T.unsafe(nil))
|
1055
|
-
;
|
1056
|
-
end
|
931
|
+
# source://diff-lcs//lib/diff/lcs/internals.rb#147
|
932
|
+
def intuit_diff_direction(src, patchset, limit = T.unsafe(nil)); end
|
1057
933
|
|
1058
934
|
# Compute the longest common subsequence between the sequenced
|
1059
935
|
# Enumerables +a+ and +b+. The result is an array whose contents is such
|
@@ -1064,10 +940,8 @@ module Diff::LCS::Internals
|
|
1064
940
|
# assert_equal(a[i], b[e]) unless e.nil?
|
1065
941
|
# end
|
1066
942
|
#
|
1067
|
-
# source://diff-lcs
|
1068
|
-
def lcs(a, b)
|
1069
|
-
;
|
1070
|
-
end
|
943
|
+
# source://diff-lcs//lib/diff/lcs/internals.rb#41
|
944
|
+
def lcs(a, b); end
|
1071
945
|
|
1072
946
|
private
|
1073
947
|
|
@@ -1075,19 +949,15 @@ module Diff::LCS::Internals
|
|
1075
949
|
# Enumerable, compute the inverse of +vector+ that maps this Enumerable
|
1076
950
|
# onto the collection. (Currently unused.)
|
1077
951
|
#
|
1078
|
-
# source://diff-lcs
|
1079
|
-
def inverse_vector(a, vector)
|
1080
|
-
;
|
1081
|
-
end
|
952
|
+
# source://diff-lcs//lib/diff/lcs/internals.rb#286
|
953
|
+
def inverse_vector(a, vector); end
|
1082
954
|
|
1083
955
|
# Returns a hash mapping each element of an Enumerable to the set of
|
1084
956
|
# positions it occupies in the Enumerable, optionally restricted to the
|
1085
957
|
# elements specified in the range of indexes specified by +interval+.
|
1086
958
|
#
|
1087
|
-
# source://diff-lcs
|
1088
|
-
def position_hash(enum, interval)
|
1089
|
-
;
|
1090
|
-
end
|
959
|
+
# source://diff-lcs//lib/diff/lcs/internals.rb#298
|
960
|
+
def position_hash(enum, interval); end
|
1091
961
|
|
1092
962
|
# Find the place at which +value+ would normally be inserted into the
|
1093
963
|
# Enumerable. If that place is already occupied by +value+, do nothing
|
@@ -1098,10 +968,8 @@ module Diff::LCS::Internals
|
|
1098
968
|
#
|
1099
969
|
# This operation preserves the sort order.
|
1100
970
|
#
|
1101
|
-
# source://diff-lcs
|
1102
|
-
def replace_next_larger(enum, value, last_index = T.unsafe(nil))
|
1103
|
-
;
|
1104
|
-
end
|
971
|
+
# source://diff-lcs//lib/diff/lcs/internals.rb#252
|
972
|
+
def replace_next_larger(enum, value, last_index = T.unsafe(nil)); end
|
1105
973
|
end
|
1106
974
|
end
|
1107
975
|
|
@@ -1170,7 +1038,7 @@ end
|
|
1170
1038
|
# require 'pp'
|
1171
1039
|
# pp diffs.map { |e| e.to_a }
|
1172
1040
|
#
|
1173
|
-
# source://diff-lcs
|
1041
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#301
|
1174
1042
|
class Diff::LCS::SDiffCallbacks
|
1175
1043
|
# :yields self:
|
1176
1044
|
#
|
@@ -1178,33 +1046,25 @@ class Diff::LCS::SDiffCallbacks
|
|
1178
1046
|
# @yield [_self]
|
1179
1047
|
# @yieldparam _self [Diff::LCS::SDiffCallbacks] the object that the method was called on
|
1180
1048
|
#
|
1181
|
-
# source://diff-lcs
|
1049
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#305
|
1182
1050
|
def initialize; end
|
1183
1051
|
|
1184
|
-
# source://diff-lcs
|
1185
|
-
def change(event)
|
1186
|
-
;
|
1187
|
-
end
|
1052
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#322
|
1053
|
+
def change(event); end
|
1188
1054
|
|
1189
1055
|
# Returns the difference set collected during the diff process.
|
1190
1056
|
#
|
1191
|
-
# source://diff-lcs
|
1057
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#303
|
1192
1058
|
def diffs; end
|
1193
1059
|
|
1194
|
-
# source://diff-lcs
|
1195
|
-
def discard_a(event)
|
1196
|
-
;
|
1197
|
-
end
|
1060
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#314
|
1061
|
+
def discard_a(event); end
|
1198
1062
|
|
1199
|
-
# source://diff-lcs
|
1200
|
-
def discard_b(event)
|
1201
|
-
;
|
1202
|
-
end
|
1063
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#318
|
1064
|
+
def discard_b(event); end
|
1203
1065
|
|
1204
|
-
# source://diff-lcs
|
1205
|
-
def match(event)
|
1206
|
-
;
|
1207
|
-
end
|
1066
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#310
|
1067
|
+
def match(event); end
|
1208
1068
|
end
|
1209
1069
|
|
1210
1070
|
# An alias for DefaultCallbacks that is used in
|
@@ -1212,8 +1072,8 @@ end
|
|
1212
1072
|
#
|
1213
1073
|
# Diff::LCS.LCS(seq1, seq2, Diff::LCS::SequenceCallbacks)
|
1214
1074
|
#
|
1215
|
-
# source://diff-lcs
|
1075
|
+
# source://diff-lcs//lib/diff/lcs/callbacks.rb#44
|
1216
1076
|
Diff::LCS::SequenceCallbacks = Diff::LCS::DefaultCallbacks
|
1217
1077
|
|
1218
|
-
# source://diff-lcs
|
1078
|
+
# source://diff-lcs//lib/diff/lcs.rb#52
|
1219
1079
|
Diff::LCS::VERSION = T.let(T.unsafe(nil), String)
|