mootool 0.1.1 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.DS_Store +0 -0
- data/.github/workflows/ci.yml +14 -14
- data/.github/workflows/gem-push.yml +26 -28
- data/.overcommit.yml +79 -0
- data/.rubocop.yml +147 -0
- data/.ruby-version +1 -1
- data/.run/All Specs.run.xml +46 -0
- data/CODE_OF_CONDUCT.md +2 -1
- data/Gemfile +14 -11
- data/Gemfile.lock +92 -31
- data/README.md +12 -6
- data/bin/tapioca +27 -0
- data/lib/mootool/command.rb +1 -0
- data/lib/mootool/controller_base.rb +4 -1
- data/lib/mootool/controllers/dwarf.rb +8 -0
- data/lib/mootool/controllers/dyld_linker.rb +8 -0
- data/lib/mootool/controllers/dyld_shared_cache.rb +8 -0
- data/lib/mootool/controllers/fat_binary.rb +8 -0
- data/lib/mootool/controllers/kernel_collection.rb +21 -15
- data/lib/mootool/controllers/sections.rb +8 -0
- data/lib/mootool/core_extensions.rb +26 -0
- data/lib/mootool/models/device_tree.rb +85 -0
- data/lib/mootool/models/img4.rb +49 -0
- data/lib/mootool/models/ipsw.rb +19 -0
- data/lib/mootool/version.rb +1 -1
- data/lib/mootool/views/sections.full.erb +2 -2
- data/lib/mootool.rb +10 -3
- data/mootool.gemspec +17 -12
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +618 -0
- data/sorbet/rbi/gems/childprocess@4.1.0.rbi +447 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1219 -0
- data/sorbet/rbi/gems/iniparse@1.5.0.rbi +1007 -0
- data/sorbet/rbi/gems/json@2.6.2.rbi +1650 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +186 -0
- data/sorbet/rbi/gems/overcommit@0.59.1.rbi +2747 -0
- data/sorbet/rbi/gems/parallel@1.22.1.rbi +353 -0
- data/sorbet/rbi/gems/parser@3.1.2.1.rbi +6198 -0
- data/sorbet/rbi/gems/plist@3.6.0.rbi +212 -0
- data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +452 -0
- data/sorbet/rbi/gems/rake@13.0.6.rbi +3587 -0
- data/sorbet/rbi/gems/rbi@0.0.15.rbi +3619 -0
- data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +3927 -0
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +5238 -0
- data/sorbet/rbi/gems/rspec-core@3.11.0.rbi +12834 -0
- data/sorbet/rbi/gems/rspec-expectations@3.11.0.rbi +9151 -0
- data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +6506 -0
- data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +2040 -0
- data/sorbet/rbi/gems/rspec@3.11.0.rbi +120 -0
- data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +7990 -0
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +413 -0
- data/sorbet/rbi/gems/rubocop-rspec@2.12.1.rbi +7604 -0
- data/sorbet/rbi/gems/rubocop@1.35.0.rbi +62260 -0
- data/sorbet/rbi/gems/ruby-macho@3.0.0.rbi +5039 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +1445 -0
- data/sorbet/rbi/gems/rubyzip@2.3.2.rbi +2868 -0
- data/sorbet/rbi/gems/spoom@1.1.12.rbi +2829 -0
- data/sorbet/rbi/gems/tapioca@0.9.3.rbi +2151 -0
- data/sorbet/rbi/gems/thor@1.2.1.rbi +4532 -0
- data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +60 -0
- data/sorbet/rbi/gems/unparser@0.6.5.rbi +8 -0
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +3075 -0
- data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +458 -0
- data/sorbet/rbi/gems/yard@0.9.28.rbi +20844 -0
- data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +72 -24
- data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +1697 -385
- data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +30 -7
- data/sorbet/rbi/sorbet-typed/lib/rubocop/>=1.8/rubocop.rbi +3 -1
- data/sorbet/rbi/todo.rbi +7 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +89 -9
@@ -0,0 +1,353 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `parallel` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem parallel`.
|
6
|
+
|
7
|
+
# source://parallel-1.22.1/lib/parallel/version.rb:2
|
8
|
+
module Parallel
|
9
|
+
extend ::Parallel::ProcessorCount
|
10
|
+
|
11
|
+
class << self
|
12
|
+
# @return [Boolean]
|
13
|
+
#
|
14
|
+
# source://parallel-1.22.1/lib/parallel.rb:246
|
15
|
+
def all?(*args, &block)
|
16
|
+
;
|
17
|
+
end
|
18
|
+
|
19
|
+
# @return [Boolean]
|
20
|
+
#
|
21
|
+
# source://parallel-1.22.1/lib/parallel.rb:241
|
22
|
+
def any?(*args, &block)
|
23
|
+
;
|
24
|
+
end
|
25
|
+
|
26
|
+
# source://parallel-1.22.1/lib/parallel.rb:237
|
27
|
+
def each(array, options = T.unsafe(nil), &block)
|
28
|
+
;
|
29
|
+
end
|
30
|
+
|
31
|
+
# source://parallel-1.22.1/lib/parallel.rb:251
|
32
|
+
def each_with_index(array, options = T.unsafe(nil), &block)
|
33
|
+
;
|
34
|
+
end
|
35
|
+
|
36
|
+
# source://parallel-1.22.1/lib/parallel.rb:306
|
37
|
+
def flat_map(*args, &block)
|
38
|
+
;
|
39
|
+
end
|
40
|
+
|
41
|
+
# source://parallel-1.22.1/lib/parallel.rb:231
|
42
|
+
def in_processes(options = T.unsafe(nil), &block)
|
43
|
+
;
|
44
|
+
end
|
45
|
+
|
46
|
+
# source://parallel-1.22.1/lib/parallel.rb:215
|
47
|
+
def in_threads(options = T.unsafe(nil))
|
48
|
+
;
|
49
|
+
end
|
50
|
+
|
51
|
+
# source://parallel-1.22.1/lib/parallel.rb:255
|
52
|
+
def map(source, options = T.unsafe(nil), &block)
|
53
|
+
;
|
54
|
+
end
|
55
|
+
|
56
|
+
# source://parallel-1.22.1/lib/parallel.rb:302
|
57
|
+
def map_with_index(array, options = T.unsafe(nil), &block)
|
58
|
+
;
|
59
|
+
end
|
60
|
+
|
61
|
+
# source://parallel-1.22.1/lib/parallel.rb:310
|
62
|
+
def worker_number; end
|
63
|
+
|
64
|
+
# TODO: this does not work when doing threads in forks, so should remove and yield the number instead if needed
|
65
|
+
#
|
66
|
+
# source://parallel-1.22.1/lib/parallel.rb:315
|
67
|
+
def worker_number=(worker_num)
|
68
|
+
;
|
69
|
+
end
|
70
|
+
|
71
|
+
private
|
72
|
+
|
73
|
+
# source://parallel-1.22.1/lib/parallel.rb:321
|
74
|
+
def add_progress_bar!(job_factory, options)
|
75
|
+
;
|
76
|
+
end
|
77
|
+
|
78
|
+
# source://parallel-1.22.1/lib/parallel.rb:584
|
79
|
+
def call_with_index(item, index, options, &block)
|
80
|
+
;
|
81
|
+
end
|
82
|
+
|
83
|
+
# source://parallel-1.22.1/lib/parallel.rb:516
|
84
|
+
def create_workers(job_factory, options, &block)
|
85
|
+
;
|
86
|
+
end
|
87
|
+
|
88
|
+
# options is either a Integer or a Hash with :count
|
89
|
+
#
|
90
|
+
# source://parallel-1.22.1/lib/parallel.rb:574
|
91
|
+
def extract_count_from_options(options)
|
92
|
+
;
|
93
|
+
end
|
94
|
+
|
95
|
+
# source://parallel-1.22.1/lib/parallel.rb:602
|
96
|
+
def instrument_finish(item, index, result, options)
|
97
|
+
;
|
98
|
+
end
|
99
|
+
|
100
|
+
# source://parallel-1.22.1/lib/parallel.rb:607
|
101
|
+
def instrument_start(item, index, options)
|
102
|
+
;
|
103
|
+
end
|
104
|
+
|
105
|
+
# source://parallel-1.22.1/lib/parallel.rb:550
|
106
|
+
def process_incoming_jobs(read, write, job_factory, options, &block)
|
107
|
+
;
|
108
|
+
end
|
109
|
+
|
110
|
+
# source://parallel-1.22.1/lib/parallel.rb:504
|
111
|
+
def replace_worker(job_factory, workers, index, options, blk)
|
112
|
+
;
|
113
|
+
end
|
114
|
+
|
115
|
+
# source://parallel-1.22.1/lib/parallel.rb:595
|
116
|
+
def with_instrumentation(item, index, options)
|
117
|
+
;
|
118
|
+
end
|
119
|
+
|
120
|
+
# source://parallel-1.22.1/lib/parallel.rb:346
|
121
|
+
def work_direct(job_factory, options, &block)
|
122
|
+
;
|
123
|
+
end
|
124
|
+
|
125
|
+
# source://parallel-1.22.1/lib/parallel.rb:456
|
126
|
+
def work_in_processes(job_factory, options, &blk)
|
127
|
+
;
|
128
|
+
end
|
129
|
+
|
130
|
+
# source://parallel-1.22.1/lib/parallel.rb:390
|
131
|
+
def work_in_ractors(job_factory, options)
|
132
|
+
;
|
133
|
+
end
|
134
|
+
|
135
|
+
# source://parallel-1.22.1/lib/parallel.rb:365
|
136
|
+
def work_in_threads(job_factory, options, &block)
|
137
|
+
;
|
138
|
+
end
|
139
|
+
|
140
|
+
# source://parallel-1.22.1/lib/parallel.rb:524
|
141
|
+
def worker(job_factory, options, &block)
|
142
|
+
;
|
143
|
+
end
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
# source://parallel-1.22.1/lib/parallel.rb:14
|
148
|
+
class Parallel::Break < ::StandardError
|
149
|
+
# @return [Break] a new instance of Break
|
150
|
+
#
|
151
|
+
# source://parallel-1.22.1/lib/parallel.rb:17
|
152
|
+
def initialize(value = T.unsafe(nil))
|
153
|
+
;
|
154
|
+
end
|
155
|
+
|
156
|
+
# Returns the value of attribute value.
|
157
|
+
#
|
158
|
+
# source://parallel-1.22.1/lib/parallel.rb:15
|
159
|
+
def value; end
|
160
|
+
end
|
161
|
+
|
162
|
+
# source://parallel-1.22.1/lib/parallel.rb:11
|
163
|
+
class Parallel::DeadWorker < ::StandardError; end
|
164
|
+
|
165
|
+
# source://parallel-1.22.1/lib/parallel.rb:35
|
166
|
+
class Parallel::ExceptionWrapper
|
167
|
+
# @return [ExceptionWrapper] a new instance of ExceptionWrapper
|
168
|
+
#
|
169
|
+
# source://parallel-1.22.1/lib/parallel.rb:38
|
170
|
+
def initialize(exception)
|
171
|
+
;
|
172
|
+
end
|
173
|
+
|
174
|
+
# Returns the value of attribute exception.
|
175
|
+
#
|
176
|
+
# source://parallel-1.22.1/lib/parallel.rb:36
|
177
|
+
def exception; end
|
178
|
+
end
|
179
|
+
|
180
|
+
# source://parallel-1.22.1/lib/parallel.rb:101
|
181
|
+
class Parallel::JobFactory
|
182
|
+
# @return [JobFactory] a new instance of JobFactory
|
183
|
+
#
|
184
|
+
# source://parallel-1.22.1/lib/parallel.rb:102
|
185
|
+
def initialize(source, mutex)
|
186
|
+
;
|
187
|
+
end
|
188
|
+
|
189
|
+
# source://parallel-1.22.1/lib/parallel.rb:110
|
190
|
+
def next; end
|
191
|
+
|
192
|
+
# generate item that is sent to workers
|
193
|
+
# just index is faster + less likely to blow up with unserializable errors
|
194
|
+
#
|
195
|
+
# source://parallel-1.22.1/lib/parallel.rb:139
|
196
|
+
def pack(item, index)
|
197
|
+
;
|
198
|
+
end
|
199
|
+
|
200
|
+
# source://parallel-1.22.1/lib/parallel.rb:129
|
201
|
+
def size; end
|
202
|
+
|
203
|
+
# unpack item that is sent to workers
|
204
|
+
#
|
205
|
+
# source://parallel-1.22.1/lib/parallel.rb:144
|
206
|
+
def unpack(data)
|
207
|
+
;
|
208
|
+
end
|
209
|
+
|
210
|
+
private
|
211
|
+
|
212
|
+
# @return [Boolean]
|
213
|
+
#
|
214
|
+
# source://parallel-1.22.1/lib/parallel.rb:150
|
215
|
+
def producer?; end
|
216
|
+
|
217
|
+
# source://parallel-1.22.1/lib/parallel.rb:154
|
218
|
+
def queue_wrapper(array)
|
219
|
+
;
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
# source://parallel-1.22.1/lib/parallel.rb:23
|
224
|
+
class Parallel::Kill < ::Parallel::Break; end
|
225
|
+
|
226
|
+
# TODO: inline this method into parallel.rb and kill physical_processor_count in next major release
|
227
|
+
#
|
228
|
+
# source://parallel-1.22.1/lib/parallel/processor_count.rb:4
|
229
|
+
module Parallel::ProcessorCount
|
230
|
+
# Number of physical processor cores on the current system.
|
231
|
+
#
|
232
|
+
# source://parallel-1.22.1/lib/parallel/processor_count.rb:12
|
233
|
+
def physical_processor_count; end
|
234
|
+
|
235
|
+
# Number of processors seen by the OS, used for process scheduling
|
236
|
+
#
|
237
|
+
# source://parallel-1.22.1/lib/parallel/processor_count.rb:6
|
238
|
+
def processor_count; end
|
239
|
+
end
|
240
|
+
|
241
|
+
# source://parallel-1.22.1/lib/parallel.rb:9
|
242
|
+
Parallel::Stop = T.let(T.unsafe(nil), Object)
|
243
|
+
|
244
|
+
# source://parallel-1.22.1/lib/parallel.rb:26
|
245
|
+
class Parallel::UndumpableException < ::StandardError
|
246
|
+
# @return [UndumpableException] a new instance of UndumpableException
|
247
|
+
#
|
248
|
+
# source://parallel-1.22.1/lib/parallel.rb:29
|
249
|
+
def initialize(original)
|
250
|
+
;
|
251
|
+
end
|
252
|
+
|
253
|
+
# Returns the value of attribute backtrace.
|
254
|
+
#
|
255
|
+
# source://parallel-1.22.1/lib/parallel.rb:27
|
256
|
+
def backtrace; end
|
257
|
+
end
|
258
|
+
|
259
|
+
# source://parallel-1.22.1/lib/parallel.rb:159
|
260
|
+
class Parallel::UserInterruptHandler
|
261
|
+
class << self
|
262
|
+
# source://parallel-1.22.1/lib/parallel.rb:184
|
263
|
+
def kill(thing)
|
264
|
+
;
|
265
|
+
end
|
266
|
+
|
267
|
+
# kill all these pids or threads if user presses Ctrl+c
|
268
|
+
#
|
269
|
+
# source://parallel-1.22.1/lib/parallel.rb:164
|
270
|
+
def kill_on_ctrl_c(pids, options)
|
271
|
+
;
|
272
|
+
end
|
273
|
+
|
274
|
+
private
|
275
|
+
|
276
|
+
# source://parallel-1.22.1/lib/parallel.rb:208
|
277
|
+
def restore_interrupt(old, signal)
|
278
|
+
;
|
279
|
+
end
|
280
|
+
|
281
|
+
# source://parallel-1.22.1/lib/parallel.rb:193
|
282
|
+
def trap_interrupt(signal)
|
283
|
+
;
|
284
|
+
end
|
285
|
+
end
|
286
|
+
end
|
287
|
+
|
288
|
+
# source://parallel-1.22.1/lib/parallel.rb:160
|
289
|
+
Parallel::UserInterruptHandler::INTERRUPT_SIGNAL = T.let(T.unsafe(nil), Symbol)
|
290
|
+
|
291
|
+
# source://parallel-1.22.1/lib/parallel/version.rb:3
|
292
|
+
Parallel::VERSION = T.let(T.unsafe(nil), String)
|
293
|
+
|
294
|
+
# source://parallel-1.22.1/lib/parallel/version.rb:3
|
295
|
+
Parallel::Version = T.let(T.unsafe(nil), String)
|
296
|
+
|
297
|
+
# source://parallel-1.22.1/lib/parallel.rb:54
|
298
|
+
class Parallel::Worker
|
299
|
+
# @return [Worker] a new instance of Worker
|
300
|
+
#
|
301
|
+
# source://parallel-1.22.1/lib/parallel.rb:58
|
302
|
+
def initialize(read, write, pid)
|
303
|
+
;
|
304
|
+
end
|
305
|
+
|
306
|
+
# might be passed to started_processes and simultaneously closed by another thread
|
307
|
+
# when running in isolation mode, so we have to check if it is closed before closing
|
308
|
+
#
|
309
|
+
# source://parallel-1.22.1/lib/parallel.rb:71
|
310
|
+
def close_pipes; end
|
311
|
+
|
312
|
+
# Returns the value of attribute pid.
|
313
|
+
#
|
314
|
+
# source://parallel-1.22.1/lib/parallel.rb:55
|
315
|
+
def pid; end
|
316
|
+
|
317
|
+
# Returns the value of attribute read.
|
318
|
+
#
|
319
|
+
# source://parallel-1.22.1/lib/parallel.rb:55
|
320
|
+
def read; end
|
321
|
+
|
322
|
+
# source://parallel-1.22.1/lib/parallel.rb:64
|
323
|
+
def stop; end
|
324
|
+
|
325
|
+
# Returns the value of attribute thread.
|
326
|
+
#
|
327
|
+
# source://parallel-1.22.1/lib/parallel.rb:56
|
328
|
+
def thread; end
|
329
|
+
|
330
|
+
# Sets the attribute thread
|
331
|
+
#
|
332
|
+
# @param value the value to set the attribute thread to.
|
333
|
+
#
|
334
|
+
# source://parallel-1.22.1/lib/parallel.rb:56
|
335
|
+
def thread=(_arg0)
|
336
|
+
;
|
337
|
+
end
|
338
|
+
|
339
|
+
# source://parallel-1.22.1/lib/parallel.rb:76
|
340
|
+
def work(data)
|
341
|
+
;
|
342
|
+
end
|
343
|
+
|
344
|
+
# Returns the value of attribute write.
|
345
|
+
#
|
346
|
+
# source://parallel-1.22.1/lib/parallel.rb:55
|
347
|
+
def write; end
|
348
|
+
|
349
|
+
private
|
350
|
+
|
351
|
+
# source://parallel-1.22.1/lib/parallel.rb:94
|
352
|
+
def wait; end
|
353
|
+
end
|