categoria 0.1.0.pre.beta0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +7 -0
  2. data/.rubocop.yml +34 -0
  3. data/.ruby-version +1 -0
  4. data/CHANGELOG.md +5 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +33 -0
  7. data/Rakefile +12 -0
  8. data/categoria.gemspec +48 -0
  9. data/lib/categoria/version.rb +6 -0
  10. data/lib/categoria.rb +9 -0
  11. data/lib/generators/categoria/command_generator.rb +8 -0
  12. data/lib/generators/categoria/domain_generator.rb +35 -0
  13. data/lib/generators/categoria/model_generator.rb +8 -0
  14. data/lib/generators/categoria/templates/domain_module.rb.erb +6 -0
  15. data/sig/categoria.rbs +4 -0
  16. data/sorbet/config +4 -0
  17. data/sorbet/rbi/annotations/.gitattributes +1 -0
  18. data/sorbet/rbi/annotations/actionmailer.rbi +10 -0
  19. data/sorbet/rbi/annotations/actionpack.rbi +429 -0
  20. data/sorbet/rbi/annotations/actionview.rbi +75 -0
  21. data/sorbet/rbi/annotations/activejob.rbi +44 -0
  22. data/sorbet/rbi/annotations/activemodel.rbi +89 -0
  23. data/sorbet/rbi/annotations/activerecord.rbi +92 -0
  24. data/sorbet/rbi/annotations/activesupport.rbi +421 -0
  25. data/sorbet/rbi/annotations/globalid.rbi +30 -0
  26. data/sorbet/rbi/annotations/railties.rbi +61 -0
  27. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  28. data/sorbet/rbi/gems/.gitattributes +1 -0
  29. data/sorbet/rbi/gems/actioncable@7.1.3.3.rbi +9 -0
  30. data/sorbet/rbi/gems/actionmailbox@7.1.3.3.rbi +9 -0
  31. data/sorbet/rbi/gems/actionmailer@7.1.3.3.rbi +9 -0
  32. data/sorbet/rbi/gems/actionpack@7.1.3.3.rbi +9 -0
  33. data/sorbet/rbi/gems/actiontext@7.1.3.3.rbi +9 -0
  34. data/sorbet/rbi/gems/actionview@7.1.3.3.rbi +9 -0
  35. data/sorbet/rbi/gems/activejob@7.1.3.3.rbi +9 -0
  36. data/sorbet/rbi/gems/activemodel@7.1.3.3.rbi +9 -0
  37. data/sorbet/rbi/gems/activerecord@7.1.3.3.rbi +9 -0
  38. data/sorbet/rbi/gems/activestorage@7.1.3.3.rbi +9 -0
  39. data/sorbet/rbi/gems/activesupport@7.1.3.3.rbi +11 -0
  40. data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
  41. data/sorbet/rbi/gems/base64@0.2.0.rbi +9 -0
  42. data/sorbet/rbi/gems/bigdecimal@3.1.8.rbi +9 -0
  43. data/sorbet/rbi/gems/builder@3.2.4.rbi +9 -0
  44. data/sorbet/rbi/gems/concurrent-ruby@1.3.1.rbi +9 -0
  45. data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +9 -0
  46. data/sorbet/rbi/gems/crass@1.0.6.rbi +9 -0
  47. data/sorbet/rbi/gems/date@3.3.4.rbi +73 -0
  48. data/sorbet/rbi/gems/drb@2.2.1.rbi +9 -0
  49. data/sorbet/rbi/gems/erubi@1.12.0.rbi +146 -0
  50. data/sorbet/rbi/gems/globalid@1.2.1.rbi +9 -0
  51. data/sorbet/rbi/gems/i18n@1.14.5.rbi +9 -0
  52. data/sorbet/rbi/gems/io-console@0.7.2.rbi +9 -0
  53. data/sorbet/rbi/gems/json@2.7.2.rbi +1562 -0
  54. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14238 -0
  55. data/sorbet/rbi/gems/loofah@2.22.0.rbi +9 -0
  56. data/sorbet/rbi/gems/mail@2.8.1.rbi +9 -0
  57. data/sorbet/rbi/gems/marcel@1.0.4.rbi +9 -0
  58. data/sorbet/rbi/gems/mini_mime@1.1.5.rbi +9 -0
  59. data/sorbet/rbi/gems/minitest@5.23.1.rbi +1555 -0
  60. data/sorbet/rbi/gems/mutex_m@0.2.0.rbi +9 -0
  61. data/sorbet/rbi/gems/net-imap@0.4.11.rbi +9 -0
  62. data/sorbet/rbi/gems/net-pop@0.1.2.rbi +9 -0
  63. data/sorbet/rbi/gems/net-protocol@0.2.2.rbi +282 -0
  64. data/sorbet/rbi/gems/net-smtp@0.5.0.rbi +9 -0
  65. data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
  66. data/sorbet/rbi/gems/nio4r@2.7.3.rbi +9 -0
  67. data/sorbet/rbi/gems/nokogiri@1.16.5.rbi +9 -0
  68. data/sorbet/rbi/gems/parallel@1.24.0.rbi +281 -0
  69. data/sorbet/rbi/gems/parser@3.3.2.0.rbi +5519 -0
  70. data/sorbet/rbi/gems/prism@0.29.0.rbi +37987 -0
  71. data/sorbet/rbi/gems/psych@5.1.2.rbi +1732 -0
  72. data/sorbet/rbi/gems/racc@1.8.0.rbi +162 -0
  73. data/sorbet/rbi/gems/rack-session@2.0.0.rbi +9 -0
  74. data/sorbet/rbi/gems/rack-test@2.1.0.rbi +9 -0
  75. data/sorbet/rbi/gems/rack@3.0.11.rbi +2910 -0
  76. data/sorbet/rbi/gems/rackup@2.1.0.rbi +390 -0
  77. data/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +9 -0
  78. data/sorbet/rbi/gems/rails-html-sanitizer@1.6.0.rbi +9 -0
  79. data/sorbet/rbi/gems/rails@7.1.3.3.rbi +9 -0
  80. data/sorbet/rbi/gems/railties@7.1.3.3.rbi +9 -0
  81. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
  82. data/sorbet/rbi/gems/rake@13.2.1.rbi +3028 -0
  83. data/sorbet/rbi/gems/rbi@0.1.13.rbi +3078 -0
  84. data/sorbet/rbi/gems/rdoc@6.7.0.rbi +12719 -0
  85. data/sorbet/rbi/gems/regexp_parser@2.9.2.rbi +3772 -0
  86. data/sorbet/rbi/gems/reline@0.5.8.rbi +9 -0
  87. data/sorbet/rbi/gems/rexml@3.2.8.rbi +4794 -0
  88. data/sorbet/rbi/gems/rubocop-ast@1.31.3.rbi +7045 -0
  89. data/sorbet/rbi/gems/rubocop-minitest@0.35.0.rbi +2611 -0
  90. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +329 -0
  91. data/sorbet/rbi/gems/rubocop-sorbet@0.8.3.rbi +1607 -0
  92. data/sorbet/rbi/gems/rubocop@1.64.1.rbi +58104 -0
  93. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
  94. data/sorbet/rbi/gems/spoom@1.3.2.rbi +4421 -0
  95. data/sorbet/rbi/gems/stringio@3.1.0.rbi +9 -0
  96. data/sorbet/rbi/gems/strscan@3.1.0.rbi +9 -0
  97. data/sorbet/rbi/gems/tapioca@0.14.3.rbi +3534 -0
  98. data/sorbet/rbi/gems/thor@1.3.1.rbi +4352 -0
  99. data/sorbet/rbi/gems/timeout@0.4.1.rbi +143 -0
  100. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +9 -0
  101. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +66 -0
  102. data/sorbet/rbi/gems/webrick@1.8.1.rbi +2607 -0
  103. data/sorbet/rbi/gems/websocket-driver@0.7.6.rbi +9 -0
  104. data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +9 -0
  105. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +429 -0
  106. data/sorbet/rbi/gems/yard@0.9.36.rbi +18412 -0
  107. data/sorbet/rbi/gems/zeitwerk@2.6.15.rbi +9 -0
  108. data/sorbet/rbi/todo.rbi +46 -0
  109. data/sorbet/tapioca/config.yml +13 -0
  110. data/sorbet/tapioca/require.rb +4 -0
  111. metadata +339 -0
