sorbet-schema 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/Gemfile.lock +27 -27
  4. data/lib/sorbet-schema/version.rb +1 -1
  5. data/lib/typed/coercion/coercer_registry.rb +3 -1
  6. data/lib/typed/coercion/struct_coercer.rb +9 -1
  7. data/lib/typed/coercion/symbol_coercer.rb +27 -0
  8. data/lib/typed/coercion/typed_hash_coercer.rb +50 -0
  9. data/lib/typed/field.rb +29 -4
  10. data/lib/typed/schema.rb +2 -2
  11. data/lib/typed/serializer.rb +26 -4
  12. data/lib/typed/validations/field_type_validator.rb +6 -2
  13. data/sorbet/rbi/gems/{builder@3.2.4.rbi → builder@3.3.0.rbi} +22 -25
  14. data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.0.rbi} +19 -15
  15. data/sorbet/rbi/gems/{minitest-reporters@1.6.1.rbi → minitest-reporters@1.7.1.rbi} +47 -40
  16. data/sorbet/rbi/gems/{minitest@5.23.1.rbi → minitest@5.24.0.rbi} +159 -151
  17. data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.25.1.rbi} +26 -20
  18. data/sorbet/rbi/gems/{prism@0.29.0.rbi → prism@0.30.0.rbi} +5670 -4445
  19. data/sorbet/rbi/gems/{rexml@3.2.8.rbi → rexml@3.3.0.rbi} +69 -62
  20. data/sorbet/rbi/gems/{rubocop@1.63.5.rbi → rubocop@1.64.1.rbi} +660 -344
  21. data/sorbet/rbi/gems/{standard@1.36.0.rbi → standard@1.39.0.rbi} +159 -90
  22. data/sorbet/rbi/gems/{tapioca@0.14.2.rbi → tapioca@0.14.4.rbi} +89 -76
  23. data/sorbet/rbi/gems/{zeitwerk@2.6.15.rbi → zeitwerk@2.6.16.rbi} +115 -78
  24. metadata +19 -17
  25. /data/sorbet/rbi/gems/{parser@3.3.1.0.rbi → parser@3.3.3.0.rbi} +0 -0
  26. /data/sorbet/rbi/gems/{reline@0.5.7.rbi → reline@0.5.9.rbi} +0 -0
  27. /data/sorbet/rbi/gems/{rubocop-performance@1.21.0.rbi → rubocop-performance@1.21.1.rbi} +0 -0
  28. /data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.1.rbi} +0 -0
@@ -25,10 +25,10 @@ module Parallel
25
25
  def each_with_index(array, options = T.unsafe(nil), &block); end
26
26
 
27
27
  # source://parallel//lib/parallel.rb#307
28
- def filter_map(*args, &block); end
28
+ def filter_map(*_arg0, **_arg1, &_arg2); end
29
29
 
30
30
  # source://parallel//lib/parallel.rb#303
31
- def flat_map(*args, &block); end
31
+ def flat_map(*_arg0, **_arg1, &_arg2); end
32
32
 
33
33
  # source://parallel//lib/parallel.rb#228
34
34
  def in_processes(options = T.unsafe(nil), &block); end
@@ -49,68 +49,74 @@ module Parallel
49
49
 
50
50
  # Number of processors seen by the OS, used for process scheduling
51
51
  #
52
- # source://parallel//lib/parallel.rb#345
52
+ # source://parallel//lib/parallel.rb#341
53
53
  def processor_count; end
54
54
 
55
- # source://parallel//lib/parallel.rb#350
55
+ # source://parallel//lib/parallel.rb#346
56
56
  def worker_number; end
57
57
 
58
58
  # TODO: this does not work when doing threads in forks, so should remove and yield the number instead if needed
59
59
  #
60
- # source://parallel//lib/parallel.rb#355
60
+ # source://parallel//lib/parallel.rb#351
61
61
  def worker_number=(worker_num); end
62
62
 
63
63
  private
64
64
 
65
- # source://parallel//lib/parallel.rb#361
65
+ # source://parallel//lib/parallel.rb#384
66
66
  def add_progress_bar!(job_factory, options); end
67
67
 
68
- # source://parallel//lib/parallel.rb#624
68
+ # source://parallel//lib/parallel.rb#647
69
69
  def call_with_index(item, index, options, &block); end
70
70
 
71
- # source://parallel//lib/parallel.rb#556
71
+ # source://parallel//lib/parallel.rb#579
72
72
  def create_workers(job_factory, options, &block); end
73
73
 
74
74
  # options is either a Integer or a Hash with :count
75
75
  #
76
- # source://parallel//lib/parallel.rb#614
76
+ # source://parallel//lib/parallel.rb#637
77
77
  def extract_count_from_options(options); end
78
78
 
79
- # source://parallel//lib/parallel.rb#642
79
+ # source://parallel//lib/parallel.rb#665
80
80
  def instrument_finish(item, index, result, options); end
81
81
 
82
82
  # yield results in the order of the input items
83
83
  # needs to use `options` to store state between executions
84
84
  # needs to use `done` index since a nil result would also be valid
85
85
  #
86
- # source://parallel//lib/parallel.rb#651
86
+ # source://parallel//lib/parallel.rb#674
87
87
  def instrument_finish_in_order(item, index, result, options); end
88
88
 
89
- # source://parallel//lib/parallel.rb#671
89
+ # source://parallel//lib/parallel.rb#694
90
90
  def instrument_start(item, index, options); end
91
91
 
92
- # source://parallel//lib/parallel.rb#590
92
+ # source://parallel//lib/parallel.rb#357
93
+ def physical_processor_count_windows; end
94
+
95
+ # source://parallel//lib/parallel.rb#613
93
96
  def process_incoming_jobs(read, write, job_factory, options, &block); end
94
97
 
95
- # source://parallel//lib/parallel.rb#544
98
+ # source://parallel//lib/parallel.rb#567
96
99
  def replace_worker(job_factory, workers, index, options, blk); end
97
100
 
98
- # source://parallel//lib/parallel.rb#635
101
+ # source://parallel//lib/parallel.rb#378
102
+ def run(command); end
103
+
104
+ # source://parallel//lib/parallel.rb#658
99
105
  def with_instrumentation(item, index, options); end
100
106
 
101
- # source://parallel//lib/parallel.rb#386
107
+ # source://parallel//lib/parallel.rb#409
102
108
  def work_direct(job_factory, options, &block); end
103
109
 
104
- # source://parallel//lib/parallel.rb#496
110
+ # source://parallel//lib/parallel.rb#519
105
111
  def work_in_processes(job_factory, options, &blk); end
106
112
 
107
- # source://parallel//lib/parallel.rb#430
113
+ # source://parallel//lib/parallel.rb#453
108
114
  def work_in_ractors(job_factory, options); end
109
115
 
110
- # source://parallel//lib/parallel.rb#405
116
+ # source://parallel//lib/parallel.rb#428
111
117
  def work_in_threads(job_factory, options, &block); end
112
118
 
113
- # source://parallel//lib/parallel.rb#564
119
+ # source://parallel//lib/parallel.rb#587
114
120
  def worker(job_factory, options, &block); end
115
121
  end
116
122
  end