sorbet-result 1.0.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/.standard.yml +6 -0
  4. data/.tool-versions +1 -1
  5. data/CHANGELOG.md +21 -0
  6. data/Gemfile +3 -5
  7. data/Gemfile.lock +79 -64
  8. data/README.md +25 -2
  9. data/Rakefile +3 -5
  10. data/lib/minitest/result_assertions.rb +48 -0
  11. data/lib/sorbet-result.rb +1 -5
  12. data/lib/typed/result.rb +199 -7
  13. data/sorbet/rbi/gems/.gitattributes +1 -0
  14. data/sorbet/rbi/gems/ast@2.4.2.rbi +1 -0
  15. data/sorbet/rbi/gems/erubi@1.13.0.rbi +150 -0
  16. data/sorbet/rbi/gems/{io-console@0.6.0.rbi → io-console@0.7.2.rbi} +1 -0
  17. data/sorbet/rbi/gems/{json@2.6.3.rbi → json@2.7.5.rbi} +168 -72
  18. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14238 -0
  19. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +240 -0
  20. data/sorbet/rbi/gems/{minitest@5.18.1.rbi → minitest@5.25.1.rbi} +337 -282
  21. data/sorbet/rbi/gems/netrc@0.11.0.rbi +1 -0
  22. data/sorbet/rbi/gems/{parallel@1.23.0.rbi → parallel@1.26.3.rbi} +38 -20
  23. data/sorbet/rbi/gems/{parser@3.2.2.3.rbi → parser@3.3.5.1.rbi} +663 -2397
  24. data/sorbet/rbi/gems/prism@1.2.0.rbi +39085 -0
  25. data/sorbet/rbi/gems/psych@5.1.2.rbi +1732 -0
  26. data/sorbet/rbi/gems/{racc@1.7.1.rbi → racc@1.8.1.rbi} +37 -36
  27. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +1 -0
  28. data/sorbet/rbi/gems/{rake@13.0.6.rbi → rake@13.2.1.rbi} +79 -75
  29. data/sorbet/rbi/gems/rbi@0.2.1.rbi +4535 -0
  30. data/sorbet/rbi/gems/{regexp_parser@2.8.1.rbi → regexp_parser@2.9.2.rbi} +190 -167
  31. data/sorbet/rbi/gems/{reline@0.3.5.rbi → reline@0.5.10.rbi} +1 -0
  32. data/sorbet/rbi/gems/{rubocop-ast@1.29.0.rbi → rubocop-ast@1.33.1.rbi} +1220 -748
  33. data/sorbet/rbi/gems/rubocop-performance@1.22.1.rbi +9 -0
  34. data/sorbet/rbi/gems/rubocop-sorbet@0.7.8.rbi +9 -0
  35. data/sorbet/rbi/gems/{rubocop@1.52.1.rbi → rubocop@1.66.1.rbi} +6236 -3446
  36. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1 -0
  37. data/sorbet/rbi/gems/spoom@1.5.0.rbi +4932 -0
  38. data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +9 -0
  39. data/sorbet/rbi/gems/standard-performance@1.5.0.rbi +9 -0
  40. data/sorbet/rbi/gems/standard-sorbet@0.0.2.rbi +53 -0
  41. data/sorbet/rbi/gems/standard@1.41.1.rbi +926 -0
  42. data/sorbet/rbi/gems/stringio@3.1.1.rbi +9 -0
  43. data/sorbet/rbi/gems/{tapioca@0.11.6.rbi → tapioca@0.16.3.rbi} +937 -635
  44. data/sorbet/rbi/gems/{thor@1.2.2.rbi → thor@1.3.2.rbi} +832 -419
  45. data/sorbet/rbi/gems/{unicode-display_width@2.4.2.rbi → unicode-display_width@2.6.0.rbi} +1 -0
  46. data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
  47. data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.37.rbi} +431 -271
  48. data/sorbet/tapioca/config.yml +3 -12
  49. data/sorbet/tapioca/require.rb +0 -1
  50. metadata +37 -47
  51. data/.rubocop.yml +0 -33
  52. data/lib/typed/failure.rb +0 -81
  53. data/lib/typed/success.rb +0 -80
  54. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +0 -1083
  55. data/sorbet/rbi/gems/irb@1.7.0.rbi +0 -342
  56. data/sorbet/rbi/gems/rbi@0.0.16.rbi +0 -3008
  57. data/sorbet/rbi/gems/rexml@3.2.5.rbi +0 -4717
  58. data/sorbet/rbi/gems/rubocop-minitest@0.31.0.rbi +0 -2528
  59. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +0 -328
  60. data/sorbet/rbi/gems/rubocop-sorbet@0.7.0.rbi +0 -1043
  61. data/sorbet/rbi/gems/spoom@1.2.1.rbi +0 -2503
  62. data/sorbet/rbi/gems/unparser@0.6.8.rbi +0 -4525
  63. data/sorbet/rbi/gems/zeitwerk@2.6.8.rbi +0 -986
@@ -4,6 +4,7 @@
4
4
  # This is an autogenerated file for types exported from the `netrc` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem netrc`.
6
6
 
7
+
7
8
  # source://netrc//lib/netrc.rb#3
8
9
  class Netrc
9
10
  # @return [Netrc] a new instance of Netrc
