activerecord-ejection_seat 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/.tool-versions +1 -1
  4. data/CHANGELOG.md +6 -0
  5. data/Gemfile +0 -2
  6. data/Gemfile.lock +41 -52
  7. data/lib/activerecord-ejection_seat/version.rb +1 -1
  8. data/sorbet/rbi/gems/{activerecord@7.0.4.2.rbi → activerecord@7.0.4.3.rbi} +128 -128
  9. data/sorbet/rbi/gems/{activesupport@7.0.4.2.rbi → activesupport@7.0.4.3.rbi} +79 -103
  10. data/sorbet/rbi/gems/{concurrent-ruby@1.2.0.rbi → concurrent-ruby@1.2.2.rbi} +64 -89
  11. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +19 -0
  12. data/sorbet/rbi/gems/i18n@1.13.0.rbi +2320 -0
  13. data/sorbet/rbi/gems/{irb@1.6.2.rbi → irb@1.6.4.rbi} +50 -35
  14. data/sorbet/rbi/gems/json@2.6.3.rbi +65 -73
  15. data/sorbet/rbi/gems/{minitest@5.17.0.rbi → minitest@5.18.0.rbi} +79 -48
  16. data/sorbet/rbi/gems/{parallel@1.22.1.rbi → parallel@1.23.0.rbi} +75 -79
  17. data/sorbet/rbi/gems/{parser@3.2.1.0.rbi → parser@3.2.2.1.rbi} +164 -164
  18. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +11 -6
  19. data/sorbet/rbi/gems/rake@13.0.6.rbi +141 -0
  20. data/sorbet/rbi/gems/rbi@0.0.16.rbi +17 -17
  21. data/sorbet/rbi/gems/{regexp_parser@2.7.0.rbi → regexp_parser@2.8.0.rbi} +617 -449
  22. data/sorbet/rbi/gems/rexml@3.2.5.rbi +57 -0
  23. data/sorbet/rbi/gems/{rubocop-ast@1.26.0.rbi → rubocop-ast@1.28.1.rbi} +79 -60
  24. data/sorbet/rbi/gems/{rubocop-minitest@0.27.0.rbi → rubocop-minitest@0.31.0.rbi} +364 -222
  25. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +24 -50
  26. data/sorbet/rbi/gems/rubocop-sorbet@0.7.0.rbi +0 -15
  27. data/sorbet/rbi/gems/{rubocop@1.45.1.rbi → rubocop@1.51.0.rbi} +2170 -1402
  28. data/sorbet/rbi/gems/{ruby-progressbar@1.11.0.rbi → ruby-progressbar@1.13.0.rbi} +382 -277
  29. data/sorbet/rbi/gems/sorbet-struct-comparable@1.3.0.rbi +18 -0
  30. data/sorbet/rbi/gems/{spoom@1.1.15.rbi → spoom@1.2.1.rbi} +621 -501
  31. data/sorbet/rbi/gems/{tapioca@0.10.5.rbi → tapioca@0.11.6.rbi} +293 -207
  32. data/sorbet/rbi/gems/{thor@1.2.1.rbi → thor@1.2.2.rbi} +76 -61
  33. data/sorbet/rbi/gems/{yard-sorbet@0.8.0.rbi → yard-sorbet@0.8.1.rbi} +13 -26
  34. data/sorbet/rbi/gems/{yard@0.9.28.rbi → yard@0.9.34.rbi} +1531 -345
  35. metadata +27 -33
  36. data/activerecord-ejection_seat.gemspec +0 -40
  37. data/sorbet/rbi/gems/i18n@1.12.0.rbi +0 -8
  38. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -8
  39. data/sorbet/rbi/gems/prettier_print@1.2.0.rbi +0 -8
  40. data/sorbet/rbi/gems/ruby-lsp@0.4.0.rbi +0 -14
  41. data/sorbet/rbi/gems/syntax_tree@6.0.0.rbi +0 -8
  42. data/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -2498
  43. /data/sorbet/rbi/gems/{activemodel@7.0.4.2.rbi → activemodel@7.0.4.3.rbi} +0 -0
  44. /data/sorbet/rbi/gems/{reline@0.3.2.rbi → reline@0.3.3.rbi} +0 -0
  45. /data/sorbet/rbi/gems/{sqlite3@1.6.0.rbi → sqlite3@1.6.2.rbi} +0 -0
@@ -6,216 +6,212 @@
6
6
 
7
7
  # source://parallel//lib/parallel/version.rb#2
8
8
  module Parallel
9
- extend ::Parallel::ProcessorCount
10
-
11
9
  class << self
12
10
  # @return [Boolean]
13
11
  #
14
- # source://parallel//lib/parallel.rb#246
12
+ # source://parallel//lib/parallel.rb#243
15
13
  def all?(*args, &block); end
