vigiles 0.1.0.pre.beta3 → 0.1.0.pre.beta5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +10 -1
  3. data/lib/vigiles/archive/extras.rb +4 -3
  4. data/lib/vigiles/archive/metadata.rb +3 -2
  5. data/lib/vigiles/archive/request.rb +18 -4
  6. data/lib/vigiles/archive.rb +15 -3
  7. data/lib/vigiles/constants.rb +7 -0
  8. data/lib/vigiles/middleware/record_conversation.rb +6 -22
  9. data/lib/vigiles/spec.rb +1 -1
  10. data/lib/vigiles/utilities/uri.rb +18 -0
  11. data/lib/vigiles/version.rb +2 -2
  12. data/lib/vigiles.rb +5 -1
  13. data/sorbet/rbi/gems/{activemodel@7.0.5.rbi → actioncable@7.1.3.3.rbi} +2 -2
  14. data/sorbet/rbi/gems/actionmailbox@7.1.3.3.rbi +8 -0
  15. data/sorbet/rbi/gems/{activerecord@7.0.5.rbi → actionmailer@7.1.3.3.rbi} +2 -2
  16. data/sorbet/rbi/gems/actionpack@7.1.3.3.rbi +20046 -0
  17. data/sorbet/rbi/gems/actiontext@7.1.3.3.rbi +8 -0
  18. data/sorbet/rbi/gems/actionview@7.1.3.3.rbi +15953 -0
  19. data/sorbet/rbi/gems/activejob@7.1.3.3.rbi +8 -0
  20. data/sorbet/rbi/gems/activemodel@7.1.3.3.rbi +6657 -0
  21. data/sorbet/rbi/gems/activerecord@7.1.3.3.rbi +41520 -0
  22. data/sorbet/rbi/gems/activestorage@7.1.3.3.rbi +8 -0
  23. data/sorbet/rbi/gems/activesupport@7.1.3.3.rbi +20570 -0
  24. data/sorbet/rbi/gems/base64@0.2.0.rbi +508 -0
  25. data/sorbet/rbi/gems/bigdecimal@3.1.8.rbi +77 -0
  26. data/sorbet/rbi/gems/builder@3.2.4.rbi +8 -0
  27. data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +8 -0
  28. data/sorbet/rbi/gems/crass@1.0.6.rbi +622 -0
  29. data/sorbet/rbi/gems/date@3.3.4.rbi +74 -0
  30. data/sorbet/rbi/gems/drb@2.2.1.rbi +1346 -0
  31. data/sorbet/rbi/gems/globalid@1.2.1.rbi +8 -0
  32. data/sorbet/rbi/gems/i18n@1.14.5.rbi +2358 -0
  33. data/sorbet/rbi/gems/io-console@0.7.2.rbi +8 -0
  34. data/sorbet/rbi/gems/loofah@2.22.0.rbi +1080 -0
  35. data/sorbet/rbi/gems/{i18n@1.14.1.rbi → mail@2.8.1.rbi} +2 -2
  36. data/sorbet/rbi/gems/marcel@1.0.4.rbi +8 -0
  37. data/sorbet/rbi/gems/mini_mime@1.1.5.rbi +8 -0
  38. data/sorbet/rbi/gems/mutex_m@0.2.0.rbi +93 -0
  39. data/sorbet/rbi/gems/net-imap@0.4.11.rbi +8 -0
  40. data/sorbet/rbi/gems/net-pop@0.1.2.rbi +8 -0
  41. data/sorbet/rbi/gems/net-protocol@0.2.2.rbi +291 -0
  42. data/sorbet/rbi/gems/net-smtp@0.5.0.rbi +8 -0
  43. data/sorbet/rbi/gems/nio4r@2.7.3.rbi +8 -0
  44. data/sorbet/rbi/gems/nokogiri@1.16.5.rbi +7310 -0
  45. data/sorbet/rbi/gems/psych@5.1.2.rbi +1768 -0
  46. data/sorbet/rbi/gems/rack-session@2.0.0.rbi +729 -0
  47. data/sorbet/rbi/gems/rack-test@2.1.0.rbi +749 -0
  48. data/sorbet/rbi/gems/rack@3.0.11.rbi +5195 -0
  49. data/sorbet/rbi/gems/rackup@2.1.0.rbi +406 -0
  50. data/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +691 -0
  51. data/sorbet/rbi/gems/rails-html-sanitizer@1.6.0.rbi +721 -0
  52. data/sorbet/rbi/gems/rails@7.1.3.3.rbi +8 -0
  53. data/sorbet/rbi/gems/railties@7.1.3.3.rbi +2167 -0
  54. data/sorbet/rbi/gems/rdoc@6.6.3.1.rbi +12715 -0
  55. data/sorbet/rbi/gems/reline@0.5.7.rbi +8 -0
  56. data/sorbet/rbi/gems/stringio@3.1.0.rbi +8 -0
  57. data/sorbet/rbi/gems/timeout@0.4.1.rbi +148 -0
  58. data/sorbet/rbi/gems/webrick@1.8.1.rbi +2606 -0
  59. data/sorbet/rbi/gems/websocket-driver@0.7.6.rbi +8 -0
  60. data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +8 -0
  61. data/sorbet/rbi/gems/zeitwerk@2.6.13.rbi +1003 -0
  62. data/vigiles.gemspec +1 -1
  63. metadata +54 -7
  64. data/sorbet/rbi/gems/activesupport@7.0.5.rbi +0 -14