@@ -4,6 +4,7 @@
4
4
  # This is an autogenerated file for types exported from the `parallel` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem parallel`.
6
6
 
7
+
7
8
  # source://parallel//lib/parallel/version.rb#2
8
9
  module Parallel
9
10
  class << self
@@ -24,10 +25,10 @@ module Parallel
24
25
  def each_with_index(array, options = T.unsafe(nil), &block); end
25
26
 
26
27
  # source://parallel//lib/parallel.rb#307
27
- def filter_map(*args, &block); end
28
+ def filter_map(*_arg0, **_arg1, &_arg2); end
28
29
 
29
30
  # source://parallel//lib/parallel.rb#303
30
- def flat_map(*args, &block); end
31
+ def flat_map(*_arg0, **_arg1, &_arg2); end
31
32
 
32
33
  # source://parallel//lib/parallel.rb#228
33
34
  def in_processes(options = T.unsafe(nil), &block); end
@@ -46,63 +47,80 @@ module Parallel
46
47
  # source://parallel//lib/parallel.rb#312
47
48
  def physical_processor_count; end
48
49
 
49
- # Number of processors seen by the OS, used for process scheduling
50
+ # Number of processors seen by the OS or value considering CPU quota if the process is inside a cgroup,
51
+ # used for process scheduling
50
52
  #
51
- # source://parallel//lib/parallel.rb#345
53
+ # source://parallel//lib/parallel.rb#342
52
54
  def processor_count; end
53
55
 
54
- # source://parallel//lib/parallel.rb#350
56
+ # source://parallel//lib/parallel.rb#346
55
57
  def worker_number; end
56
58
 
57
59
  # TODO: this does not work when doing threads in forks, so should remove and yield the number instead if needed
58
60
  #
59
- # source://parallel//lib/parallel.rb#355
61
+ # source://parallel//lib/parallel.rb#351
60
62
  def worker_number=(worker_num); end
61
63
 
62
64
  private
63
65
 
64
- # source://parallel//lib/parallel.rb#361
66
+ # source://parallel//lib/parallel.rb#384
65
67
  def add_progress_bar!(job_factory, options); end
66
68
 
67
- # source://parallel//lib/parallel.rb#624
69
+ # source://parallel//lib/parallel.rb#699
70
+ def available_processor_count; end
71
+
72
+ # source://parallel//lib/parallel.rb#647
68
73
  def call_with_index(item, index, options, &block); end
69
74
 
70
- # source://parallel//lib/parallel.rb#556
75
+ # source://parallel//lib/parallel.rb#579
71
76
  def create_workers(job_factory, options, &block); end
72
77
 
73
78
  # options is either a Integer or a Hash with :count
74
79
  #
75
- # source://parallel//lib/parallel.rb#614
80
+ # source://parallel//lib/parallel.rb#637
76
81
  def extract_count_from_options(options); end
77
82
 
78
- # source://parallel//lib/parallel.rb#642
83
+ # source://parallel//lib/parallel.rb#665
79
84
  def instrument_finish(item, index, result, options); end
80
85
 
81
- # source://parallel//lib/parallel.rb#647
86
+ # yield results in the order of the input items
87
+ # needs to use `options` to store state between executions
88
+ # needs to use `done` index since a nil result would also be valid
89
+ #
90
+ # source://parallel//lib/parallel.rb#674
91
+ def instrument_finish_in_order(item, index, result, options); end
92
+
93
+ # source://parallel//lib/parallel.rb#694
82
94
  def instrument_start(item, index, options); end
83
95
 
84
- # source://parallel//lib/parallel.rb#590
96
+ # source://parallel//lib/parallel.rb#357
97
+ def physical_processor_count_windows; end
98
+
99
+ # source://parallel//lib/parallel.rb#613
85
100
  def process_incoming_jobs(read, write, job_factory, options, &block); end
86
101
 
87
- # source://parallel//lib/parallel.rb#544
102
+ # source://parallel//lib/parallel.rb#567
88
103
  def replace_worker(job_factory, workers, index, options, blk); end
89
104
 
90
- # source://parallel//lib/parallel.rb#635
105
+ # source://parallel//lib/parallel.rb#378
106
+ def run(command); end
107
+
108
+ # source://parallel//lib/parallel.rb#658
91
109
  def with_instrumentation(item, index, options); end
92
110
 
93
- # source://parallel//lib/parallel.rb#386
111
+ # source://parallel//lib/parallel.rb#409
94
112
  def work_direct(job_factory, options, &block); end
95
113
 
96
- # source://parallel//lib/parallel.rb#496
114
+ # source://parallel//lib/parallel.rb#519
97
115
  def work_in_processes(job_factory, options, &blk); end
98
116
 
99
- # source://parallel//lib/parallel.rb#430
117
+ # source://parallel//lib/parallel.rb#453
100
118
  def work_in_ractors(job_factory, options); end
101
119
 
102
- # source://parallel//lib/parallel.rb#405
120
+ # source://parallel//lib/parallel.rb#428
103
121
  def work_in_threads(job_factory, options, &block); end
104
122
 
105
- # source://parallel//lib/parallel.rb#564
123
+ # source://parallel//lib/parallel.rb#587
106
124
  def worker(job_factory, options, &block); end
107
125
  end
108
126
  end