16
14
 
17
15
  # @return [Boolean]
18
16
  #
19
- # source://parallel//lib/parallel.rb#241
17
+ # source://parallel//lib/parallel.rb#238
20
18
  def any?(*args, &block); end
21
19
 
22
- # source://parallel//lib/parallel.rb#237
20
+ # source://parallel//lib/parallel.rb#234
23
21
  def each(array, options = T.unsafe(nil), &block); end
24
22
 
25
- # source://parallel//lib/parallel.rb#251
23
+ # source://parallel//lib/parallel.rb#248
26
24
  def each_with_index(array, options = T.unsafe(nil), &block); end
27
25
 
28
- # source://parallel//lib/parallel.rb#306
26
+ # source://parallel//lib/parallel.rb#307
27
+ def filter_map(*args, &block); end
28
+
29
+ # source://parallel//lib/parallel.rb#303
29
30
  def flat_map(*args, &block); end
30
31
 
31
- # source://parallel//lib/parallel.rb#231
32
+ # source://parallel//lib/parallel.rb#228
32
33
  def in_processes(options = T.unsafe(nil), &block); end
33
34
 
34
- # source://parallel//lib/parallel.rb#215
35
+ # source://parallel//lib/parallel.rb#212
35
36
  def in_threads(options = T.unsafe(nil)); end
36
37
 
37
- # source://parallel//lib/parallel.rb#255
38
+ # source://parallel//lib/parallel.rb#252
38
39
  def map(source, options = T.unsafe(nil), &block); end
39
40
 
40
- # source://parallel//lib/parallel.rb#302
41
+ # source://parallel//lib/parallel.rb#299
41
42
  def map_with_index(array, options = T.unsafe(nil), &block); end
42
43
 
43
- # source://parallel//lib/parallel.rb#310
44
+ # Number of physical processor cores on the current system.
45
+ #
46
+ # source://parallel//lib/parallel.rb#312
47
+ def physical_processor_count; end
48
+
49
+ # Number of processors seen by the OS, used for process scheduling
50
+ #
51
+ # source://parallel//lib/parallel.rb#345
52
+ def processor_count; end
53
+
54
+ # source://parallel//lib/parallel.rb#350
44
55
  def worker_number; end
45
56
 
46
57
  # TODO: this does not work when doing threads in forks, so should remove and yield the number instead if needed
47
58
  #
48
- # source://parallel//lib/parallel.rb#315
59
+ # source://parallel//lib/parallel.rb#355
49
60
  def worker_number=(worker_num); end
50
61
 
51
62
  private
52
63
 
53
- # source://parallel//lib/parallel.rb#321
64
+ # source://parallel//lib/parallel.rb#361
54
65
  def add_progress_bar!(job_factory, options); end
55
66
 
56
- # source://parallel//lib/parallel.rb#584
67
+ # source://parallel//lib/parallel.rb#624
57
68
  def call_with_index(item, index, options, &block); end
58
69
 
59
- # source://parallel//lib/parallel.rb#516
70
+ # source://parallel//lib/parallel.rb#556
60
71
  def create_workers(job_factory, options, &block); end
61
72
 
62
73
  # options is either a Integer or a Hash with :count
63
74
  #
64
- # source://parallel//lib/parallel.rb#574
75
+ # source://parallel//lib/parallel.rb#614
65
76
  def extract_count_from_options(options); end
66
77
 
67
- # source://parallel//lib/parallel.rb#602
78
+ # source://parallel//lib/parallel.rb#642
68
79
  def instrument_finish(item, index, result, options); end
69
80
 
70
- # source://parallel//lib/parallel.rb#607
81
+ # source://parallel//lib/parallel.rb#647
71
82
  def instrument_start(item, index, options); end
72
83
 
73
- # source://parallel//lib/parallel.rb#550
84
+ # source://parallel//lib/parallel.rb#590
74
85
  def process_incoming_jobs(read, write, job_factory, options, &block); end
75
86
 
76
- # source://parallel//lib/parallel.rb#504
87
+ # source://parallel//lib/parallel.rb#544
77
88
  def replace_worker(job_factory, workers, index, options, blk); end
78
89
 
79
- # source://parallel//lib/parallel.rb#595
90
+ # source://parallel//lib/parallel.rb#635
80
91
  def with_instrumentation(item, index, options); end
81
92
 
82
- # source://parallel//lib/parallel.rb#346
93
+ # source://parallel//lib/parallel.rb#386
83
94
  def work_direct(job_factory, options, &block); end
84
95
 
85
- # source://parallel//lib/parallel.rb#456
96
+ # source://parallel//lib/parallel.rb#496
86
97
  def work_in_processes(job_factory, options, &blk); end
87
98
 
88
- # source://parallel//lib/parallel.rb#390
99
+ # source://parallel//lib/parallel.rb#430
89
100
  def work_in_ractors(job_factory, options); end
90
101
 
91
- # source://parallel//lib/parallel.rb#365
102
+ # source://parallel//lib/parallel.rb#405
92
103
  def work_in_threads(job_factory, options, &block); end
93
104
 
94
- # source://parallel//lib/parallel.rb#524
105
+ # source://parallel//lib/parallel.rb#564
95
106
  def worker(job_factory, options, &block); end
96
107
  end
97
108
  end
98
109
 
99
- # source://parallel//lib/parallel.rb#14
110
+ # source://parallel//lib/parallel.rb#11
100
111
  class Parallel::Break < ::StandardError
101
112
  # @return [Break] a new instance of Break
102
113
  #
103
- # source://parallel//lib/parallel.rb#17
114
+ # source://parallel//lib/parallel.rb#14
104
115
  def initialize(value = T.unsafe(nil)); end
105
116
 
106
117
  # Returns the value of attribute value.
107
118
  #
108
- # source://parallel//lib/parallel.rb#15
119
+ # source://parallel//lib/parallel.rb#12
109
120
  def value; end
110
121
  end
111
122
 
112
- # source://parallel//lib/parallel.rb#11
123
+ # source://parallel//lib/parallel.rb#8
113
124
  class Parallel::DeadWorker < ::StandardError; end
114
125
 
115
- # source://parallel//lib/parallel.rb#35
126
+ # source://parallel//lib/parallel.rb#32
116
127
  class Parallel::ExceptionWrapper
117
128
  # @return [ExceptionWrapper] a new instance of ExceptionWrapper
118
129
  #
119
- # source://parallel//lib/parallel.rb#38
130
+ # source://parallel//lib/parallel.rb#35
120
131
  def initialize(exception); end
121
132
 
122
133
  # Returns the value of attribute exception.
123
134
  #
124
- # source://parallel//lib/parallel.rb#36
135
+ # source://parallel//lib/parallel.rb#33
125
136
  def exception; end
126
137
  end
127
138
 
128
- # source://parallel//lib/parallel.rb#101
139
+ # source://parallel//lib/parallel.rb#98
129
140
  class Parallel::JobFactory
130
141
  # @return [JobFactory] a new instance of JobFactory
131
142
  #
132
- # source://parallel//lib/parallel.rb#102
143
+ # source://parallel//lib/parallel.rb#99
133
144
  def initialize(source, mutex); end
134
145
 
135
- # source://parallel//lib/parallel.rb#110
146
+ # source://parallel//lib/parallel.rb#107
136
147
  def next; end
137
148
 
138
149
  # generate item that is sent to workers
139
150
  # just index is faster + less likely to blow up with unserializable errors
140
151
  #
141
- # source://parallel//lib/parallel.rb#139
152
+ # source://parallel//lib/parallel.rb#136
142
153
  def pack(item, index); end
143
154
 
144
- # source://parallel//lib/parallel.rb#129
155
+ # source://parallel//lib/parallel.rb#126
145
156
  def size; end
146
157
 
147
158
  # unpack item that is sent to workers
148
159
  #
149
- # source://parallel//lib/parallel.rb#144
160
+ # source://parallel//lib/parallel.rb#141
150
161
  def unpack(data); end
151
162
 
152
163
  private
153
164
 
154
165
  # @return [Boolean]
155
166
  #
156
- # source://parallel//lib/parallel.rb#150
167
+ # source://parallel//lib/parallel.rb#147
157
168
  def producer?; end
158
169
 
159
- # source://parallel//lib/parallel.rb#154
170
+ # source://parallel//lib/parallel.rb#151
160
171
  def queue_wrapper(array); end
161
172
  end
162
173
 
163
- # source://parallel//lib/parallel.rb#23
174
+ # source://parallel//lib/parallel.rb#20
164
175
  class Parallel::Kill < ::Parallel::Break; end
165
176
 
166
- # TODO: inline this method into parallel.rb and kill physical_processor_count in next major release
167
- #
168
- # source://parallel//lib/parallel/processor_count.rb#4
169
- module Parallel::ProcessorCount
170
- # Number of physical processor cores on the current system.
171
- #
172
- # source://parallel//lib/parallel/processor_count.rb#12
173
- def physical_processor_count; end
174
-
175
- # Number of processors seen by the OS, used for process scheduling
176
- #
177
- # source://parallel//lib/parallel/processor_count.rb#6
178
- def processor_count; end
179
- end
180
-
181
- # source://parallel//lib/parallel.rb#9
177
+ # source://parallel//lib/parallel.rb#6
182
178
  Parallel::Stop = T.let(T.unsafe(nil), Object)
183
179
 
184
- # source://parallel//lib/parallel.rb#26
180
+ # source://parallel//lib/parallel.rb#23
185
181
  class Parallel::UndumpableException < ::StandardError
186
182
  # @return [UndumpableException] a new instance of UndumpableException
187
183
  #
188
- # source://parallel//lib/parallel.rb#29
184
+ # source://parallel//lib/parallel.rb#26
189
185
  def initialize(original); end
190
186
 
191
187
  # Returns the value of attribute backtrace.
192
188
  #
193
- # source://parallel//lib/parallel.rb#27
189
+ # source://parallel//lib/parallel.rb#24
194
190
  def backtrace; end
195
191
  end
196
192
 
197
- # source://parallel//lib/parallel.rb#159
193
+ # source://parallel//lib/parallel.rb#156
198
194
  class Parallel::UserInterruptHandler
199
195
  class << self
200
- # source://parallel//lib/parallel.rb#184
196
+ # source://parallel//lib/parallel.rb#181
201
197
  def kill(thing); end
202
198
 
203
199
  # kill all these pids or threads if user presses Ctrl+c
204
200
  #
205
- # source://parallel//lib/parallel.rb#164
201
+ # source://parallel//lib/parallel.rb#161
206
202
  def kill_on_ctrl_c(pids, options); end
207
203
 
208
204
  private
209
205
 
210
- # source://parallel//lib/parallel.rb#208
206
+ # source://parallel//lib/parallel.rb#205
211
207
  def restore_interrupt(old, signal); end
212
208
 
213
- # source://parallel//lib/parallel.rb#193
209
+ # source://parallel//lib/parallel.rb#190
214
210
  def trap_interrupt(signal); end
215
211
  end
216
212
  end
217
213
 
218
- # source://parallel//lib/parallel.rb#160
214
+ # source://parallel//lib/parallel.rb#157
219
215
  Parallel::UserInterruptHandler::INTERRUPT_SIGNAL = T.let(T.unsafe(nil), Symbol)
220
216
 
221
217
  # source://parallel//lib/parallel/version.rb#3
@@ -224,54 +220,54 @@ Parallel::VERSION = T.let(T.unsafe(nil), String)
224
220
  # source://parallel//lib/parallel/version.rb#3
225
221
  Parallel::Version = T.let(T.unsafe(nil), String)
226
222
 
227
- # source://parallel//lib/parallel.rb#54
223
+ # source://parallel//lib/parallel.rb#51
228
224
  class Parallel::Worker
229
225
  # @return [Worker] a new instance of Worker
230
226
  #
231
- # source://parallel//lib/parallel.rb#58
227
+ # source://parallel//lib/parallel.rb#55
232
228
  def initialize(read, write, pid); end
233
229
 
234
230
  # might be passed to started_processes and simultaneously closed by another thread
235
231
  # when running in isolation mode, so we have to check if it is closed before closing
236
232
  #
237
- # source://parallel//lib/parallel.rb#71
233
+ # source://parallel//lib/parallel.rb#68
238
234
  def close_pipes; end
239
235
 
240
236
  # Returns the value of attribute pid.
241
237
  #
242
- # source://parallel//lib/parallel.rb#55
238
+ # source://parallel//lib/parallel.rb#52
243
239
  def pid; end
244
240
 
245
241
  # Returns the value of attribute read.
246
242
  #
247
- # source://parallel//lib/parallel.rb#55
243
+ # source://parallel//lib/parallel.rb#52
248
244
  def read; end
249
245
 
250
- # source://parallel//lib/parallel.rb#64
246
+ # source://parallel//lib/parallel.rb#61
251
247
  def stop; end
252
248
 
253
249
  # Returns the value of attribute thread.
254
250
  #
255
- # source://parallel//lib/parallel.rb#56
251
+ # source://parallel//lib/parallel.rb#53
256
252
  def thread; end
257
253
 
258
254
  # Sets the attribute thread
259
255
  #
260
256
  # @param value the value to set the attribute thread to.
261
257
  #
262
- # source://parallel//lib/parallel.rb#56
258
+ # source://parallel//lib/parallel.rb#53
263
259
  def thread=(_arg0); end
264
260
 
265
- # source://parallel//lib/parallel.rb#76
261
+ # source://parallel//lib/parallel.rb#73
266
262
  def work(data); end
267
263
 
268
264
  # Returns the value of attribute write.
269
265
  #
270
- # source://parallel//lib/parallel.rb#55
266
+ # source://parallel//lib/parallel.rb#52
271
267
  def write; end
272
268
 
273
269
  private
274
270
 
275
- # source://parallel//lib/parallel.rb#94
271
+ # source://parallel//lib/parallel.rb#91
276
272
  def wait; end
277
273
  end