venture 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +7 -0
  2. data/.ruby-version +1 -0
  3. data/.standard.yml +6 -0
  4. data/.tool-versions +1 -0
  5. data/CHANGELOG.md +1 -0
  6. data/CODE_OF_CONDUCT.md +84 -0
  7. data/Gemfile +22 -0
  8. data/Gemfile.lock +132 -0
  9. data/LICENSE.txt +21 -0
  10. data/README.md +39 -0
  11. data/Rakefile +22 -0
  12. data/lib/venture/response.rb +7 -0
  13. data/lib/venture.rb +28 -0
  14. data/sorbet/config +5 -0
  15. data/sorbet/rbi/gems/.gitattributes +1 -0
  16. data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
  17. data/sorbet/rbi/gems/erubi@1.13.0.rbi +150 -0
  18. data/sorbet/rbi/gems/io-console@0.7.2.rbi +9 -0
  19. data/sorbet/rbi/gems/json@2.7.2.rbi +1562 -0
  20. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14238 -0
  21. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +240 -0
  22. data/sorbet/rbi/gems/minitest@5.24.1.rbi +2249 -0
  23. data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
  24. data/sorbet/rbi/gems/parallel@1.25.1.rbi +287 -0
  25. data/sorbet/rbi/gems/parser@3.3.3.0.rbi +5519 -0
  26. data/sorbet/rbi/gems/prism@0.30.0.rbi +39212 -0
  27. data/sorbet/rbi/gems/psych@5.1.2.rbi +1769 -0
  28. data/sorbet/rbi/gems/racc@1.8.0.rbi +162 -0
  29. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
  30. data/sorbet/rbi/gems/rake@13.2.1.rbi +3028 -0
  31. data/sorbet/rbi/gems/rbi@0.1.13.rbi +3078 -0
  32. data/sorbet/rbi/gems/regexp_parser@2.9.2.rbi +3772 -0
  33. data/sorbet/rbi/gems/reline@0.5.9.rbi +9 -0
  34. data/sorbet/rbi/gems/rexml@3.3.1.rbi +4813 -0
  35. data/sorbet/rbi/gems/rubocop-ast@1.31.3.rbi +7012 -0
  36. data/sorbet/rbi/gems/rubocop-performance@1.21.1.rbi +9 -0
  37. data/sorbet/rbi/gems/rubocop-sorbet@0.7.8.rbi +9 -0
  38. data/sorbet/rbi/gems/rubocop@1.64.1.rbi +58099 -0
  39. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
  40. data/sorbet/rbi/gems/sorbet-http@0.0.1.rbi +143 -0
  41. data/sorbet/rbi/gems/sorbet-result@1.1.0.rbi +224 -0
  42. data/sorbet/rbi/gems/spoom@1.3.2.rbi +4421 -0
  43. data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +9 -0
  44. data/sorbet/rbi/gems/standard-performance@1.4.0.rbi +9 -0
  45. data/sorbet/rbi/gems/standard-sorbet@0.0.2.rbi +53 -0
  46. data/sorbet/rbi/gems/standard@1.39.1.rbi +923 -0
  47. data/sorbet/rbi/gems/stringio@3.1.1.rbi +9 -0
  48. data/sorbet/rbi/gems/strscan@3.1.0.rbi +9 -0
  49. data/sorbet/rbi/gems/tapioca@0.15.0.rbi +3566 -0
  50. data/sorbet/rbi/gems/thor@1.3.1.rbi +4352 -0
  51. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +66 -0
  52. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
  53. data/sorbet/rbi/gems/yard@0.9.36.rbi +18221 -0
  54. data/sorbet/rbi/gems/zeitwerk@2.6.16.rbi +9 -0
  55. data/sorbet/tapioca/config.yml +4 -0
  56. data/sorbet/tapioca/require.rb +7 -0
  57. metadata +145 -0