@@ -0,0 +1,281 @@
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
+
8
+ # source://parallel//lib/parallel/version.rb#2
9
+ module Parallel
10
+ class << self
11
+ # @return [Boolean]
12
+ #
13
+ # source://parallel//lib/parallel.rb#243
14
+ def all?(*args, &block); end
15
+
16
+ # @return [Boolean]
17
+ #
18
+ # source://parallel//lib/parallel.rb#238
19
+ def any?(*args, &block); end
20
+
21
+ # source://parallel//lib/parallel.rb#234
22
+ def each(array, options = T.unsafe(nil), &block); end
23
+
24
+ # source://parallel//lib/parallel.rb#248
25
+ def each_with_index(array, options = T.unsafe(nil), &block); end
26
+
27
+ # source://parallel//lib/parallel.rb#307
28
+ def filter_map(*args, &block); end
29
+
30
+ # source://parallel//lib/parallel.rb#303
31
+ def flat_map(*args, &block); end
32
+
33
+ # source://parallel//lib/parallel.rb#228
34
+ def in_processes(options = T.unsafe(nil), &block); end
35
+
36
+ # source://parallel//lib/parallel.rb#212
37
+ def in_threads(options = T.unsafe(nil)); end
38
+
39
+ # source://parallel//lib/parallel.rb#252
40
+ def map(source, options = T.unsafe(nil), &block); end
41
+
42
+ # source://parallel//lib/parallel.rb#299
43
+ def map_with_index(array, options = T.unsafe(nil), &block); end
44
+
45
+ # Number of physical processor cores on the current system.
46
+ #
47
+ # source://parallel//lib/parallel.rb#312
48
+ def physical_processor_count; end
49
+
50
+ # Number of processors seen by the OS, used for process scheduling
51
+ #
52
+ # source://parallel//lib/parallel.rb#345
53
+ def processor_count; end
54
+
55
+ # source://parallel//lib/parallel.rb#350
56
+ def worker_number; end
57
+
58
+ # TODO: this does not work when doing threads in forks, so should remove and yield the number instead if needed
59
+ #
60
+ # source://parallel//lib/parallel.rb#355
61
+ def worker_number=(worker_num); end
62
+
63
+ private
64
+
65
+ # source://parallel//lib/parallel.rb#361
66
+ def add_progress_bar!(job_factory, options); end
67
+
68
+ # source://parallel//lib/parallel.rb#624
69
+ def call_with_index(item, index, options, &block); end
70
+
71
+ # source://parallel//lib/parallel.rb#556
72
+ def create_workers(job_factory, options, &block); end
73
+
74
+ # options is either a Integer or a Hash with :count
75
+ #
76
+ # source://parallel//lib/parallel.rb#614
77
+ def extract_count_from_options(options); end
78
+
79
+ # source://parallel//lib/parallel.rb#642
80
+ def instrument_finish(item, index, result, options); end
81
+
82
+ # yield results in the order of the input items
83
+ # needs to use `options` to store state between executions
84
+ # needs to use `done` index since a nil result would also be valid
85
+ #
86
+ # source://parallel//lib/parallel.rb#651
87
+ def instrument_finish_in_order(item, index, result, options); end
88
+
89
+ # source://parallel//lib/parallel.rb#671
90
+ def instrument_start(item, index, options); end
91
+
92
+ # source://parallel//lib/parallel.rb#590
93
+ def process_incoming_jobs(read, write, job_factory, options, &block); end
94
+
95
+ # source://parallel//lib/parallel.rb#544
96
+ def replace_worker(job_factory, workers, index, options, blk); end
97
+
98
+ # source://parallel//lib/parallel.rb#635
99
+ def with_instrumentation(item, index, options); end
100
+
101
+ # source://parallel//lib/parallel.rb#386
102
+ def work_direct(job_factory, options, &block); end
103
+
104
+ # source://parallel//lib/parallel.rb#496
105
+ def work_in_processes(job_factory, options, &blk); end
106
+
107
+ # source://parallel//lib/parallel.rb#430
108
+ def work_in_ractors(job_factory, options); end
109
+
110
+ # source://parallel//lib/parallel.rb#405
111
+ def work_in_threads(job_factory, options, &block); end
112
+
113
+ # source://parallel//lib/parallel.rb#564
114
+ def worker(job_factory, options, &block); end
115
+ end
116
+ end
117
+
118
+ # source://parallel//lib/parallel.rb#11
119
+ class Parallel::Break < ::StandardError
120
+ # @return [Break] a new instance of Break
121
+ #
122
+ # source://parallel//lib/parallel.rb#14
123
+ def initialize(value = T.unsafe(nil)); end
124
+
125
+ # Returns the value of attribute value.
126
+ #
127
+ # source://parallel//lib/parallel.rb#12
128
+ def value; end
129
+ end
130
+
131
+ # source://parallel//lib/parallel.rb#8
132
+ class Parallel::DeadWorker < ::StandardError; end
133
+
134
+ # source://parallel//lib/parallel.rb#32
135
+ class Parallel::ExceptionWrapper
136
+ # @return [ExceptionWrapper] a new instance of ExceptionWrapper
137
+ #
138
+ # source://parallel//lib/parallel.rb#35
139
+ def initialize(exception); end
140
+
141
+ # Returns the value of attribute exception.
142
+ #
143
+ # source://parallel//lib/parallel.rb#33
144
+ def exception; end
145
+ end
146
+
147
+ # source://parallel//lib/parallel.rb#98
148
+ class Parallel::JobFactory
149
+ # @return [JobFactory] a new instance of JobFactory
150
+ #
151
+ # source://parallel//lib/parallel.rb#99
152
+ def initialize(source, mutex); end
153
+
154
+ # source://parallel//lib/parallel.rb#107
155
+ def next; end
156
+
157
+ # generate item that is sent to workers
158
+ # just index is faster + less likely to blow up with unserializable errors
159
+ #
160
+ # source://parallel//lib/parallel.rb#136
161
+ def pack(item, index); end
162
+
163
+ # source://parallel//lib/parallel.rb#126
164
+ def size; end
165
+
166
+ # unpack item that is sent to workers
167
+ #
168
+ # source://parallel//lib/parallel.rb#141
169
+ def unpack(data); end
170
+
171
+ private
172
+
173
+ # @return [Boolean]
174
+ #
175
+ # source://parallel//lib/parallel.rb#147
176
+ def producer?; end
177
+
178
+ # source://parallel//lib/parallel.rb#151
179
+ def queue_wrapper(array); end
180
+ end
181
+
182
+ # source://parallel//lib/parallel.rb#20
183
+ class Parallel::Kill < ::Parallel::Break; end
184
+
185
+ # source://parallel//lib/parallel.rb#6
186
+ Parallel::Stop = T.let(T.unsafe(nil), Object)
187
+
188
+ # source://parallel//lib/parallel.rb#23
189
+ class Parallel::UndumpableException < ::StandardError
190
+ # @return [UndumpableException] a new instance of UndumpableException
191
+ #
192
+ # source://parallel//lib/parallel.rb#26
193
+ def initialize(original); end
194
+
195
+ # Returns the value of attribute backtrace.
196
+ #
197
+ # source://parallel//lib/parallel.rb#24
198
+ def backtrace; end
199
+ end
200
+
201
+ # source://parallel//lib/parallel.rb#156
202
+ class Parallel::UserInterruptHandler
203
+ class << self
204
+ # source://parallel//lib/parallel.rb#181
205
+ def kill(thing); end
206
+
207
+ # kill all these pids or threads if user presses Ctrl+c
208
+ #
209
+ # source://parallel//lib/parallel.rb#161
210
+ def kill_on_ctrl_c(pids, options); end
211
+
212
+ private
213
+
214
+ # source://parallel//lib/parallel.rb#205
215
+ def restore_interrupt(old, signal); end
216
+
217
+ # source://parallel//lib/parallel.rb#190
218
+ def trap_interrupt(signal); end
219
+ end
220
+ end
221
+
222
+ # source://parallel//lib/parallel.rb#157
223
+ Parallel::UserInterruptHandler::INTERRUPT_SIGNAL = T.let(T.unsafe(nil), Symbol)
224
+
225
+ # source://parallel//lib/parallel/version.rb#3
226
+ Parallel::VERSION = T.let(T.unsafe(nil), String)
227
+
228
+ # source://parallel//lib/parallel/version.rb#3
229
+ Parallel::Version = T.let(T.unsafe(nil), String)
230
+
231
+ # source://parallel//lib/parallel.rb#51
232
+ class Parallel::Worker
233
+ # @return [Worker] a new instance of Worker
234
+ #
235
+ # source://parallel//lib/parallel.rb#55
236
+ def initialize(read, write, pid); end
237
+
238
+ # might be passed to started_processes and simultaneously closed by another thread
239
+ # when running in isolation mode, so we have to check if it is closed before closing
240
+ #
241
+ # source://parallel//lib/parallel.rb#68
242
+ def close_pipes; end
243
+
244
+ # Returns the value of attribute pid.
245
+ #
246
+ # source://parallel//lib/parallel.rb#52
247
+ def pid; end
248
+
249
+ # Returns the value of attribute read.
250
+ #
251
+ # source://parallel//lib/parallel.rb#52
252
+ def read; end
253
+
254
+ # source://parallel//lib/parallel.rb#61
255
+ def stop; end
256
+
257
+ # Returns the value of attribute thread.
258
+ #
259
+ # source://parallel//lib/parallel.rb#53
260
+ def thread; end
261
+
262
+ # Sets the attribute thread
263
+ #
264
+ # @param value the value to set the attribute thread to.
265
+ #
266
+ # source://parallel//lib/parallel.rb#53
267
+ def thread=(_arg0); end
268
+
269
+ # source://parallel//lib/parallel.rb#73
270
+ def work(data); end
271
+
272
+ # Returns the value of attribute write.
273
+ #
274
+ # source://parallel//lib/parallel.rb#52
275
+ def write; end
276
+
277
+ private
278
+
279
+ # source://parallel//lib/parallel.rb#91
280
+ def wait; end
281
+ end