@@ -0,0 +1,406 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `rackup` gem.
5
+ # Please instead update this file by running `bin/tapioca gem rackup`.
6
+
7
+ # source://rackup//lib/rack/handler.rb#8
8
+ module Rack
9
+ class << self
10
+ # source://rack/3.0.11/lib/rack/version.rb#31
11
+ def release; end
12
+
13
+ # source://rack/3.0.11/lib/rack/version.rb#23
14
+ def version; end
15
+ end
16
+ end
17
+
18
+ # source://rackup//lib/rack/handler.rb#9
19
+ Rack::Handler = Rackup::Handler
20
+
21
+ # source://rackup//lib/rack/server.rb#9
22
+ Rack::Server = Rackup::Server
23
+
24
+ # source://rackup//lib/rackup/handler.rb#6
25
+ module Rackup; end
26
+
27
+ # *Handlers* connect web servers with Rack.
28
+ #
29
+ # Rackup includes Handlers for WEBrick and CGI.
30
+ #
31
+ # Handlers usually are activated by calling <tt>MyHandler.run(myapp)</tt>.
32
+ # A second optional hash can be passed to include server-specific
33
+ # configuration.
34
+ #
35
+ # source://rackup//lib/rackup/handler.rb#14
36
+ module Rackup::Handler
37
+ class << self
38
+ # source://rackup//lib/rackup/handler.rb#30
39
+ def [](name); end
40
+
41
+ # source://rackup//lib/rackup/handler.rb#84
42
+ def default; end
43
+
44
+ # source://rackup//lib/rackup/handler.rb#40
45
+ def get(name); end
46
+
47
+ # Select first available Rack handler given an `Array` of server names.
48
+ # Raises `LoadError` if no handler was found.
49
+ #
50
+ # > pick ['puma', 'webrick']
51
+ # => Rackup::Handler::WEBrick
52
+ #
53
+ # @raise [LoadError]
54
+ #
55
+ # source://rackup//lib/rackup/handler.rb#69
56
+ def pick(server_names); end
57
+
58
+ # Register a named handler class.
59
+ #
60
+ # source://rackup//lib/rackup/handler.rb#18
61
+ def register(name, klass); end
62
+
63
+ # Transforms server-name constants to their canonical form as filenames,
64
+ # then tries to require them but silences the LoadError if not found
65
+ #
66
+ # Naming convention:
67
+ #
68
+ # Foo # => 'foo'
69
+ # FooBar # => 'foo_bar.rb'
70
+ # FooBAR # => 'foobar.rb'
71
+ # FOObar # => 'foobar.rb'
72
+ # FOOBAR # => 'foobar.rb'
73
+ # FooBarBaz # => 'foo_bar_baz.rb'
74
+ #
75
+ # source://rackup//lib/rackup/handler.rb#106
76
+ def require_handler(prefix, const_name); end
77
+ end
78
+ end
79
+
80
+ # source://rackup//lib/rackup/handler/cgi.rb#8
81
+ class Rackup::Handler::CGI
82
+ include ::Rack
83
+
84
+ class << self
85
+ # source://rackup//lib/rackup/handler/cgi.rb#11
86
+ def run(app, **options); end
87
+
88
+ # source://rackup//lib/rackup/handler/cgi.rb#51
89
+ def send_body(body); end
90
+
91
+ # source://rackup//lib/rackup/handler/cgi.rb#40
92
+ def send_headers(status, headers); end
93
+
94
+ # source://rackup//lib/rackup/handler/cgi.rb#16
95
+ def serve(app); end
96
+ end
97
+ end
98
+
99
+ # source://rackup//lib/rackup/handler.rb#59
100
+ Rackup::Handler::RACKUP_HANDLER = T.let(T.unsafe(nil), String)
101
+
102
+ # source://rackup//lib/rackup/handler.rb#58
103
+ Rackup::Handler::RACK_HANDLER = T.let(T.unsafe(nil), String)
104
+
105
+ # source://rackup//lib/rackup/handler.rb#61
106
+ Rackup::Handler::SERVER_NAMES = T.let(T.unsafe(nil), Array)
107
+
108
+ # source://rackup//lib/rackup/handler/webrick.rb#18
109
+ class Rackup::Handler::WEBrick < ::WEBrick::HTTPServlet::AbstractServlet
110
+ # @return [WEBrick] a new instance of WEBrick
111
+ #
112
+ # source://rackup//lib/rackup/handler/webrick.rb#54
113
+ def initialize(server, app); end
114
+
115
+ # source://rackup//lib/rackup/handler/webrick.rb#91
116
+ def service(req, res); end
117
+
118
+ class << self
119
+ # @yield [@server]
120
+ #
121
+ # source://rackup//lib/rackup/handler/webrick.rb#19
122
+ def run(app, **options); end
123
+
124
+ # source://rackup//lib/rackup/handler/webrick.rb#47
125
+ def shutdown; end
126
+
127
+ # source://rackup//lib/rackup/handler/webrick.rb#37
128
+ def valid_options; end
129
+ end
130
+ end
131
+
132
+ # This handles mapping the WEBrick request to a Rack input stream.
133
+ #
134
+ # source://rackup//lib/rackup/handler/webrick.rb#60
135
+ class Rackup::Handler::WEBrick::Input
136
+ include ::Rackup::Stream::Reader
137
+
138
+ # @return [Input] a new instance of Input
139
+ #
140
+ # source://rackup//lib/rackup/handler/webrick.rb#63
141
+ def initialize(request); end
142
+
143
+ # source://rackup//lib/rackup/handler/webrick.rb#78
144
+ def close; end
145
+
146
+ private
147
+
148
+ # Read one chunk from the request body.
149
+ #
150
+ # source://rackup//lib/rackup/handler/webrick.rb#86
151
+ def read_next; end
152
+ end
153
+
154
+ # source://rackup//lib/rackup/server.rb#22
155
+ class Rackup::Server
156
+ # Options may include:
157
+ # * :app
158
+ # a rack application to run (overrides :config and :builder)
159
+ # * :builder
160
+ # a string to evaluate a Rack::Builder from
161
+ # * :config
162
+ # a rackup configuration file path to load (.ru)
163
+ # * :environment
164
+ # this selects the middleware that will be wrapped around
165
+ # your application. Default options available are:
166
+ # - development: CommonLogger, ShowExceptions, and Lint
167
+ # - deployment: CommonLogger
168
+ # - none: no extra middleware
169
+ # note: when the server is a cgi server, CommonLogger is not included.
170
+ # * :server
171
+ # choose a specific Rackup::Handler, e.g. cgi, fcgi, webrick
172
+ # * :daemonize
173
+ # if truthy, the server will daemonize itself (fork, detach, etc)
174
+ # if :noclose, the server will not close STDOUT/STDERR
175
+ # * :pid
176
+ # path to write a pid file after daemonize
177
+ # * :Host
178
+ # the host address to bind to (used by supporting Rackup::Handler)
179
+ # * :Port
180
+ # the port to bind to (used by supporting Rackup::Handler)
181
+ # * :AccessLog
182
+ # webrick access log options (or supporting Rackup::Handler)
183
+ # * :debug
184
+ # turn on debug output ($DEBUG = true)
185
+ # * :warn
186
+ # turn on warnings ($-w = true)
187
+ # * :include
188
+ # add given paths to $LOAD_PATH
189
+ # * :require
190
+ # require the given libraries
191
+ #
192
+ # Additional options for profiling app initialization include:
193
+ # * :heapfile
194
+ # location for ObjectSpace.dump_all to write the output to
195
+ # * :profile_file
196
+ # location for CPU/Memory (StackProf) profile output (defaults to a tempfile)
197
+ # * :profile_mode
198
+ # StackProf profile mode (cpu|wall|object)
199
+ #
200
+ # @return [Server] a new instance of Server
201
+ #
202
+ # source://rackup//lib/rackup/server.rb#230
203
+ def initialize(options = T.unsafe(nil)); end
204
+
205
+ # source://rackup//lib/rackup/server.rb#262
206
+ def app; end
207
+
208
+ # source://rackup//lib/rackup/server.rb#248
209
+ def default_options; end
210
+
211
+ # source://rackup//lib/rackup/server.rb#296
212
+ def middleware; end
213
+
214
+ # source://rackup//lib/rackup/server.rb#243
215
+ def options; end
216
+
217
+ # Sets the attribute options
218
+ #
219
+ # @param value the value to set the attribute options to.
220
+ #
221
+ # source://rackup//lib/rackup/server.rb#185
222
+ def options=(_arg0); end
223
+
224
+ # source://rackup//lib/rackup/server.rb#344
225
+ def server; end
226
+
227
+ # source://rackup//lib/rackup/server.rb#300
228
+ def start(&block); end
229
+
230
+ private
231
+
232
+ # source://rackup//lib/rackup/server.rb#413
233
+ def build_app(app); end
234
+
235
+ # source://rackup//lib/rackup/server.rb#349
236
+ def build_app_and_options_from_config; end
237
+
238
+ # source://rackup//lib/rackup/server.rb#395
239
+ def build_app_from_string; end
240
+
241
+ # source://rackup//lib/rackup/server.rb#442
242
+ def check_pid!; end
243
+
244
+ # source://rackup//lib/rackup/server.rb#427
245
+ def daemonize_app; end
246
+
247
+ # source://rackup//lib/rackup/server.rb#456
248
+ def exit_with_pid(pid); end
249
+
250
+ # source://rackup//lib/rackup/server.rb#357
251
+ def handle_profiling(heapfile, profile_mode, filename); end
252
+
253
+ # source://rackup//lib/rackup/server.rb#385
254
+ def make_profile_name(filename); end
255
+
256
+ # source://rackup//lib/rackup/server.rb#409
257
+ def opt_parser; end
258
+
259
+ # source://rackup//lib/rackup/server.rb#399
260
+ def parse_options(args); end
261
+
262
+ # source://rackup//lib/rackup/server.rb#423
263
+ def wrapped_app; end
264
+
265
+ # source://rackup//lib/rackup/server.rb#434
266
+ def write_pid; end
267
+
268
+ class << self
269
+ # source://rackup//lib/rackup/server.rb#273
270
+ def default_middleware_by_environment; end
271
+
272
+ # source://rackup//lib/rackup/server.rb#267
273
+ def logging_middleware; end
274
+
275
+ # source://rackup//lib/rackup/server.rb#291
276
+ def middleware; end
277
+
278
+ # Start a new rack server (like running rackup). This will parse ARGV and
279
+ # provide standard ARGV rackup options, defaulting to load 'config.ru'.
280
+ #
281
+ # Providing an options hash will prevent ARGV parsing and will not include
282
+ # any default options.
283
+ #
284
+ # This method can be used to very easily launch a CGI application, for
285
+ # example:
286
+ #
287
+ # Rack::Server.start(
288
+ # :app => lambda do |e|
289
+ # [200, {'content-type' => 'text/html'}, ['hello world']]
290
+ # end,
291
+ # :server => 'cgi'
292
+ # )
293
+ #
294
+ # Further options available here are documented on Rack::Server#initialize
295
+ #
296
+ # source://rackup//lib/rackup/server.rb#181
297
+ def start(options = T.unsafe(nil)); end
298
+ end
299
+ end
300
+
301
+ # source://rackup//lib/rackup/server.rb#23
302
+ class Rackup::Server::Options
303
+ # source://rackup//lib/rackup/server.rb#143
304
+ def handler_opts(options); end
305
+
306
+ # source://rackup//lib/rackup/server.rb#24
307
+ def parse!(args); end
308
+ end
309
+
310
+ # The input stream is an IO-like object which contains the raw HTTP POST data. When applicable, its external encoding must be “ASCII-8BIT” and it must be opened in binary mode, for Ruby 1.9 compatibility. The input stream must respond to gets, each, read and rewind.
311
+ #
312
+ # source://rackup//lib/rackup/stream.rb#8
313
+ class Rackup::Stream
314
+ include ::Rackup::Stream::Reader
315
+
316
+ # @raise [ArgumentError]
317
+ # @return [Stream] a new instance of Stream
318
+ #
319
+ # source://rackup//lib/rackup/stream.rb#9
320
+ def initialize(input = T.unsafe(nil), output = T.unsafe(nil)); end
321
+
322
+ # source://rackup//lib/rackup/stream.rb#147
323
+ def <<(buffer); end
324
+
325
+ # Close the input and output bodies.
326
+ #
327
+ # source://rackup//lib/rackup/stream.rb#169
328
+ def close(error = T.unsafe(nil)); end
329
+
330
+ # source://rackup//lib/rackup/stream.rb#154
331
+ def close_read; end
332
+
333
+ # close must never be called on the input stream. huh?
334
+ #
335
+ # source://rackup//lib/rackup/stream.rb#160
336
+ def close_write; end
337
+
338
+ # Whether the stream has been closed.
339
+ #
340
+ # @return [Boolean]
341
+ #
342
+ # source://rackup//lib/rackup/stream.rb#179
343
+ def closed?; end
344
+
345
+ # Whether there are any output chunks remaining?
346
+ #
347
+ # @return [Boolean]
348
+ #
349
+ # source://rackup//lib/rackup/stream.rb#184
350
+ def empty?; end
351
+
352
+ # source://rackup//lib/rackup/stream.rb#151
353
+ def flush; end
354
+
355
+ # Returns the value of attribute input.
356
+ #
357
+ # source://rackup//lib/rackup/stream.rb#20
358
+ def input; end
359
+
360
+ # Returns the value of attribute output.
361
+ #
362
+ # source://rackup//lib/rackup/stream.rb#21
363
+ def output; end
364
+
365
+ # source://rackup//lib/rackup/stream.rb#134
366
+ def write(buffer); end
367
+
368
+ # source://rackup//lib/rackup/stream.rb#143
369
+ def write_nonblock(buffer); end
370
+
371
+ private
372
+
373
+ # source://rackup//lib/rackup/stream.rb#190
374
+ def read_next; end
375
+ end
376
+
377
+ # This provides a read-only interface for data, which is surprisingly tricky to implement correctly.
378
+ #
379
+ # source://rackup//lib/rackup/stream.rb#24
380
+ module Rackup::Stream::Reader
381
+ # source://rackup//lib/rackup/stream.rb#99
382
+ def each; end
383
+
384
+ # source://rackup//lib/rackup/stream.rb#95
385
+ def gets; end
386
+
387
+ # read behaves like IO#read. Its signature is read([length, [buffer]]). If given, length must be a non-negative Integer (>= 0) or nil, and buffer must be a String and may not be nil. If length is given and not nil, then this method reads at most length bytes from the input stream. If length is not given or nil, then this method reads all data until EOF. When EOF is reached, this method returns nil if length is given and not nil, or “” if length is not given or is nil. If buffer is given, then the read data will be placed into buffer instead of a newly created String object.
388
+ #
389
+ # @param length [Integer] the amount of data to read
390
+ # @param buffer [String] the buffer which will receive the data
391
+ # @return a buffer containing the data
392
+ #
393
+ # source://rackup//lib/rackup/stream.rb#32
394
+ def read(length = T.unsafe(nil), buffer = T.unsafe(nil)); end
395
+
396
+ # source://rackup//lib/rackup/stream.rb#105
397
+ def read_nonblock(length, buffer = T.unsafe(nil)); end
398
+
399
+ # Read at most `length` bytes from the stream. Will avoid reading from the underlying stream if possible.
400
+ #
401
+ # source://rackup//lib/rackup/stream.rb#74
402
+ def read_partial(length = T.unsafe(nil)); end
403
+ end
404
+
405
+ # source://rackup//lib/rackup/version.rb#7
406
+ Rackup::VERSION = T.let(T.unsafe(nil), String)