minitest-distributed 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +16 -4
  3. data/Gemfile +1 -0
  4. data/docker-compose.yml +5 -0
  5. data/lib/minitest/distributed/configuration.rb +5 -0
  6. data/lib/minitest/distributed/reporters/test_order_reporter.rb +36 -0
  7. data/lib/minitest/distributed/test_selector.rb +11 -1
  8. data/lib/minitest/distributed/version.rb +1 -1
  9. data/lib/minitest/test_order_plugin.rb +21 -0
  10. data/minitest-distributed.gemspec +1 -1
  11. data/sorbet/config +1 -0
  12. data/sorbet/rbi/gems/ast.rbi +49 -0
  13. data/sorbet/rbi/gems/connection_pool.rbi +55 -0
  14. data/sorbet/rbi/gems/minitest-distributed.rbi +15 -0
  15. data/sorbet/rbi/gems/minitest.rbi +426 -0
  16. data/sorbet/rbi/gems/parallel.rbi +86 -0
  17. data/sorbet/rbi/gems/parser.rbi +1477 -0
  18. data/sorbet/rbi/gems/rainbow.rbi +122 -0
  19. data/sorbet/rbi/gems/rake.rbi +647 -0
  20. data/sorbet/rbi/gems/redis-client.rbi +311 -0
  21. data/sorbet/rbi/gems/redis.rbi +409 -0
  22. data/sorbet/rbi/gems/regexp_parser.rbi +984 -0
  23. data/sorbet/rbi/gems/rexml.rbi +599 -0
  24. data/sorbet/rbi/gems/rubocop-ast.rbi +1398 -0
  25. data/sorbet/rbi/gems/rubocop-minitest.rbi +406 -0
  26. data/sorbet/rbi/gems/rubocop-rake.rbi +85 -0
  27. data/sorbet/rbi/gems/rubocop-sorbet.rbi +218 -0
  28. data/sorbet/rbi/gems/rubocop.rbi +9351 -0
  29. data/sorbet/rbi/gems/ruby-progressbar.rbi +304 -0
  30. data/sorbet/rbi/gems/toxiproxy.rbi +112 -0
  31. data/sorbet/rbi/gems/unicode-display_width.rbi +23 -0
  32. data/sorbet/rbi/minitest.rbi +5 -1
  33. data/sorbet/rbi/rails.rbi +1 -0
  34. data/sorbet/rbi/rbconfig.rbi +1 -1
  35. metadata +26 -5
  36. data/sorbet/rbi/redis.rbi +0 -106
@@ -0,0 +1,599 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strict
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rexml/all/rexml.rbi
9
+ #
10
+ # rexml-3.2.5
11
+
12
+ module REXML
13
+ end
14
+ module REXML::Security
15
+ def self.entity_expansion_limit; end
16
+ def self.entity_expansion_limit=(val); end
17
+ def self.entity_expansion_text_limit; end
18
+ def self.entity_expansion_text_limit=(val); end
19
+ end
20
+ class REXML::ParseException < RuntimeError
21
+ def context; end
22
+ def continued_exception; end
23
+ def continued_exception=(arg0); end
24
+ def initialize(message, source = nil, parser = nil, exception = nil); end
25
+ def line; end
26
+ def parser; end
27
+ def parser=(arg0); end
28
+ def position; end
29
+ def source; end
30
+ def source=(arg0); end
31
+ def to_s; end
32
+ end
33
+ module REXML::Formatters
34
+ end
35
+ class REXML::Formatters::Default
36
+ def initialize(ie_hack = nil); end
37
+ def write(node, output); end
38
+ def write_cdata(node, output); end
39
+ def write_comment(node, output); end
40
+ def write_document(node, output); end
41
+ def write_element(node, output); end
42
+ def write_instruction(node, output); end
43
+ def write_text(node, output); end
44
+ end
45
+ class REXML::Formatters::Pretty < REXML::Formatters::Default
46
+ def compact; end
47
+ def compact=(arg0); end
48
+ def indent_text(string, level = nil, style = nil, indentfirstline = nil); end
49
+ def initialize(indentation = nil, ie_hack = nil); end
50
+ def width; end
51
+ def width=(arg0); end
52
+ def wrap(string, width); end
53
+ def write_cdata(node, output); end
54
+ def write_comment(node, output); end
55
+ def write_document(node, output); end
56
+ def write_element(node, output); end
57
+ def write_text(node, output); end
58
+ end
59
+ module REXML::Node
60
+ def each_recursive(&block); end
61
+ def find_first_recursive(&block); end
62
+ def indent(to, ind); end
63
+ def index_in_parent; end
64
+ def next_sibling_node; end
65
+ def parent?; end
66
+ def previous_sibling_node; end
67
+ def to_s(indent = nil); end
68
+ end
69
+ class REXML::Child
70
+ def bytes; end
71
+ def document; end
72
+ def initialize(parent = nil); end
73
+ def next_sibling; end
74
+ def next_sibling=(other); end
75
+ def parent; end
76
+ def parent=(other); end
77
+ def previous_sibling; end
78
+ def previous_sibling=(other); end
79
+ def remove; end
80
+ def replace_with(child); end
81
+ include REXML::Node
82
+ end
83
+ class REXML::Parent < REXML::Child
84
+ def <<(object); end
85
+ def [](index); end
86
+ def []=(*args); end
87
+ def add(object); end
88
+ def children; end
89
+ def deep_clone; end
90
+ def delete(object); end
91
+ def delete_at(index); end
92
+ def delete_if(&block); end
93
+ def each(&block); end
94
+ def each_child(&block); end
95
+ def each_index(&block); end
96
+ def index(child); end
97
+ def initialize(parent = nil); end
98
+ def insert_after(child1, child2); end
99
+ def insert_before(child1, child2); end
100
+ def length; end
101
+ def parent?; end
102
+ def push(object); end
103
+ def replace_child(to_replace, replacement); end
104
+ def size; end
105
+ def to_a; end
106
+ def unshift(object); end
107
+ include Enumerable
108
+ end
109
+ module REXML::XMLTokens
110
+ end
111
+ module REXML::Namespace
112
+ def expanded_name; end
113
+ def fully_expanded_name; end
114
+ def has_name?(other, ns = nil); end
115
+ def local_name; end
116
+ def name; end
117
+ def name=(name); end
118
+ def prefix; end
119
+ def prefix=(arg0); end
120
+ include REXML::XMLTokens
121
+ end
122
+ module REXML::Encoding
123
+ def decode(string); end
124
+ def encode(string); end
125
+ def encoding; end
126
+ def encoding=(encoding); end
127
+ def find_encoding(name); end
128
+ end
129
+ class REXML::SourceFactory
130
+ def self.create_from(arg); end
131
+ end
132
+ class REXML::Source
133
+ def buffer; end
134
+ def consume(pattern); end
135
+ def current_line; end
136
+ def detect_encoding; end
137
+ def empty?; end
138
+ def encoding; end
139
+ def encoding=(enc); end
140
+ def encoding_updated; end
141
+ def initialize(arg, encoding = nil); end
142
+ def line; end
143
+ def match(pattern, cons = nil); end
144
+ def match_to(char, pattern); end
145
+ def match_to_consume(char, pattern); end
146
+ def position; end
147
+ def read; end
148
+ def scan(pattern, cons = nil); end
149
+ include REXML::Encoding
150
+ end
151
+ class REXML::IOSource < REXML::Source
152
+ def consume(pattern); end
153
+ def current_line; end
154
+ def empty?; end
155
+ def encoding_updated; end
156
+ def initialize(arg, block_size = nil, encoding = nil); end
157
+ def match(pattern, cons = nil); end
158
+ def position; end
159
+ def read; end
160
+ def readline; end
161
+ def scan(pattern, cons = nil); end
162
+ end
163
+ class REXML::Entity < REXML::Child
164
+ def external; end
165
+ def initialize(stream, value = nil, parent = nil, reference = nil); end
166
+ def name; end
167
+ def ndata; end
168
+ def normalized; end
169
+ def pubid; end
170
+ def ref; end
171
+ def self.matches?(string); end
172
+ def to_s; end
173
+ def unnormalized; end
174
+ def value; end
175
+ def write(out, indent = nil); end
176
+ include REXML::XMLTokens
177
+ end
178
+ module REXML::EntityConst
179
+ end
180
+ class REXML::AttlistDecl < REXML::Child
181
+ def [](key); end
182
+ def each(&block); end
183
+ def element_name; end
184
+ def include?(key); end
185
+ def initialize(source); end
186
+ def node_type; end
187
+ def write(out, indent = nil); end
188
+ include Enumerable
189
+ end
190
+ class REXML::ReferenceWriter
191
+ def initialize(id_type, public_id_literal, system_literal, context = nil); end
192
+ def write(output); end
193
+ end
194
+ class REXML::DocType < REXML::Parent
195
+ def add(child); end
196
+ def attribute_of(element, attribute); end
197
+ def attributes_of(element); end
198
+ def clone; end
199
+ def context; end
200
+ def entities; end
201
+ def entity(name); end
202
+ def external_id; end
203
+ def initialize(first, parent = nil); end
204
+ def name; end
205
+ def namespaces; end
206
+ def node_type; end
207
+ def notation(name); end
208
+ def notations; end
209
+ def public; end
210
+ def system; end
211
+ def write(output, indent = nil, transitive = nil, ie_hack = nil); end
212
+ include REXML::XMLTokens
213
+ end
214
+ class REXML::Declaration < REXML::Child
215
+ def initialize(src); end
216
+ def to_s; end
217
+ def write(output, indent); end
218
+ end
219
+ class REXML::ElementDecl < REXML::Declaration
220
+ def initialize(src); end
221
+ end
222
+ class REXML::ExternalEntity < REXML::Child
223
+ def initialize(src); end
224
+ def to_s; end
225
+ def write(output, indent); end
226
+ end
227
+ class REXML::NotationDecl < REXML::Child
228
+ def initialize(name, middle, pub, sys); end
229
+ def name; end
230
+ def public; end
231
+ def public=(arg0); end
232
+ def system; end
233
+ def system=(arg0); end
234
+ def to_s; end
235
+ def write(output, indent = nil); end
236
+ end
237
+ class REXML::Text < REXML::Child
238
+ def <<(to_append); end
239
+ def <=>(other); end
240
+ def clear_cache; end
241
+ def clone; end
242
+ def doctype; end
243
+ def empty?; end
244
+ def indent_text(string, level = nil, style = nil, indentfirstline = nil); end
245
+ def initialize(arg, respect_whitespace = nil, parent = nil, raw = nil, entity_filter = nil, illegal = nil); end
246
+ def inspect; end
247
+ def node_type; end
248
+ def parent=(parent); end
249
+ def raw; end
250
+ def raw=(arg0); end
251
+ def self.check(string, pattern, doctype); end
252
+ def self.expand(ref, doctype, filter); end
253
+ def self.normalize(input, doctype = nil, entity_filter = nil); end
254
+ def self.read_with_substitution(input, illegal = nil); end
255
+ def self.unnormalize(string, doctype = nil, filter = nil, illegal = nil); end
256
+ def to_s; end
257
+ def value; end
258
+ def value=(val); end
259
+ def wrap(string, width, addnewline = nil); end
260
+ def write(writer, indent = nil, transitive = nil, ie_hack = nil); end
261
+ def write_with_substitution(out, input); end
262
+ def xpath; end
263
+ include Comparable
264
+ end
265
+ class REXML::Attribute
266
+ def ==(other); end
267
+ def clone; end
268
+ def doctype; end
269
+ def element; end
270
+ def element=(element); end
271
+ def hash; end
272
+ def initialize(first, second = nil, parent = nil); end
273
+ def inspect; end
274
+ def namespace(arg = nil); end
275
+ def node_type; end
276
+ def normalized=(arg0); end
277
+ def prefix; end
278
+ def remove; end
279
+ def to_s; end
280
+ def to_string; end
281
+ def value; end
282
+ def write(output, indent = nil); end
283
+ def xpath; end
284
+ include REXML::Namespace
285
+ include REXML::Node
286
+ end
287
+ class REXML::CData < REXML::Text
288
+ def clone; end
289
+ def initialize(first, whitespace = nil, parent = nil); end
290
+ def to_s; end
291
+ def value; end
292
+ def write(output = nil, indent = nil, transitive = nil, ie_hack = nil); end
293
+ end
294
+ module REXML::Functions
295
+ end
296
+ module REXML::Parsers
297
+ end
298
+ class REXML::Parsers::XPathParser
299
+ def AdditiveExpr(path, parsed); end
300
+ def AndExpr(path, parsed); end
301
+ def EqualityExpr(path, parsed); end
302
+ def FilterExpr(path, parsed); end
303
+ def FunctionCall(rest, parsed); end
304
+ def LocationPath(path, parsed); end
305
+ def MultiplicativeExpr(path, parsed); end
306
+ def NodeTest(path, parsed); end
307
+ def OrExpr(path, parsed); end
308
+ def PathExpr(path, parsed); end
309
+ def Predicate(path, parsed); end
310
+ def PrimaryExpr(path, parsed); end
311
+ def RelationalExpr(path, parsed); end
312
+ def RelativeLocationPath(path, parsed); end
313
+ def UnaryExpr(path, parsed); end
314
+ def UnionExpr(path, parsed); end
315
+ def abbreviate(path); end
316
+ def expand(path); end
317
+ def get_group(string); end
318
+ def namespaces=(namespaces); end
319
+ def parse(path); end
320
+ def parse_args(string); end
321
+ def predicate(path); end
322
+ def predicate_to_string(path, &block); end
323
+ include REXML::XMLTokens
324
+ end
325
+ module REXML::DClonable
326
+ end
327
+ class REXML::XPathParser
328
+ def []=(variable_name, value); end
329
+ def child(nodeset); end
330
+ def compare(a, operator, b); end
331
+ def descendant(nodeset, include_self); end
332
+ def descendant_recursive(raw_node, new_nodeset, new_nodes, include_self); end
333
+ def each_unnode(nodeset); end
334
+ def enter(tag, *args); end
335
+ def equality_relational_compare(set1, op, set2); end
336
+ def evaluate_predicate(expression, nodesets); end
337
+ def expr(path_stack, nodeset, context = nil); end
338
+ def filter_nodeset(nodeset); end
339
+ def first(path_stack, node); end
340
+ def following(node); end
341
+ def following_node_of(node); end
342
+ def get_first(path, nodeset); end
343
+ def get_namespace(node, prefix); end
344
+ def initialize(strict: nil); end
345
+ def leave(tag, *args); end
346
+ def match(path_stack, nodeset); end
347
+ def namespaces=(namespaces = nil); end
348
+ def next_sibling_node(node); end
349
+ def node_test(path_stack, nodesets, any_type: nil); end
350
+ def norm(b); end
351
+ def normalize_compare_values(a, operator, b); end
352
+ def parse(path, nodeset); end
353
+ def preceding(node); end
354
+ def preceding_node_of(node); end
355
+ def predicate(path, nodeset); end
356
+ def sort(array_of_nodes, order); end
357
+ def step(path_stack, any_type: nil, order: nil); end
358
+ def strict?; end
359
+ def trace(*args); end
360
+ def unnode(nodeset); end
361
+ def value_type(value); end
362
+ def variables=(vars = nil); end
363
+ include REXML::XMLTokens
364
+ end
365
+ class REXML::XPathNode
366
+ def context; end
367
+ def initialize(node, context = nil); end
368
+ def position; end
369
+ def raw_node; end
370
+ end
371
+ class REXML::XPath
372
+ def self.each(element, path = nil, namespaces = nil, variables = nil, options = nil, &block); end
373
+ def self.first(element, path = nil, namespaces = nil, variables = nil, options = nil); end
374
+ def self.match(element, path = nil, namespaces = nil, variables = nil, options = nil); end
375
+ include REXML::Functions
376
+ end
377
+ class REXML::Element < REXML::Parent
378
+ def [](name_or_index); end
379
+ def __to_xpath_helper(node); end
380
+ def add_attribute(key, value = nil); end
381
+ def add_attributes(hash); end
382
+ def add_element(element, attrs = nil); end
383
+ def add_namespace(prefix, uri = nil); end
384
+ def add_text(text); end
385
+ def attribute(name, namespace = nil); end
386
+ def attributes; end
387
+ def cdatas; end
388
+ def clone; end
389
+ def comments; end
390
+ def context; end
391
+ def context=(arg0); end
392
+ def delete_attribute(key); end
393
+ def delete_element(element); end
394
+ def delete_namespace(namespace = nil); end
395
+ def document; end
396
+ def each_element(xpath = nil, &block); end
397
+ def each_element_with_attribute(key, value = nil, max = nil, name = nil, &block); end
398
+ def each_element_with_text(text = nil, max = nil, name = nil, &block); end
399
+ def each_with_something(test, max = nil, name = nil); end
400
+ def elements; end
401
+ def get_elements(xpath); end
402
+ def get_text(path = nil); end
403
+ def has_attributes?; end
404
+ def has_elements?; end
405
+ def has_text?; end
406
+ def ignore_whitespace_nodes; end
407
+ def initialize(arg = nil, parent = nil, context = nil); end
408
+ def inspect; end
409
+ def instructions; end
410
+ def namespace(prefix = nil); end
411
+ def namespaces; end
412
+ def next_element; end
413
+ def node_type; end
414
+ def prefixes; end
415
+ def previous_element; end
416
+ def raw; end
417
+ def root; end
418
+ def root_node; end
419
+ def text(path = nil); end
420
+ def text=(text); end
421
+ def texts; end
422
+ def whitespace; end
423
+ def write(output = nil, indent = nil, transitive = nil, ie_hack = nil); end
424
+ def xpath; end
425
+ include REXML::Namespace
426
+ end
427
+ class REXML::Elements
428
+ def <<(element = nil); end
429
+ def [](index, name = nil); end
430
+ def []=(index, element); end
431
+ def add(element = nil); end
432
+ def collect(xpath = nil); end
433
+ def delete(element); end
434
+ def delete_all(xpath); end
435
+ def each(xpath = nil); end
436
+ def empty?; end
437
+ def index(element); end
438
+ def initialize(parent); end
439
+ def inject(xpath = nil, initial = nil); end
440
+ def literalize(name); end
441
+ def parent; end
442
+ def size; end
443
+ def to_a(xpath = nil); end
444
+ include Enumerable
445
+ end
446
+ class REXML::Attributes < Hash
447
+ def <<(attribute); end
448
+ def [](name); end
449
+ def []=(name, value); end
450
+ def add(attribute); end
451
+ def delete(attribute); end
452
+ def delete_all(name); end
453
+ def each; end
454
+ def each_attribute; end
455
+ def get_attribute(name); end
456
+ def get_attribute_ns(namespace, name); end
457
+ def initialize(element); end
458
+ def length; end
459
+ def namespaces; end
460
+ def prefixes; end
461
+ def size; end
462
+ def to_a; end
463
+ end
464
+ class REXML::XMLDecl < REXML::Child
465
+ def ==(other); end
466
+ def clone; end
467
+ def content(enc); end
468
+ def dowrite; end
469
+ def encoding=(enc); end
470
+ def initialize(version = nil, encoding = nil, standalone = nil); end
471
+ def inspect; end
472
+ def node_type; end
473
+ def nowrite; end
474
+ def old_enc=(encoding); end
475
+ def self.default; end
476
+ def stand_alone?; end
477
+ def standalone; end
478
+ def standalone=(arg0); end
479
+ def version; end
480
+ def version=(arg0); end
481
+ def write(writer, indent = nil, transitive = nil, ie_hack = nil); end
482
+ def writeencoding; end
483
+ def writethis; end
484
+ def xmldecl(version, encoding, standalone); end
485
+ include REXML::Encoding
486
+ end
487
+ class REXML::Comment < REXML::Child
488
+ def <=>(other); end
489
+ def ==(other); end
490
+ def clone; end
491
+ def initialize(first, second = nil); end
492
+ def node_type; end
493
+ def string; end
494
+ def string=(arg0); end
495
+ def to_s; end
496
+ def write(output, indent = nil, transitive = nil, ie_hack = nil); end
497
+ include Comparable
498
+ end
499
+ class REXML::Instruction < REXML::Child
500
+ def ==(other); end
501
+ def clone; end
502
+ def content; end
503
+ def content=(arg0); end
504
+ def initialize(target, content = nil); end
505
+ def inspect; end
506
+ def node_type; end
507
+ def target; end
508
+ def target=(arg0); end
509
+ def write(writer, indent = nil, transitive = nil, ie_hack = nil); end
510
+ end
511
+ class REXML::Output
512
+ def <<(content); end
513
+ def encoding; end
514
+ def initialize(real_IO, encd = nil); end
515
+ def to_s; end
516
+ include REXML::Encoding
517
+ end
518
+ class REXML::UndefinedNamespaceException < REXML::ParseException
519
+ def initialize(prefix, source, parser); end
520
+ end
521
+ class REXML::Parsers::BaseParser
522
+ def add_listener(listener); end
523
+ def empty?; end
524
+ def entity(reference, entities); end
525
+ def has_next?; end
526
+ def initialize(source); end
527
+ def need_source_encoding_update?(xml_declaration_encoding); end
528
+ def normalize(input, entities = nil, entity_filter = nil); end
529
+ def parse_attributes(prefixes, curr_ns); end
530
+ def parse_id(base_error_message, accept_external_id:, accept_public_id:); end
531
+ def parse_id_invalid_details(accept_external_id:, accept_public_id:); end
532
+ def parse_name(base_error_message); end
533
+ def peek(depth = nil); end
534
+ def position; end
535
+ def process_instruction; end
536
+ def pull; end
537
+ def pull_event; end
538
+ def source; end
539
+ def stream=(source); end
540
+ def unnormalize(string, entities = nil, filter = nil); end
541
+ def unshift(token); end
542
+ end
543
+ class REXML::Parsers::StreamParser
544
+ def add_listener(listener); end
545
+ def initialize(source, listener); end
546
+ def parse; end
547
+ end
548
+ module REXML::Validation
549
+ end
550
+ class REXML::Validation::ValidationException < RuntimeError
551
+ def initialize(msg); end
552
+ end
553
+ class REXML::Parsers::TreeParser
554
+ def add_listener(listener); end
555
+ def initialize(source, build_context = nil); end
556
+ def parse; end
557
+ end
558
+ class REXML::Document < REXML::Element
559
+ def <<(child); end
560
+ def add(child); end
561
+ def add_element(arg = nil, arg2 = nil); end
562
+ def build(source); end
563
+ def clone; end
564
+ def doctype; end
565
+ def document; end
566
+ def encoding; end
567
+ def entity_expansion_count; end
568
+ def expanded_name; end
569
+ def initialize(source = nil, context = nil); end
570
+ def name; end
571
+ def node_type; end
572
+ def record_entity_expansion; end
573
+ def root; end
574
+ def self.entity_expansion_limit; end
575
+ def self.entity_expansion_limit=(val); end
576
+ def self.entity_expansion_text_limit; end
577
+ def self.entity_expansion_text_limit=(val); end
578
+ def self.parse_stream(source, listener); end
579
+ def stand_alone?; end
580
+ def version; end
581
+ def write(*arguments); end
582
+ def xml_decl; end
583
+ end
584
+ module REXML::StreamListener
585
+ def attlistdecl(element_name, attributes, raw_content); end
586
+ def cdata(content); end
587
+ def comment(comment); end
588
+ def doctype(name, pub_sys, long_name, uri); end
589
+ def doctype_end; end
590
+ def elementdecl(content); end
591
+ def entity(content); end
592
+ def entitydecl(content); end
593
+ def instruction(name, instruction); end
594
+ def notationdecl(content); end
595
+ def tag_end(name); end
596
+ def tag_start(name, attrs); end
597
+ def text(text); end
598
+ def xmldecl(version, encoding, standalone); end
599
+ end