@@ -0,0 +1,159 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `netrc` gem.
5
+ # Please instead update this file by running `bin/tapioca gem netrc`.
6
+
7
+
8
+ # source://netrc//lib/netrc.rb#3
9
+ class Netrc
10
+ # @return [Netrc] a new instance of Netrc
11
+ #
12
+ # source://netrc//lib/netrc.rb#166
13
+ def initialize(path, data); end
14
+
15
+ # source://netrc//lib/netrc.rb#180
16
+ def [](k); end
17
+
18
+ # source://netrc//lib/netrc.rb#188
19
+ def []=(k, info); end
20
+
21
+ # source://netrc//lib/netrc.rb#200
22
+ def delete(key); end
23
+
24
+ # source://netrc//lib/netrc.rb#211
25
+ def each(&block); end
26
+
27
+ # source://netrc//lib/netrc.rb#196
28
+ def length; end
29
+
30
+ # source://netrc//lib/netrc.rb#215
31
+ def new_item(m, l, p); end
32
+
33
+ # Returns the value of attribute new_item_prefix.
34
+ #
35
+ # source://netrc//lib/netrc.rb#178
36
+ def new_item_prefix; end
37
+
38
+ # Sets the attribute new_item_prefix
39
+ #
40
+ # @param value the value to set the attribute new_item_prefix to.
41
+ #
42
+ # source://netrc//lib/netrc.rb#178
43
+ def new_item_prefix=(_arg0); end
44
+
45
+ # source://netrc//lib/netrc.rb#219
46
+ def save; end
47
+
48
+ # source://netrc//lib/netrc.rb#233
49
+ def unparse; end
50
+
51
+ class << self
52
+ # source://netrc//lib/netrc.rb#42
53
+ def check_permissions(path); end
54
+
55
+ # source://netrc//lib/netrc.rb#33
56
+ def config; end
57
+
58
+ # @yield [self.config]
59
+ #
60
+ # source://netrc//lib/netrc.rb#37
61
+ def configure; end
62
+
63
+ # source://netrc//lib/netrc.rb#10
64
+ def default_path; end
65
+
66
+ # source://netrc//lib/netrc.rb#14
67
+ def home_path; end
68
+
69
+ # source://netrc//lib/netrc.rb#85
70
+ def lex(lines); end
71
+
72
+ # source://netrc//lib/netrc.rb#29
73
+ def netrc_filename; end
74
+
75
+ # Returns two values, a header and a list of items.
76
+ # Each item is a tuple, containing some or all of:
77
+ # - machine keyword (including trailing whitespace+comments)
78
+ # - machine name
79
+ # - login keyword (including surrounding whitespace+comments)
80
+ # - login
81
+ # - password keyword (including surrounding whitespace+comments)
82
+ # - password
83
+ # - trailing chars
84
+ # This lets us change individual fields, then write out the file
85
+ # with all its original formatting.
86
+ #
87
+ # source://netrc//lib/netrc.rb#129
88
+ def parse(ts); end
89
+
90
+ # Reads path and parses it as a .netrc file. If path doesn't
91
+ # exist, returns an empty object. Decrypt paths ending in .gpg.
92
+ #
93
+ # source://netrc//lib/netrc.rb#51
94
+ def read(path = T.unsafe(nil)); end
95
+
96
+ # @return [Boolean]
97
+ #
98
+ # source://netrc//lib/netrc.rb#112
99
+ def skip?(s); end
100
+ end
101
+ end
102
+
103
+ # source://netrc//lib/netrc.rb#8
104
+ Netrc::CYGWIN = T.let(T.unsafe(nil), T.untyped)
105
+
106
+ # source://netrc//lib/netrc.rb#244
107
+ class Netrc::Entry < ::Struct
108
+ # Returns the value of attribute login
109
+ #
110
+ # @return [Object] the current value of login
111
+ def login; end
112
+
113
+ # Sets the attribute login
114
+ #
115
+ # @param value [Object] the value to set the attribute login to.
116
+ # @return [Object] the newly set value
117
+ def login=(_); end
118
+
119
+ # Returns the value of attribute password
120
+ #
121
+ # @return [Object] the current value of password
122
+ def password; end
123
+
124
+ # Sets the attribute password
125
+ #
126
+ # @param value [Object] the value to set the attribute password to.
127
+ # @return [Object] the newly set value
128
+ def password=(_); end
129
+
130
+ def to_ary; end
131
+
132
+ class << self
133
+ def [](*_arg0); end
134
+ def inspect; end
135
+ def keyword_init?; end
136
+ def members; end
137
+ def new(*_arg0); end
138
+ end
139
+ end
140
+
141
+ # source://netrc//lib/netrc.rb#250
142
+ class Netrc::Error < ::StandardError; end
143
+
144
+ # source://netrc//lib/netrc.rb#68
145
+ class Netrc::TokenArray < ::Array
146
+ # source://netrc//lib/netrc.rb#76
147
+ def readto; end
148
+
149
+ # source://netrc//lib/netrc.rb#69
150
+ def take; end
151
+ end
152
+
153
+ # source://netrc//lib/netrc.rb#4
154
+ Netrc::VERSION = T.let(T.unsafe(nil), String)
155
+
156
+ # see http://stackoverflow.com/questions/4871309/what-is-the-correct-way-to-detect-if-ruby-is-running-on-windows
157
+ #
158
+ # source://netrc//lib/netrc.rb#7
159
+ Netrc::WINDOWS = T.let(T.unsafe(nil), T.untyped)
@@ -0,0 +1,287 @@
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(*_arg0, **_arg1, &_arg2); end
29
+
30
+ # source://parallel//lib/parallel.rb#303
31
+ def flat_map(*_arg0, **_arg1, &_arg2); 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#341
53
+ def processor_count; end
54
+
55
+ # source://parallel//lib/parallel.rb#346
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#351
61
+ def worker_number=(worker_num); end
62
+
63
+ private
64
+
65
+ # source://parallel//lib/parallel.rb#384
66
+ def add_progress_bar!(job_factory, options); end
67
+
68
+ # source://parallel//lib/parallel.rb#647
69
+ def call_with_index(item, index, options, &block); end
70
+
71
+ # source://parallel//lib/parallel.rb#579
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#637
77
+ def extract_count_from_options(options); end
78
+
79
+ # source://parallel//lib/parallel.rb#665
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#674
87
+ def instrument_finish_in_order(item, index, result, options); end
88
+
89
+ # source://parallel//lib/parallel.rb#694
90
+ def instrument_start(item, index, options); end
91
+
92
+ # source://parallel//lib/parallel.rb#357
93
+ def physical_processor_count_windows; end
94
+
95
+ # source://parallel//lib/parallel.rb#613
96
+ def process_incoming_jobs(read, write, job_factory, options, &block); end
97
+
98
+ # source://parallel//lib/parallel.rb#567
99
+ def replace_worker(job_factory, workers, index, options, blk); end
100
+
101
+ # source://parallel//lib/parallel.rb#378
102
+ def run(command); end
103
+
104
+ # source://parallel//lib/parallel.rb#658
105
+ def with_instrumentation(item, index, options); end
106
+
107
+ # source://parallel//lib/parallel.rb#409
108
+ def work_direct(job_factory, options, &block); end
109
+
110
+ # source://parallel//lib/parallel.rb#519
111
+ def work_in_processes(job_factory, options, &blk); end
112
+
113
+ # source://parallel//lib/parallel.rb#453
114
+ def work_in_ractors(job_factory, options); end
115
+
116
+ # source://parallel//lib/parallel.rb#428
117
+ def work_in_threads(job_factory, options, &block); end
118
+
119
+ # source://parallel//lib/parallel.rb#587
120
+ def worker(job_factory, options, &block); end
121
+ end
122
+ end
123
+
124
+ # source://parallel//lib/parallel.rb#11
125
+ class Parallel::Break < ::StandardError
126
+ # @return [Break] a new instance of Break
127
+ #
128
+ # source://parallel//lib/parallel.rb#14
129
+ def initialize(value = T.unsafe(nil)); end
130
+
131
+ # Returns the value of attribute value.
132
+ #
133
+ # source://parallel//lib/parallel.rb#12
134
+ def value; end
135
+ end
136
+
137
+ # source://parallel//lib/parallel.rb#8
138
+ class Parallel::DeadWorker < ::StandardError; end
139
+
140
+ # source://parallel//lib/parallel.rb#32
141
+ class Parallel::ExceptionWrapper
142
+ # @return [ExceptionWrapper] a new instance of ExceptionWrapper
143
+ #
144
+ # source://parallel//lib/parallel.rb#35
145
+ def initialize(exception); end
146
+
147
+ # Returns the value of attribute exception.
148
+ #
149
+ # source://parallel//lib/parallel.rb#33
150
+ def exception; end
151
+ end
152
+
153
+ # source://parallel//lib/parallel.rb#98
154
+ class Parallel::JobFactory
155
+ # @return [JobFactory] a new instance of JobFactory
156
+ #
157
+ # source://parallel//lib/parallel.rb#99
158
+ def initialize(source, mutex); end
159
+
160
+ # source://parallel//lib/parallel.rb#107
161
+ def next; end
162
+
163
+ # generate item that is sent to workers
164
+ # just index is faster + less likely to blow up with unserializable errors
165
+ #
166
+ # source://parallel//lib/parallel.rb#136
167
+ def pack(item, index); end
168
+
169
+ # source://parallel//lib/parallel.rb#126
170
+ def size; end
171
+
172
+ # unpack item that is sent to workers
173
+ #
174
+ # source://parallel//lib/parallel.rb#141
175
+ def unpack(data); end
176
+
177
+ private
178
+
179
+ # @return [Boolean]
180
+ #
181
+ # source://parallel//lib/parallel.rb#147
182
+ def producer?; end
183
+
184
+ # source://parallel//lib/parallel.rb#151
185
+ def queue_wrapper(array); end
186
+ end
187
+
188
+ # source://parallel//lib/parallel.rb#20
189
+ class Parallel::Kill < ::Parallel::Break; end
190
+
191
+ # source://parallel//lib/parallel.rb#6
192
+ Parallel::Stop = T.let(T.unsafe(nil), Object)
193
+
194
+ # source://parallel//lib/parallel.rb#23
195
+ class Parallel::UndumpableException < ::StandardError
196
+ # @return [UndumpableException] a new instance of UndumpableException
197
+ #
198
+ # source://parallel//lib/parallel.rb#26
199
+ def initialize(original); end
200
+
201
+ # Returns the value of attribute backtrace.
202
+ #
203
+ # source://parallel//lib/parallel.rb#24
204
+ def backtrace; end
205
+ end
206
+
207
+ # source://parallel//lib/parallel.rb#156
208
+ class Parallel::UserInterruptHandler
209
+ class << self
210
+ # source://parallel//lib/parallel.rb#181
211
+ def kill(thing); end
212
+
213
+ # kill all these pids or threads if user presses Ctrl+c
214
+ #
215
+ # source://parallel//lib/parallel.rb#161
216
+ def kill_on_ctrl_c(pids, options); end
217
+
218
+ private
219
+
220
+ # source://parallel//lib/parallel.rb#205
221
+ def restore_interrupt(old, signal); end
222
+
223
+ # source://parallel//lib/parallel.rb#190
224
+ def trap_interrupt(signal); end
225
+ end
226
+ end
227
+
228
+ # source://parallel//lib/parallel.rb#157
229
+ Parallel::UserInterruptHandler::INTERRUPT_SIGNAL = T.let(T.unsafe(nil), Symbol)
230
+
231
+ # source://parallel//lib/parallel/version.rb#3
232
+ Parallel::VERSION = T.let(T.unsafe(nil), String)
233
+
234
+ # source://parallel//lib/parallel/version.rb#3
235
+ Parallel::Version = T.let(T.unsafe(nil), String)
236
+
237
+ # source://parallel//lib/parallel.rb#51
238
+ class Parallel::Worker
239
+ # @return [Worker] a new instance of Worker
240
+ #
241
+ # source://parallel//lib/parallel.rb#55
242
+ def initialize(read, write, pid); end
243
+
244
+ # might be passed to started_processes and simultaneously closed by another thread
245
+ # when running in isolation mode, so we have to check if it is closed before closing
246
+ #
247
+ # source://parallel//lib/parallel.rb#68
248
+ def close_pipes; end
249
+
250
+ # Returns the value of attribute pid.
251
+ #
252
+ # source://parallel//lib/parallel.rb#52
253
+ def pid; end
254
+
255
+ # Returns the value of attribute read.
256
+ #
257
+ # source://parallel//lib/parallel.rb#52
258
+ def read; end
259
+
260
+ # source://parallel//lib/parallel.rb#61
261
+ def stop; end
262
+
263
+ # Returns the value of attribute thread.
264
+ #
265
+ # source://parallel//lib/parallel.rb#53
266
+ def thread; end
267
+
268
+ # Sets the attribute thread
269
+ #
270
+ # @param value the value to set the attribute thread to.
271
+ #
272
+ # source://parallel//lib/parallel.rb#53
273
+ def thread=(_arg0); end
274
+
275
+ # source://parallel//lib/parallel.rb#73
276
+ def work(data); end
277
+
278
+ # Returns the value of attribute write.
279
+ #
280
+ # source://parallel//lib/parallel.rb#52
281
+ def write; end
282
+
283
+ private
284
+
285
+ # source://parallel//lib/parallel.rb#91
286
+ def wait; end
287
+ end