vigiles 0.1.0.pre.beta3 → 0.1.0.pre.beta4

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 +1 -1
  12. data/lib/vigiles.rb +4 -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,508 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `base64` gem.
5
+ # Please instead update this file by running `bin/tapioca gem base64`.
6
+
7
+ # \Module \Base64 provides methods for:
8
+ #
9
+ # - Encoding a binary string (containing non-ASCII characters)
10
+ # as a string of printable ASCII characters.
11
+ # - Decoding such an encoded string.
12
+ #
13
+ # \Base64 is commonly used in contexts where binary data
14
+ # is not allowed or supported:
15
+ #
16
+ # - Images in HTML or CSS files, or in URLs.
17
+ # - Email attachments.
18
+ #
19
+ # A \Base64-encoded string is about one-third larger that its source.
20
+ # See the {Wikipedia article}[https://en.wikipedia.org/wiki/Base64]
21
+ # for more information.
22
+ #
23
+ # This module provides three pairs of encode/decode methods.
24
+ # Your choices among these methods should depend on:
25
+ #
26
+ # - Which character set is to be used for encoding and decoding.
27
+ # - Whether "padding" is to be used.
28
+ # - Whether encoded strings are to contain newlines.
29
+ #
30
+ # Note: Examples on this page assume that the including program has executed:
31
+ #
32
+ # require 'base64'
33
+ #
34
+ # == Encoding Character Sets
35
+ #
36
+ # A \Base64-encoded string consists only of characters from a 64-character set:
37
+ #
38
+ # - <tt>('A'..'Z')</tt>.
39
+ # - <tt>('a'..'z')</tt>.
40
+ # - <tt>('0'..'9')</tt>.
41
+ # - <tt>=</tt>, the 'padding' character.
42
+ # - Either:
43
+ # - <tt>%w[+ /]</tt>:
44
+ # {RFC-2045-compliant}[https://datatracker.ietf.org/doc/html/rfc2045];
45
+ # _not_ safe for URLs.
46
+ # - <tt>%w[- _]</tt>:
47
+ # {RFC-4648-compliant}[https://datatracker.ietf.org/doc/html/rfc4648];
48
+ # safe for URLs.
49
+ #
50
+ # If you are working with \Base64-encoded strings that will come from
51
+ # or be put into URLs, you should choose this encoder-decoder pair
52
+ # of RFC-4648-compliant methods:
53
+ #
54
+ # - Base64.urlsafe_encode64 and Base64.urlsafe_decode64.
55
+ #
56
+ # Otherwise, you may choose any of the pairs in this module,
57
+ # including the pair above, or the RFC-2045-compliant pairs:
58
+ #
59
+ # - Base64.encode64 and Base64.decode64.
60
+ # - Base64.strict_encode64 and Base64.strict_decode64.
61
+ #
62
+ # == Padding
63
+ #
64
+ # \Base64-encoding changes a triplet of input bytes
65
+ # into a quartet of output characters.
66
+ #
67
+ # <b>Padding in Encode Methods</b>
68
+ #
69
+ # Padding -- extending an encoded string with zero, one, or two trailing
70
+ # <tt>=</tt> characters -- is performed by methods Base64.encode64,
71
+ # Base64.strict_encode64, and, by default, Base64.urlsafe_encode64:
72
+ #
73
+ # Base64.encode64('s') # => "cw==\n"
74
+ # Base64.strict_encode64('s') # => "cw=="
75
+ # Base64.urlsafe_encode64('s') # => "cw=="
76
+ # Base64.urlsafe_encode64('s', padding: false) # => "cw"
77
+ #
78
+ # When padding is performed, the encoded string is always of length <em>4n</em>,
79
+ # where +n+ is a non-negative integer:
80
+ #
81
+ # - Input bytes of length <em>3n</em> generate unpadded output characters
82
+ # of length <em>4n</em>:
83
+ #
84
+ # # n = 1: 3 bytes => 4 characters.
85
+ # Base64.strict_encode64('123') # => "MDEy"
86
+ # # n = 2: 6 bytes => 8 characters.
87
+ # Base64.strict_encode64('123456') # => "MDEyMzQ1"
88
+ #
89
+ # - Input bytes of length <em>3n+1</em> generate padded output characters
90
+ # of length <em>4(n+1)</em>, with two padding characters at the end:
91
+ #
92
+ # # n = 1: 4 bytes => 8 characters.
93
+ # Base64.strict_encode64('1234') # => "MDEyMw=="
94
+ # # n = 2: 7 bytes => 12 characters.
95
+ # Base64.strict_encode64('1234567') # => "MDEyMzQ1Ng=="
96
+ #
97
+ # - Input bytes of length <em>3n+2</em> generate padded output characters
98
+ # of length <em>4(n+1)</em>, with one padding character at the end:
99
+ #
100
+ # # n = 1: 5 bytes => 8 characters.
101
+ # Base64.strict_encode64('12345') # => "MDEyMzQ="
102
+ # # n = 2: 8 bytes => 12 characters.
103
+ # Base64.strict_encode64('12345678') # => "MDEyMzQ1Njc="
104
+ #
105
+ # When padding is suppressed, for a positive integer <em>n</em>:
106
+ #
107
+ # - Input bytes of length <em>3n</em> generate unpadded output characters
108
+ # of length <em>4n</em>:
109
+ #
110
+ # # n = 1: 3 bytes => 4 characters.
111
+ # Base64.urlsafe_encode64('123', padding: false) # => "MDEy"
112
+ # # n = 2: 6 bytes => 8 characters.
113
+ # Base64.urlsafe_encode64('123456', padding: false) # => "MDEyMzQ1"
114
+ #
115
+ # - Input bytes of length <em>3n+1</em> generate unpadded output characters
116
+ # of length <em>4n+2</em>, with two padding characters at the end:
117
+ #
118
+ # # n = 1: 4 bytes => 6 characters.
119
+ # Base64.urlsafe_encode64('1234', padding: false) # => "MDEyMw"
120
+ # # n = 2: 7 bytes => 10 characters.
121
+ # Base64.urlsafe_encode64('1234567', padding: false) # => "MDEyMzQ1Ng"
122
+ #
123
+ # - Input bytes of length <em>3n+2</em> generate unpadded output characters
124
+ # of length <em>4n+3</em>, with one padding character at the end:
125
+ #
126
+ # # n = 1: 5 bytes => 7 characters.
127
+ # Base64.urlsafe_encode64('12345', padding: false) # => "MDEyMzQ"
128
+ # # m = 2: 8 bytes => 11 characters.
129
+ # Base64.urlsafe_encode64('12345678', padding: false) # => "MDEyMzQ1Njc"
130
+ #
131
+ # <b>Padding in Decode Methods</b>
132
+ #
133
+ # All of the \Base64 decode methods support (but do not require) padding.
134
+ #
135
+ # \Method Base64.decode64 does not check the size of the padding:
136
+ #
137
+ # Base64.decode64("MDEyMzQ1Njc") # => "01234567"
138
+ # Base64.decode64("MDEyMzQ1Njc=") # => "01234567"
139
+ # Base64.decode64("MDEyMzQ1Njc==") # => "01234567"
140
+ #
141
+ # \Method Base64.strict_decode64 strictly enforces padding size:
142
+ #
143
+ # Base64.strict_decode64("MDEyMzQ1Njc") # Raises ArgumentError
144
+ # Base64.strict_decode64("MDEyMzQ1Njc=") # => "01234567"
145
+ # Base64.strict_decode64("MDEyMzQ1Njc==") # Raises ArgumentError
146
+ #
147
+ # \Method Base64.urlsafe_decode64 allows padding in +str+,
148
+ # which if present, must be correct:
149
+ # see {Padding}[Base64.html#module-Base64-label-Padding], above:
150
+ #
151
+ # Base64.urlsafe_decode64("MDEyMzQ1Njc") # => "01234567"
152
+ # Base64.urlsafe_decode64("MDEyMzQ1Njc=") # => "01234567"
153
+ # Base64.urlsafe_decode64("MDEyMzQ1Njc==") # Raises ArgumentError.
154
+ #
155
+ # == Newlines
156
+ #
157
+ # An encoded string returned by Base64.encode64 or Base64.urlsafe_encode64
158
+ # has an embedded newline character
159
+ # after each 60-character sequence, and, if non-empty, at the end:
160
+ #
161
+ # # No newline if empty.
162
+ # encoded = Base64.encode64("\x00" * 0)
163
+ # encoded.index("\n") # => nil
164
+ #
165
+ # # Newline at end of short output.
166
+ # encoded = Base64.encode64("\x00" * 1)
167
+ # encoded.size # => 4
168
+ # encoded.index("\n") # => 4
169
+ #
170
+ # # Newline at end of longer output.
171
+ # encoded = Base64.encode64("\x00" * 45)
172
+ # encoded.size # => 60
173
+ # encoded.index("\n") # => 60
174
+ #
175
+ # # Newlines embedded and at end of still longer output.
176
+ # encoded = Base64.encode64("\x00" * 46)
177
+ # encoded.size # => 65
178
+ # encoded.rindex("\n") # => 65
179
+ # encoded.split("\n").map {|s| s.size } # => [60, 4]
180
+ #
181
+ # The string to be encoded may itself contain newlines,
182
+ # which are encoded as \Base64:
183
+ #
184
+ # # Base64.encode64("\n\n\n") # => "CgoK\n"
185
+ # s = "This is line 1\nThis is line 2\n"
186
+ # Base64.encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n"
187
+ #
188
+ # source://base64//lib/base64.rb#184
189
+ module Base64
190
+ private
191
+
192
+ # Returns a string containing the decoding of an RFC-2045-compliant
193
+ # \Base64-encoded string +str+:
194
+ #
195
+ # s = "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n"
196
+ # Base64.decode64(s) # => "This is line 1\nThis is line 2\n"
197
+ #
198
+ # Non-\Base64 characters in +str+ are ignored;
199
+ # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
200
+ # these include newline characters and characters <tt>-</tt> and <tt>/</tt>:
201
+ #
202
+ # Base64.decode64("\x00\n-_") # => ""
203
+ #
204
+ # Padding in +str+ (even if incorrect) is ignored:
205
+ #
206
+ # Base64.decode64("MDEyMzQ1Njc") # => "01234567"
207
+ # Base64.decode64("MDEyMzQ1Njc=") # => "01234567"
208
+ # Base64.decode64("MDEyMzQ1Njc==") # => "01234567"
209
+ #
210
+ # source://base64//lib/base64.rb#241
211
+ def decode64(str); end
212
+
213
+ # Returns a string containing the RFC-2045-compliant \Base64-encoding of +bin+.
214
+ #
215
+ # Per RFC 2045, the returned string may contain the URL-unsafe characters
216
+ # <tt>+</tt> or <tt>/</tt>;
217
+ # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
218
+ #
219
+ # Base64.encode64("\xFB\xEF\xBE") # => "++++\n"
220
+ # Base64.encode64("\xFF\xFF\xFF") # => "////\n"
221
+ #
222
+ # The returned string may include padding;
223
+ # see {Padding}[Base64.html#module-Base64-label-Padding] above.
224
+ #
225
+ # Base64.encode64('*') # => "Kg==\n"
226
+ #
227
+ # The returned string ends with a newline character, and if sufficiently long
228
+ # will have one or more embedded newline characters;
229
+ # see {Newlines}[Base64.html#module-Base64-label-Newlines] above:
230
+ #
231
+ # Base64.encode64('*') # => "Kg==\n"
232
+ # Base64.encode64('*' * 46)
233
+ # # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq\nKg==\n"
234
+ #
235
+ # The string to be encoded may itself contain newlines,
236
+ # which will be encoded as ordinary \Base64:
237
+ #
238
+ # Base64.encode64("\n\n\n") # => "CgoK\n"
239
+ # s = "This is line 1\nThis is line 2\n"
240
+ # Base64.encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n"
241
+ #
242
+ # source://base64//lib/base64.rb#219
243
+ def encode64(bin); end
244
+
245
+ # Returns a string containing the decoding of an RFC-2045-compliant
246
+ # \Base64-encoded string +str+:
247
+ #
248
+ # s = "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK"
249
+ # Base64.strict_decode64(s) # => "This is line 1\nThis is line 2\n"
250
+ #
251
+ # Non-\Base64 characters in +str+ not allowed;
252
+ # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
253
+ # these include newline characters and characters <tt>-</tt> and <tt>/</tt>:
254
+ #
255
+ # Base64.strict_decode64("\n") # Raises ArgumentError
256
+ # Base64.strict_decode64('-') # Raises ArgumentError
257
+ # Base64.strict_decode64('_') # Raises ArgumentError
258
+ #
259
+ # Padding in +str+, if present, must be correct:
260
+ #
261
+ # Base64.strict_decode64("MDEyMzQ1Njc") # Raises ArgumentError
262
+ # Base64.strict_decode64("MDEyMzQ1Njc=") # => "01234567"
263
+ # Base64.strict_decode64("MDEyMzQ1Njc==") # Raises ArgumentError
264
+ #
265
+ # source://base64//lib/base64.rb#297
266
+ def strict_decode64(str); end
267
+
268
+ # Returns a string containing the RFC-2045-compliant \Base64-encoding of +bin+.
269
+ #
270
+ # Per RFC 2045, the returned string may contain the URL-unsafe characters
271
+ # <tt>+</tt> or <tt>/</tt>;
272
+ # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
273
+ #
274
+ # Base64.strict_encode64("\xFB\xEF\xBE") # => "++++\n"
275
+ # Base64.strict_encode64("\xFF\xFF\xFF") # => "////\n"
276
+ #
277
+ # The returned string may include padding;
278
+ # see {Padding}[Base64.html#module-Base64-label-Padding] above.
279
+ #
280
+ # Base64.strict_encode64('*') # => "Kg==\n"
281
+ #
282
+ # The returned string will have no newline characters, regardless of its length;
283
+ # see {Newlines}[Base64.html#module-Base64-label-Newlines] above:
284
+ #
285
+ # Base64.strict_encode64('*') # => "Kg=="
286
+ # Base64.strict_encode64('*' * 46)
287
+ # # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg=="
288
+ #
289
+ # The string to be encoded may itself contain newlines,
290
+ # which will be encoded as ordinary \Base64:
291
+ #
292
+ # Base64.strict_encode64("\n\n\n") # => "CgoK"
293
+ # s = "This is line 1\nThis is line 2\n"
294
+ # Base64.strict_encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK"
295
+ #
296
+ # source://base64//lib/base64.rb#273
297
+ def strict_encode64(bin); end
298
+
299
+ # Returns the decoding of an RFC-4648-compliant \Base64-encoded string +str+:
300
+ #
301
+ # +str+ may not contain non-Base64 characters;
302
+ # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
303
+ #
304
+ # Base64.urlsafe_decode64('+') # Raises ArgumentError.
305
+ # Base64.urlsafe_decode64('/') # Raises ArgumentError.
306
+ # Base64.urlsafe_decode64("\n") # Raises ArgumentError.
307
+ #
308
+ # Padding in +str+, if present, must be correct:
309
+ # see {Padding}[Base64.html#module-Base64-label-Padding], above:
310
+ #
311
+ # Base64.urlsafe_decode64("MDEyMzQ1Njc") # => "01234567"
312
+ # Base64.urlsafe_decode64("MDEyMzQ1Njc=") # => "01234567"
313
+ # Base64.urlsafe_decode64("MDEyMzQ1Njc==") # Raises ArgumentError.
314
+ #
315
+ # source://base64//lib/base64.rb#351
316
+ def urlsafe_decode64(str); end
317
+
318
+ # Returns the RFC-4648-compliant \Base64-encoding of +bin+.
319
+ #
320
+ # Per RFC 4648, the returned string will not contain the URL-unsafe characters
321
+ # <tt>+</tt> or <tt>/</tt>,
322
+ # but instead may contain the URL-safe characters
323
+ # <tt>-</tt> and <tt>_</tt>;
324
+ # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
325
+ #
326
+ # Base64.urlsafe_encode64("\xFB\xEF\xBE") # => "----"
327
+ # Base64.urlsafe_encode64("\xFF\xFF\xFF") # => "____"
328
+ #
329
+ # By default, the returned string may have padding;
330
+ # see {Padding}[Base64.html#module-Base64-label-Padding], above:
331
+ #
332
+ # Base64.urlsafe_encode64('*') # => "Kg=="
333
+ #
334
+ # Optionally, you can suppress padding:
335
+ #
336
+ # Base64.urlsafe_encode64('*', padding: false) # => "Kg"
337
+ #
338
+ # The returned string will have no newline characters, regardless of its length;
339
+ # see {Newlines}[Base64.html#module-Base64-label-Newlines] above:
340
+ #
341
+ # Base64.urlsafe_encode64('*') # => "Kg=="
342
+ # Base64.urlsafe_encode64('*' * 46)
343
+ # # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg=="
344
+ #
345
+ # source://base64//lib/base64.rb#328
346
+ def urlsafe_encode64(bin, padding: T.unsafe(nil)); end
347
+
348
+ class << self
349
+ # Returns a string containing the decoding of an RFC-2045-compliant
350
+ # \Base64-encoded string +str+:
351
+ #
352
+ # s = "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n"
353
+ # Base64.decode64(s) # => "This is line 1\nThis is line 2\n"
354
+ #
355
+ # Non-\Base64 characters in +str+ are ignored;
356
+ # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
357
+ # these include newline characters and characters <tt>-</tt> and <tt>/</tt>:
358
+ #
359
+ # Base64.decode64("\x00\n-_") # => ""
360
+ #
361
+ # Padding in +str+ (even if incorrect) is ignored:
362
+ #
363
+ # Base64.decode64("MDEyMzQ1Njc") # => "01234567"
364
+ # Base64.decode64("MDEyMzQ1Njc=") # => "01234567"
365
+ # Base64.decode64("MDEyMzQ1Njc==") # => "01234567"
366
+ #
367
+ # source://base64//lib/base64.rb#241
368
+ def decode64(str); end
369
+
370
+ # Returns a string containing the RFC-2045-compliant \Base64-encoding of +bin+.
371
+ #
372
+ # Per RFC 2045, the returned string may contain the URL-unsafe characters
373
+ # <tt>+</tt> or <tt>/</tt>;
374
+ # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
375
+ #
376
+ # Base64.encode64("\xFB\xEF\xBE") # => "++++\n"
377
+ # Base64.encode64("\xFF\xFF\xFF") # => "////\n"
378
+ #
379
+ # The returned string may include padding;
380
+ # see {Padding}[Base64.html#module-Base64-label-Padding] above.
381
+ #
382
+ # Base64.encode64('*') # => "Kg==\n"
383
+ #
384
+ # The returned string ends with a newline character, and if sufficiently long
385
+ # will have one or more embedded newline characters;
386
+ # see {Newlines}[Base64.html#module-Base64-label-Newlines] above:
387
+ #
388
+ # Base64.encode64('*') # => "Kg==\n"
389
+ # Base64.encode64('*' * 46)
390
+ # # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq\nKg==\n"
391
+ #
392
+ # The string to be encoded may itself contain newlines,
393
+ # which will be encoded as ordinary \Base64:
394
+ #
395
+ # Base64.encode64("\n\n\n") # => "CgoK\n"
396
+ # s = "This is line 1\nThis is line 2\n"
397
+ # Base64.encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n"
398
+ #
399
+ # source://base64//lib/base64.rb#219
400
+ def encode64(bin); end
401
+
402
+ # Returns a string containing the decoding of an RFC-2045-compliant
403
+ # \Base64-encoded string +str+:
404
+ #
405
+ # s = "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK"
406
+ # Base64.strict_decode64(s) # => "This is line 1\nThis is line 2\n"
407
+ #
408
+ # Non-\Base64 characters in +str+ not allowed;
409
+ # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
410
+ # these include newline characters and characters <tt>-</tt> and <tt>/</tt>:
411
+ #
412
+ # Base64.strict_decode64("\n") # Raises ArgumentError
413
+ # Base64.strict_decode64('-') # Raises ArgumentError
414
+ # Base64.strict_decode64('_') # Raises ArgumentError
415
+ #
416
+ # Padding in +str+, if present, must be correct:
417
+ #
418
+ # Base64.strict_decode64("MDEyMzQ1Njc") # Raises ArgumentError
419
+ # Base64.strict_decode64("MDEyMzQ1Njc=") # => "01234567"
420
+ # Base64.strict_decode64("MDEyMzQ1Njc==") # Raises ArgumentError
421
+ #
422
+ # source://base64//lib/base64.rb#297
423
+ def strict_decode64(str); end
424
+
425
+ # Returns a string containing the RFC-2045-compliant \Base64-encoding of +bin+.
426
+ #
427
+ # Per RFC 2045, the returned string may contain the URL-unsafe characters
428
+ # <tt>+</tt> or <tt>/</tt>;
429
+ # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
430
+ #
431
+ # Base64.strict_encode64("\xFB\xEF\xBE") # => "++++\n"
432
+ # Base64.strict_encode64("\xFF\xFF\xFF") # => "////\n"
433
+ #
434
+ # The returned string may include padding;
435
+ # see {Padding}[Base64.html#module-Base64-label-Padding] above.
436
+ #
437
+ # Base64.strict_encode64('*') # => "Kg==\n"
438
+ #
439
+ # The returned string will have no newline characters, regardless of its length;
440
+ # see {Newlines}[Base64.html#module-Base64-label-Newlines] above:
441
+ #
442
+ # Base64.strict_encode64('*') # => "Kg=="
443
+ # Base64.strict_encode64('*' * 46)
444
+ # # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg=="
445
+ #
446
+ # The string to be encoded may itself contain newlines,
447
+ # which will be encoded as ordinary \Base64:
448
+ #
449
+ # Base64.strict_encode64("\n\n\n") # => "CgoK"
450
+ # s = "This is line 1\nThis is line 2\n"
451
+ # Base64.strict_encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK"
452
+ #
453
+ # source://base64//lib/base64.rb#273
454
+ def strict_encode64(bin); end
455
+
456
+ # Returns the decoding of an RFC-4648-compliant \Base64-encoded string +str+:
457
+ #
458
+ # +str+ may not contain non-Base64 characters;
459
+ # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
460
+ #
461
+ # Base64.urlsafe_decode64('+') # Raises ArgumentError.
462
+ # Base64.urlsafe_decode64('/') # Raises ArgumentError.
463
+ # Base64.urlsafe_decode64("\n") # Raises ArgumentError.
464
+ #
465
+ # Padding in +str+, if present, must be correct:
466
+ # see {Padding}[Base64.html#module-Base64-label-Padding], above:
467
+ #
468
+ # Base64.urlsafe_decode64("MDEyMzQ1Njc") # => "01234567"
469
+ # Base64.urlsafe_decode64("MDEyMzQ1Njc=") # => "01234567"
470
+ # Base64.urlsafe_decode64("MDEyMzQ1Njc==") # Raises ArgumentError.
471
+ #
472
+ # source://base64//lib/base64.rb#351
473
+ def urlsafe_decode64(str); end
474
+
475
+ # Returns the RFC-4648-compliant \Base64-encoding of +bin+.
476
+ #
477
+ # Per RFC 4648, the returned string will not contain the URL-unsafe characters
478
+ # <tt>+</tt> or <tt>/</tt>,
479
+ # but instead may contain the URL-safe characters
480
+ # <tt>-</tt> and <tt>_</tt>;
481
+ # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
482
+ #
483
+ # Base64.urlsafe_encode64("\xFB\xEF\xBE") # => "----"
484
+ # Base64.urlsafe_encode64("\xFF\xFF\xFF") # => "____"
485
+ #
486
+ # By default, the returned string may have padding;
487
+ # see {Padding}[Base64.html#module-Base64-label-Padding], above:
488
+ #
489
+ # Base64.urlsafe_encode64('*') # => "Kg=="
490
+ #
491
+ # Optionally, you can suppress padding:
492
+ #
493
+ # Base64.urlsafe_encode64('*', padding: false) # => "Kg"
494
+ #
495
+ # The returned string will have no newline characters, regardless of its length;
496
+ # see {Newlines}[Base64.html#module-Base64-label-Newlines] above:
497
+ #
498
+ # Base64.urlsafe_encode64('*') # => "Kg=="
499
+ # Base64.urlsafe_encode64('*' * 46)
500
+ # # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg=="
501
+ #
502
+ # source://base64//lib/base64.rb#328
503
+ def urlsafe_encode64(bin, padding: T.unsafe(nil)); end
504
+ end
505
+ end
506
+
507
+ # source://base64//lib/base64.rb#186
508
+ Base64::VERSION = T.let(T.unsafe(nil), String)
@@ -0,0 +1,77 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `bigdecimal` gem.
5
+ # Please instead update this file by running `bin/tapioca gem bigdecimal`.
6
+
7
+ # source://bigdecimal//lib/bigdecimal/util.rb#78
8
+ class BigDecimal < ::Numeric
9
+ # call-seq:
10
+ # a.to_d -> bigdecimal
11
+ #
12
+ # Returns self.
13
+ #
14
+ # require 'bigdecimal/util'
15
+ #
16
+ # d = BigDecimal("3.14")
17
+ # d.to_d # => 0.314e1
18
+ #
19
+ # source://bigdecimal//lib/bigdecimal/util.rb#110
20
+ def to_d; end
21
+
22
+ # call-seq:
23
+ # a.to_digits -> string
24
+ #
25
+ # Converts a BigDecimal to a String of the form "nnnnnn.mmm".
26
+ # This method is deprecated; use BigDecimal#to_s("F") instead.
27
+ #
28
+ # require 'bigdecimal/util'
29
+ #
30
+ # d = BigDecimal("3.14")
31
+ # d.to_digits # => "3.14"
32
+ #
33
+ # source://bigdecimal//lib/bigdecimal/util.rb#90
34
+ def to_digits; end
35
+ end
36
+
37
+ BigDecimal::VERSION = T.let(T.unsafe(nil), String)
38
+
39
+ # source://bigdecimal//lib/bigdecimal/util.rb#138
40
+ class Complex < ::Numeric
41
+ # call-seq:
42
+ # cmp.to_d -> bigdecimal
43
+ # cmp.to_d(precision) -> bigdecimal
44
+ #
45
+ # Returns the value as a BigDecimal.
46
+ #
47
+ # The +precision+ parameter is required for a rational complex number.
48
+ # This parameter is used to determine the number of significant digits
49
+ # for the result.
50
+ #
51
+ # require 'bigdecimal'
52
+ # require 'bigdecimal/util'
53
+ #
54
+ # Complex(0.1234567, 0).to_d(4) # => 0.1235e0
55
+ # Complex(Rational(22, 7), 0).to_d(3) # => 0.314e1
56
+ #
57
+ # See also Kernel.BigDecimal.
58
+ #
59
+ # source://bigdecimal//lib/bigdecimal/util.rb#157
60
+ def to_d(*args); end
61
+ end
62
+
63
+ # source://bigdecimal//lib/bigdecimal/util.rb#171
64
+ class NilClass
65
+ # call-seq:
66
+ # nil.to_d -> bigdecimal
67
+ #
68
+ # Returns nil represented as a BigDecimal.
69
+ #
70
+ # require 'bigdecimal'
71
+ # require 'bigdecimal/util'
72
+ #
73
+ # nil.to_d # => 0.0
74
+ #
75
+ # source://bigdecimal//lib/bigdecimal/util.rb#182
76
+ def to_d; end
77
+ end
@@ -0,0 +1,8 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `builder` gem.
5
+ # Please instead update this file by running `bin/tapioca gem builder`.
6
+
7
+ # THIS IS AN EMPTY RBI FILE.
8
+ # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
@@ -0,0 +1,8 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `connection_pool` gem.
5
+ # Please instead update this file by running `bin/tapioca gem connection_pool`.
6
+
7
+ # THIS IS AN EMPTY RBI FILE.
8
+ # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem