mangrove 0.30.1 → 0.34.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +107 -43
- data/lib/mangrove/result.rb +78 -0
- data/lib/mangrove/version.rb +1 -1
- data/lib/tapioca/dsl/compilers/mangrove_enum.rb +7 -1
- data/sorbet/config +1 -0
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
- data/sorbet/rbi/gems/date@3.4.1.rbi +75 -0
- data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +2 -1
- data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +26 -17
- data/sorbet/rbi/gems/{json@2.7.2.rbi → json@2.9.1.rbi} +516 -134
- data/sorbet/rbi/gems/logger@1.6.5.rbi +940 -0
- data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.26.3.rbi} +31 -21
- data/sorbet/rbi/gems/{parser@3.3.2.0.rbi → parser@3.3.7.0.rbi} +23 -1736
- data/sorbet/rbi/gems/{prism@0.29.0.rbi → prism@1.3.0.rbi} +13817 -10401
- data/sorbet/rbi/gems/{psych@5.1.2.rbi → psych@5.2.3.rbi} +289 -236
- data/sorbet/rbi/gems/{racc@1.8.0.rbi → racc@1.8.1.rbi} +0 -4
- data/sorbet/rbi/gems/rbi@0.2.3.rbi +4542 -0
- data/sorbet/rbi/gems/rbs@3.8.1.rbi +6882 -0
- data/sorbet/rbi/gems/{rdoc@6.7.0.rbi → rdoc@6.11.0.rbi} +1115 -1058
- data/sorbet/rbi/gems/{regexp_parser@2.9.2.rbi → regexp_parser@2.10.0.rbi} +193 -170
- data/sorbet/rbi/gems/{rspec-core@3.13.0.rbi → rspec-core@3.13.2.rbi} +146 -280
- data/sorbet/rbi/gems/{rspec-expectations@3.13.0.rbi → rspec-expectations@3.13.3.rbi} +323 -294
- data/sorbet/rbi/gems/{rspec-mocks@3.13.1.rbi → rspec-mocks@3.13.2.rbi} +46 -46
- data/sorbet/rbi/gems/{rspec-support@3.13.1.rbi → rspec-support@3.13.2.rbi} +22 -22
- data/sorbet/rbi/gems/ruboclean@0.7.1.rbi +473 -0
- data/sorbet/rbi/gems/{rubocop-ast@1.31.3.rbi → rubocop-ast@1.37.0.rbi} +1293 -745
- data/sorbet/rbi/gems/{rubocop-rspec@2.30.0.rbi → rubocop-rspec@3.4.0.rbi} +341 -1073
- data/sorbet/rbi/gems/{rubocop@1.64.1.rbi → rubocop@1.70.0.rbi} +5693 -3796
- data/sorbet/rbi/gems/{simplecov-html@0.12.3.rbi → simplecov-html@0.13.1.rbi} +77 -68
- data/sorbet/rbi/gems/{spoom@1.3.2.rbi → spoom@1.5.1.rbi} +2306 -1701
- data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.2.rbi} +1 -0
- data/sorbet/rbi/gems/{tapioca@0.14.3.rbi → tapioca@0.16.8.rbi} +411 -332
- data/sorbet/rbi/gems/{thor@1.3.1.rbi → thor@1.3.2.rbi} +57 -31
- data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
- data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
- data/sorbet/rbi/gems/{webrick@1.8.1.rbi → webrick@1.9.1.rbi} +92 -72
- data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
- data/sorbet/rbi/gems/{yard@0.9.36.rbi → yard@0.9.37.rbi} +393 -235
- metadata +39 -42
- data/sorbet/rbi/gems/rbi@0.1.13.rbi +0 -3078
- data/sorbet/rbi/gems/rexml@3.2.8.rbi +0 -4794
- data/sorbet/rbi/gems/ruboclean@0.6.0.rbi +0 -315
- data/sorbet/rbi/gems/rubocop-capybara@2.20.0.rbi +0 -1208
- data/sorbet/rbi/gems/rubocop-factory_bot@2.25.1.rbi +0 -928
- data/sorbet/rbi/gems/rubocop-rspec_rails@2.28.3.rbi +0 -911
- data/sorbet/rbi/gems/strscan@3.1.0.rbi +0 -9
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
- /data/sorbet/rbi/gems/{io-console@0.7.2.rbi → io-console@0.8.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{reline@0.5.8.rbi → reline@0.6.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{ruby-lsp@0.17.2.rbi → ruby-lsp@0.23.6.rbi} +0 -0
@@ -4,6 +4,7 @@
|
|
4
4
|
# This is an autogenerated file for types exported from the `webrick` gem.
|
5
5
|
# Please instead update this file by running `bin/tapioca gem webrick`.
|
6
6
|
|
7
|
+
|
7
8
|
# AccessLog provides logging to various files in various formats.
|
8
9
|
#
|
9
10
|
# Multiple logs may be written to at the same time:
|
@@ -821,6 +822,9 @@ end
|
|
821
822
|
# source://webrick//lib/webrick/httpauth/authenticator.rb#114
|
822
823
|
WEBrick::HTTPAuth::ProxyAuthenticator::AuthException = WEBrick::HTTPStatus::ProxyAuthenticationRequired
|
823
824
|
|
825
|
+
# source://webrick//lib/webrick/httpauth/authenticator.rb#113
|
826
|
+
WEBrick::HTTPAuth::ProxyAuthenticator::ResponseInfoField = T.let(T.unsafe(nil), String)
|
827
|
+
|
824
828
|
# Basic authentication for proxy servers. See BasicAuth for details.
|
825
829
|
#
|
826
830
|
# source://webrick//lib/webrick/httpauth/basicauth.rb#112
|
@@ -1000,7 +1004,7 @@ class WEBrick::HTTPRequest
|
|
1000
1004
|
# This method provides the metavariables defined by the revision 3
|
1001
1005
|
# of "The WWW Common Gateway Interface Version 1.1"
|
1002
1006
|
# To browse the current document of CGI Version 1.1, see below:
|
1003
|
-
#
|
1007
|
+
# https://www.rfc-editor.org/rfc/rfc3875
|
1004
1008
|
#
|
1005
1009
|
# source://webrick//lib/webrick/httprequest.rb#407
|
1006
1010
|
def meta_vars; end
|
@@ -1130,34 +1134,34 @@ class WEBrick::HTTPRequest
|
|
1130
1134
|
|
1131
1135
|
private
|
1132
1136
|
|
1133
|
-
# source://webrick//lib/webrick/httprequest.rb#
|
1137
|
+
# source://webrick//lib/webrick/httprequest.rb#594
|
1134
1138
|
def _read_data(io, method, *arg); end
|
1135
1139
|
|
1136
|
-
# source://webrick//lib/webrick/httprequest.rb#
|
1140
|
+
# source://webrick//lib/webrick/httprequest.rb#527
|
1137
1141
|
def parse_host_request_line(host); end
|
1138
1142
|
|
1139
|
-
# source://webrick//lib/webrick/httprequest.rb#
|
1143
|
+
# source://webrick//lib/webrick/httprequest.rb#614
|
1140
1144
|
def parse_query; end
|
1141
1145
|
|
1142
|
-
# source://webrick//lib/webrick/httprequest.rb#
|
1146
|
+
# source://webrick//lib/webrick/httprequest.rb#503
|
1143
1147
|
def parse_uri(str, scheme = T.unsafe(nil)); end
|
1144
1148
|
|
1145
|
-
# source://webrick//lib/webrick/httprequest.rb#
|
1149
|
+
# source://webrick//lib/webrick/httprequest.rb#531
|
1146
1150
|
def read_body(socket, block); end
|
1147
1151
|
|
1148
|
-
# source://webrick//lib/webrick/httprequest.rb#
|
1152
|
+
# source://webrick//lib/webrick/httprequest.rb#559
|
1149
1153
|
def read_chunk_size(socket); end
|
1150
1154
|
|
1151
|
-
# source://webrick//lib/webrick/httprequest.rb#
|
1155
|
+
# source://webrick//lib/webrick/httprequest.rb#570
|
1152
1156
|
def read_chunked(socket, block); end
|
1153
1157
|
|
1154
|
-
# source://webrick//lib/webrick/httprequest.rb#
|
1158
|
+
# source://webrick//lib/webrick/httprequest.rb#610
|
1155
1159
|
def read_data(io, size); end
|
1156
1160
|
|
1157
1161
|
# source://webrick//lib/webrick/httprequest.rb#471
|
1158
1162
|
def read_header(socket); end
|
1159
1163
|
|
1160
|
-
# source://webrick//lib/webrick/httprequest.rb#
|
1164
|
+
# source://webrick//lib/webrick/httprequest.rb#606
|
1161
1165
|
def read_line(io, size = T.unsafe(nil)); end
|
1162
1166
|
|
1163
1167
|
# @raise [HTTPStatus::EOFError]
|
@@ -1171,10 +1175,13 @@ class WEBrick::HTTPRequest
|
|
1171
1175
|
# the initial(first) value. (apr_table_mergen() adds new value after the
|
1172
1176
|
# existing value with ", " prefix)
|
1173
1177
|
#
|
1174
|
-
# source://webrick//lib/webrick/httprequest.rb#
|
1178
|
+
# source://webrick//lib/webrick/httprequest.rb#642
|
1175
1179
|
def setup_forwarded_info; end
|
1176
1180
|
end
|
1177
1181
|
|
1182
|
+
# source://webrick//lib/webrick/httprequest.rb#526
|
1183
|
+
WEBrick::HTTPRequest::HOST_PATTERN = T.let(T.unsafe(nil), Regexp)
|
1184
|
+
|
1178
1185
|
# same as Mongrel, Thin and Puma
|
1179
1186
|
#
|
1180
1187
|
# source://webrick//lib/webrick/httprequest.rb#449
|
@@ -2137,54 +2144,54 @@ end
|
|
2137
2144
|
module WEBrick::HTTPUtils
|
2138
2145
|
private
|
2139
2146
|
|
2140
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2147
|
+
# source://webrick//lib/webrick/httputils.rb#474
|
2141
2148
|
def _escape(str, regex); end
|
2142
2149
|
|
2143
2150
|
# :stopdoc:
|
2144
2151
|
#
|
2145
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2152
|
+
# source://webrick//lib/webrick/httputils.rb#472
|
2146
2153
|
def _make_regex(str); end
|
2147
2154
|
|
2148
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2155
|
+
# source://webrick//lib/webrick/httputils.rb#473
|
2149
2156
|
def _make_regex!(str); end
|
2150
2157
|
|
2151
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2158
|
+
# source://webrick//lib/webrick/httputils.rb#480
|
2152
2159
|
def _unescape(str, regex); end
|
2153
2160
|
|
2154
2161
|
# Removes quotes and escapes from +str+
|
2155
2162
|
#
|
2156
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2163
|
+
# source://webrick//lib/webrick/httputils.rb#254
|
2157
2164
|
def dequote(str); end
|
2158
2165
|
|
2159
2166
|
# Escapes HTTP reserved and unwise characters in +str+
|
2160
2167
|
#
|
2161
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2168
|
+
# source://webrick//lib/webrick/httputils.rb#498
|
2162
2169
|
def escape(str); end
|
2163
2170
|
|
2164
2171
|
# Escapes 8 bit characters in +str+
|
2165
2172
|
#
|
2166
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2173
|
+
# source://webrick//lib/webrick/httputils.rb#539
|
2167
2174
|
def escape8bit(str); end
|
2168
2175
|
|
2169
2176
|
# Escapes form reserved characters in +str+
|
2170
2177
|
#
|
2171
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2178
|
+
# source://webrick//lib/webrick/httputils.rb#512
|
2172
2179
|
def escape_form(str); end
|
2173
2180
|
|
2174
2181
|
# Escapes path +str+
|
2175
2182
|
#
|
2176
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2183
|
+
# source://webrick//lib/webrick/httputils.rb#528
|
2177
2184
|
def escape_path(str); end
|
2178
2185
|
|
2179
2186
|
# Loads Apache-compatible mime.types in +file+.
|
2180
2187
|
#
|
2181
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2188
|
+
# source://webrick//lib/webrick/httputils.rb#122
|
2182
2189
|
def load_mime_types(file); end
|
2183
2190
|
|
2184
2191
|
# Returns the mime type of +filename+ from the list in +mime_tab+. If no
|
2185
2192
|
# mime type was found application/octet-stream is returned.
|
2186
2193
|
#
|
2187
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2194
|
+
# source://webrick//lib/webrick/httputils.rb#144
|
2188
2195
|
def mime_type(filename, mime_tab); end
|
2189
2196
|
|
2190
2197
|
# Normalizes a request path. Raises an exception if the path cannot be
|
@@ -2195,99 +2202,96 @@ module WEBrick::HTTPUtils
|
|
2195
2202
|
|
2196
2203
|
# Parses form data in +io+ with the given +boundary+
|
2197
2204
|
#
|
2198
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2205
|
+
# source://webrick//lib/webrick/httputils.rb#426
|
2199
2206
|
def parse_form_data(io, boundary); end
|
2200
2207
|
|
2201
|
-
#
|
2202
|
-
# of values.
|
2203
|
-
#
|
2204
|
-
# source://webrick//lib/webrick/httputils.rb#156
|
2208
|
+
# source://webrick//lib/webrick/httputils.rb#171
|
2205
2209
|
def parse_header(raw); end
|
2206
2210
|
|
2207
2211
|
# Parses the query component of a URI in +str+
|
2208
2212
|
#
|
2209
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2213
|
+
# source://webrick//lib/webrick/httputils.rb#402
|
2210
2214
|
def parse_query(str); end
|
2211
2215
|
|
2212
2216
|
# Parses q values in +value+ as used in Accept headers.
|
2213
2217
|
#
|
2214
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2218
|
+
# source://webrick//lib/webrick/httputils.rb#233
|
2215
2219
|
def parse_qvalues(value); end
|
2216
2220
|
|
2217
2221
|
# Parses a Range header value +ranges_specifier+
|
2218
2222
|
#
|
2219
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2223
|
+
# source://webrick//lib/webrick/httputils.rb#215
|
2220
2224
|
def parse_range_header(ranges_specifier); end
|
2221
2225
|
|
2222
2226
|
# Quotes and escapes quotes in +str+
|
2223
2227
|
#
|
2224
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2228
|
+
# source://webrick//lib/webrick/httputils.rb#264
|
2225
2229
|
def quote(str); end
|
2226
2230
|
|
2227
2231
|
# Splits a header value +str+ according to HTTP specification.
|
2228
2232
|
#
|
2229
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2233
|
+
# source://webrick//lib/webrick/httputils.rb#206
|
2230
2234
|
def split_header_value(str); end
|
2231
2235
|
|
2232
2236
|
# Unescapes HTTP reserved and unwise characters in +str+
|
2233
2237
|
#
|
2234
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2238
|
+
# source://webrick//lib/webrick/httputils.rb#505
|
2235
2239
|
def unescape(str); end
|
2236
2240
|
|
2237
2241
|
# Unescapes form reserved characters in +str+
|
2238
2242
|
#
|
2239
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2243
|
+
# source://webrick//lib/webrick/httputils.rb#521
|
2240
2244
|
def unescape_form(str); end
|
2241
2245
|
|
2242
2246
|
class << self
|
2243
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2247
|
+
# source://webrick//lib/webrick/httputils.rb#474
|
2244
2248
|
def _escape(str, regex); end
|
2245
2249
|
|
2246
2250
|
# :stopdoc:
|
2247
2251
|
#
|
2248
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2252
|
+
# source://webrick//lib/webrick/httputils.rb#472
|
2249
2253
|
def _make_regex(str); end
|
2250
2254
|
|
2251
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2255
|
+
# source://webrick//lib/webrick/httputils.rb#473
|
2252
2256
|
def _make_regex!(str); end
|
2253
2257
|
|
2254
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2258
|
+
# source://webrick//lib/webrick/httputils.rb#480
|
2255
2259
|
def _unescape(str, regex); end
|
2256
2260
|
|
2257
2261
|
# Removes quotes and escapes from +str+
|
2258
2262
|
#
|
2259
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2263
|
+
# source://webrick//lib/webrick/httputils.rb#254
|
2260
2264
|
def dequote(str); end
|
2261
2265
|
|
2262
2266
|
# Escapes HTTP reserved and unwise characters in +str+
|
2263
2267
|
#
|
2264
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2268
|
+
# source://webrick//lib/webrick/httputils.rb#498
|
2265
2269
|
def escape(str); end
|
2266
2270
|
|
2267
2271
|
# Escapes 8 bit characters in +str+
|
2268
2272
|
#
|
2269
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2273
|
+
# source://webrick//lib/webrick/httputils.rb#539
|
2270
2274
|
def escape8bit(str); end
|
2271
2275
|
|
2272
2276
|
# Escapes form reserved characters in +str+
|
2273
2277
|
#
|
2274
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2278
|
+
# source://webrick//lib/webrick/httputils.rb#512
|
2275
2279
|
def escape_form(str); end
|
2276
2280
|
|
2277
2281
|
# Escapes path +str+
|
2278
2282
|
#
|
2279
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2283
|
+
# source://webrick//lib/webrick/httputils.rb#528
|
2280
2284
|
def escape_path(str); end
|
2281
2285
|
|
2282
2286
|
# Loads Apache-compatible mime.types in +file+.
|
2283
2287
|
#
|
2284
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2288
|
+
# source://webrick//lib/webrick/httputils.rb#122
|
2285
2289
|
def load_mime_types(file); end
|
2286
2290
|
|
2287
2291
|
# Returns the mime type of +filename+ from the list in +mime_tab+. If no
|
2288
2292
|
# mime type was found application/octet-stream is returned.
|
2289
2293
|
#
|
2290
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2294
|
+
# source://webrick//lib/webrick/httputils.rb#144
|
2291
2295
|
def mime_type(filename, mime_tab); end
|
2292
2296
|
|
2293
2297
|
# Normalizes a request path. Raises an exception if the path cannot be
|
@@ -2298,56 +2302,59 @@ module WEBrick::HTTPUtils
|
|
2298
2302
|
|
2299
2303
|
# Parses form data in +io+ with the given +boundary+
|
2300
2304
|
#
|
2301
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2305
|
+
# source://webrick//lib/webrick/httputils.rb#426
|
2302
2306
|
def parse_form_data(io, boundary); end
|
2303
2307
|
|
2304
|
-
#
|
2305
|
-
# of values.
|
2306
|
-
#
|
2307
|
-
# source://webrick//lib/webrick/httputils.rb#156
|
2308
|
+
# source://webrick//lib/webrick/httputils.rb#171
|
2308
2309
|
def parse_header(raw); end
|
2309
2310
|
|
2310
2311
|
# Parses the query component of a URI in +str+
|
2311
2312
|
#
|
2312
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2313
|
+
# source://webrick//lib/webrick/httputils.rb#402
|
2313
2314
|
def parse_query(str); end
|
2314
2315
|
|
2315
2316
|
# Parses q values in +value+ as used in Accept headers.
|
2316
2317
|
#
|
2317
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2318
|
+
# source://webrick//lib/webrick/httputils.rb#233
|
2318
2319
|
def parse_qvalues(value); end
|
2319
2320
|
|
2320
2321
|
# Parses a Range header value +ranges_specifier+
|
2321
2322
|
#
|
2322
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2323
|
+
# source://webrick//lib/webrick/httputils.rb#215
|
2323
2324
|
def parse_range_header(ranges_specifier); end
|
2324
2325
|
|
2325
2326
|
# Quotes and escapes quotes in +str+
|
2326
2327
|
#
|
2327
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2328
|
+
# source://webrick//lib/webrick/httputils.rb#264
|
2328
2329
|
def quote(str); end
|
2329
2330
|
|
2330
2331
|
# Splits a header value +str+ according to HTTP specification.
|
2331
2332
|
#
|
2332
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2333
|
+
# source://webrick//lib/webrick/httputils.rb#206
|
2333
2334
|
def split_header_value(str); end
|
2334
2335
|
|
2335
2336
|
# Unescapes HTTP reserved and unwise characters in +str+
|
2336
2337
|
#
|
2337
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2338
|
+
# source://webrick//lib/webrick/httputils.rb#505
|
2338
2339
|
def unescape(str); end
|
2339
2340
|
|
2340
2341
|
# Unescapes form reserved characters in +str+
|
2341
2342
|
#
|
2342
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2343
|
+
# source://webrick//lib/webrick/httputils.rb#521
|
2343
2344
|
def unescape_form(str); end
|
2344
2345
|
end
|
2345
2346
|
end
|
2346
2347
|
|
2348
|
+
# source://webrick//lib/webrick/httputils.rb#161
|
2349
|
+
class WEBrick::HTTPUtils::CookieHeader < ::Array
|
2350
|
+
# source://webrick//lib/webrick/httputils.rb#162
|
2351
|
+
def join(separator = T.unsafe(nil)); end
|
2352
|
+
end
|
2353
|
+
|
2347
2354
|
# Stores multipart form data. FormData objects are created when
|
2348
2355
|
# WEBrick::HTTPUtils.parse_form_data is called.
|
2349
2356
|
#
|
2350
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2357
|
+
# source://webrick//lib/webrick/httputils.rb#273
|
2351
2358
|
class WEBrick::HTTPUtils::FormData < ::String
|
2352
2359
|
# Creates a new FormData object.
|
2353
2360
|
#
|
@@ -2358,7 +2365,7 @@ class WEBrick::HTTPUtils::FormData < ::String
|
|
2358
2365
|
#
|
2359
2366
|
# @return [FormData] a new instance of FormData
|
2360
2367
|
#
|
2361
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2368
|
+
# source://webrick//lib/webrick/httputils.rb#298
|
2362
2369
|
def initialize(*args); end
|
2363
2370
|
|
2364
2371
|
# Adds +str+ to this FormData which may be the body, a header or a
|
@@ -2366,72 +2373,84 @@ class WEBrick::HTTPUtils::FormData < ::String
|
|
2366
2373
|
#
|
2367
2374
|
# This is called by WEBrick::HTTPUtils.parse_form_data for you
|
2368
2375
|
#
|
2369
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2376
|
+
# source://webrick//lib/webrick/httputils.rb#331
|
2370
2377
|
def <<(str); end
|
2371
2378
|
|
2372
2379
|
# Retrieves the header at the first entry in +key+
|
2373
2380
|
#
|
2374
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2381
|
+
# source://webrick//lib/webrick/httputils.rb#317
|
2375
2382
|
def [](*key); end
|
2376
2383
|
|
2377
2384
|
# Adds +data+ at the end of the chain of entries
|
2378
2385
|
#
|
2379
2386
|
# This is called by WEBrick::HTTPUtils.parse_form_data for you.
|
2380
2387
|
#
|
2381
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2388
|
+
# source://webrick//lib/webrick/httputils.rb#351
|
2382
2389
|
def append_data(data); end
|
2383
2390
|
|
2384
2391
|
# Yields each entry in this FormData
|
2385
2392
|
#
|
2386
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2393
|
+
# source://webrick//lib/webrick/httputils.rb#366
|
2387
2394
|
def each_data; end
|
2388
2395
|
|
2389
2396
|
# The filename of the form data part
|
2390
2397
|
#
|
2391
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2398
|
+
# source://webrick//lib/webrick/httputils.rb#285
|
2392
2399
|
def filename; end
|
2393
2400
|
|
2394
2401
|
# The filename of the form data part
|
2395
2402
|
#
|
2396
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2403
|
+
# source://webrick//lib/webrick/httputils.rb#285
|
2397
2404
|
def filename=(_arg0); end
|
2398
2405
|
|
2399
2406
|
# Returns all the FormData as an Array
|
2400
2407
|
#
|
2401
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2408
|
+
# source://webrick//lib/webrick/httputils.rb#378
|
2402
2409
|
def list; end
|
2403
2410
|
|
2404
2411
|
# The name of the form data part
|
2405
2412
|
#
|
2406
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2413
|
+
# source://webrick//lib/webrick/httputils.rb#280
|
2407
2414
|
def name; end
|
2408
2415
|
|
2409
2416
|
# The name of the form data part
|
2410
2417
|
#
|
2411
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2418
|
+
# source://webrick//lib/webrick/httputils.rb#280
|
2412
2419
|
def name=(_arg0); end
|
2413
2420
|
|
2414
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2421
|
+
# source://webrick//lib/webrick/httputils.rb#287
|
2415
2422
|
def next_data=(_arg0); end
|
2416
2423
|
|
2417
2424
|
# Returns all the FormData as an Array
|
2418
2425
|
#
|
2419
2426
|
# A FormData will behave like an Array
|
2420
2427
|
#
|
2421
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2428
|
+
# source://webrick//lib/webrick/httputils.rb#378
|
2422
2429
|
def to_ary; end
|
2423
2430
|
|
2424
2431
|
# This FormData's body
|
2425
2432
|
#
|
2426
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2433
|
+
# source://webrick//lib/webrick/httputils.rb#394
|
2427
2434
|
def to_s; end
|
2428
2435
|
|
2429
2436
|
protected
|
2430
2437
|
|
2431
|
-
# source://webrick//lib/webrick/httputils.rb#
|
2438
|
+
# source://webrick//lib/webrick/httputils.rb#287
|
2432
2439
|
def next_data; end
|
2433
2440
|
end
|
2434
2441
|
|
2442
|
+
# source://webrick//lib/webrick/httputils.rb#167
|
2443
|
+
WEBrick::HTTPUtils::HEADER_CLASSES = T.let(T.unsafe(nil), Hash)
|
2444
|
+
|
2445
|
+
# Parses an HTTP header +raw+ into a hash of header fields with an Array
|
2446
|
+
# of values.
|
2447
|
+
#
|
2448
|
+
# source://webrick//lib/webrick/httputils.rb#155
|
2449
|
+
class WEBrick::HTTPUtils::SplitHeader < ::Array
|
2450
|
+
# source://webrick//lib/webrick/httputils.rb#156
|
2451
|
+
def join(separator = T.unsafe(nil)); end
|
2452
|
+
end
|
2453
|
+
|
2435
2454
|
# source://webrick//lib/webrick/utils.rb#17
|
2436
2455
|
module WEBrick::Utils
|
2437
2456
|
private
|
@@ -2546,6 +2565,7 @@ end
|
|
2546
2565
|
#
|
2547
2566
|
# source://webrick//lib/webrick/utils.rb#118
|
2548
2567
|
class WEBrick::Utils::TimeoutHandler
|
2568
|
+
include ::Singleton::SingletonInstanceMethods
|
2549
2569
|
include ::Singleton
|
2550
2570
|
extend ::Singleton::SingletonClassMethods
|
2551
2571
|
|
@@ -4,6 +4,7 @@
|
|
4
4
|
# This is an autogenerated file for types exported from the `yard-sorbet` gem.
|
5
5
|
# Please instead update this file by running `bin/tapioca gem yard-sorbet`.
|
6
6
|
|
7
|
+
|
7
8
|
class YARD::Handlers::Ruby::ClassHandler < ::YARD::Handlers::Ruby::Base
|
8
9
|
include ::YARDSorbet::Handlers::StructClassHandler
|
9
10
|
end
|
@@ -35,7 +36,7 @@ end
|
|
35
36
|
# source://yard-sorbet//lib/yard-sorbet/handlers.rb#7
|
36
37
|
module YARDSorbet::Handlers; end
|
37
38
|
|
38
|
-
#
|
39
|
+
# Applies an `@abstract` tag to `abstract!`/`interface!` modules (if not alerady present).
|
39
40
|
#
|
40
41
|
# source://yard-sorbet//lib/yard-sorbet/handlers/abstract_dsl_handler.rb#7
|
41
42
|
class YARDSorbet::Handlers::AbstractDSLHandler < ::YARD::Handlers::Ruby::Base
|
@@ -94,7 +95,7 @@ end
|
|
94
95
|
#
|
95
96
|
# source://yard-sorbet//lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb#9
|
96
97
|
class YARDSorbet::Handlers::MixesInClassMethodsHandler < ::YARD::Handlers::Ruby::Base
|
97
|
-
# source://yard-sorbet//lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb#
|
98
|
+
# source://yard-sorbet//lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb#21
|
98
99
|
sig { void }
|
99
100
|
def process; end
|
100
101
|
|
@@ -120,7 +121,7 @@ class YARDSorbet::Handlers::SigHandler < ::YARD::Handlers::Ruby::Base
|
|
120
121
|
|
121
122
|
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#73
|
122
123
|
sig { params(method_objects: T::Array[::YARD::CodeObjects::MethodObject]).void }
|
123
|
-
def
|
124
|
+
def document_attrs(method_objects); end
|
124
125
|
|
125
126
|
# An attr* sig can be merged into a previous attr* docstring if it is the only parameter passed to the attr*
|
126
127
|
# declaration. This is to avoid needing to rewrite the source code to separate merged and unmerged attr*
|
@@ -130,7 +131,7 @@ class YARDSorbet::Handlers::SigHandler < ::YARD::Handlers::Ruby::Base
|
|
130
131
|
sig { params(attr_node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Boolean) }
|
131
132
|
def merged_into_attr?(attr_node); end
|
132
133
|
|
133
|
-
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#
|
134
|
+
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#76
|
134
135
|
sig do
|
135
136
|
params(
|
136
137
|
attach_to: T.any(::YARD::CodeObjects::MethodObject, ::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode),
|
@@ -140,15 +141,15 @@ class YARDSorbet::Handlers::SigHandler < ::YARD::Handlers::Ruby::Base
|
|
140
141
|
end
|
141
142
|
def parse_node(attach_to, docstring, include_params: T.unsafe(nil)); end
|
142
143
|
|
143
|
-
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#
|
144
|
+
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#97
|
144
145
|
sig { params(node: ::YARD::Parser::Ruby::AstNode, docstring: ::YARD::Docstring).void }
|
145
146
|
def parse_params(node, docstring); end
|
146
147
|
|
147
|
-
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#
|
148
|
+
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#107
|
148
149
|
sig { params(node: ::YARD::Parser::Ruby::AstNode, docstring: ::YARD::Docstring).void }
|
149
150
|
def parse_return(node, docstring); end
|
150
151
|
|
151
|
-
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#
|
152
|
+
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#85
|
152
153
|
sig { params(docstring: ::YARD::Docstring, include_params: T::Boolean).void }
|
153
154
|
def parse_sig(docstring, include_params: T.unsafe(nil)); end
|
154
155
|
|
@@ -222,27 +223,27 @@ class YARDSorbet::Handlers::StructPropHandler < ::YARD::Handlers::Ruby::Base
|
|
222
223
|
sig { returns(T::Boolean) }
|
223
224
|
def immutable?; end
|
224
225
|
|
225
|
-
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#
|
226
|
+
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#42
|
226
227
|
sig { params(kwd: ::String).returns(T.nilable(::String)) }
|
227
228
|
def kw_arg(kwd); end
|
228
229
|
|
229
|
-
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#
|
230
|
+
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#45
|
230
231
|
sig { params(name: ::String).returns(::YARDSorbet::TStructProp) }
|
231
232
|
def make_prop(name); end
|
232
233
|
|
233
|
-
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#
|
234
|
+
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#56
|
234
235
|
sig { returns(T::Array[::YARD::Parser::Ruby::AstNode]) }
|
235
236
|
def params; end
|
236
237
|
|
237
238
|
# Register the field explicitly as an attribute.
|
238
239
|
#
|
239
|
-
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#
|
240
|
+
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#60
|
240
241
|
sig { params(object: ::YARD::CodeObjects::MethodObject, name: ::String).void }
|
241
242
|
def register_attrs(object, name); end
|
242
243
|
|
243
244
|
# Store the prop for use in the constructor definition
|
244
245
|
#
|
245
|
-
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#
|
246
|
+
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#68
|
246
247
|
sig { params(prop: ::YARDSorbet::TStructProp).void }
|
247
248
|
def update_state(prop); end
|
248
249
|
end
|
@@ -266,13 +267,19 @@ module YARDSorbet::NodeUtils
|
|
266
267
|
end
|
267
268
|
def bfs_traverse(node, &_blk); end
|
268
269
|
|
269
|
-
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#
|
270
|
+
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#31
|
270
271
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).void }
|
271
272
|
def delete_node(node); end
|
272
273
|
|
274
|
+
# Enqueue the eligible children of a node in the BFS queue
|
275
|
+
#
|
276
|
+
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#35
|
277
|
+
sig { params(queue: ::Thread::Queue, node: ::YARD::Parser::Ruby::AstNode).void }
|
278
|
+
def enqueue_children(queue, node); end
|
279
|
+
|
273
280
|
# Gets the node that a sorbet `sig` can be attached do, bypassing visisbility modifiers and the like
|
274
281
|
#
|
275
|
-
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#
|
282
|
+
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#48
|
276
283
|
sig do
|
277
284
|
params(
|
278
285
|
node: ::YARD::Parser::Ruby::AstNode
|
@@ -284,17 +291,17 @@ module YARDSorbet::NodeUtils
|
|
284
291
|
#
|
285
292
|
# @raise [IndexError] if the node does not have an adjacent sibling (ascending)
|
286
293
|
#
|
287
|
-
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#
|
294
|
+
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#53
|
288
295
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(::YARD::Parser::Ruby::AstNode) }
|
289
296
|
def sibling_node(node); end
|
290
297
|
|
291
|
-
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#
|
298
|
+
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#60
|
292
299
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Boolean) }
|
293
300
|
def sigable_node?(node); end
|
294
301
|
|
295
302
|
# @see https://github.com/lsegal/yard/blob/main/lib/yard/handlers/ruby/attribute_handler.rb YARD::Handlers::Ruby::AttributeHandler.validated_attribute_names
|
296
303
|
#
|
297
|
-
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#
|
304
|
+
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#71
|
298
305
|
sig { params(attr_node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Array[::String]) }
|
299
306
|
def validated_attribute_names(attr_node); end
|
300
307
|
end
|
@@ -328,43 +335,43 @@ module YARDSorbet::SigToYARD
|
|
328
335
|
|
329
336
|
private
|
330
337
|
|
331
|
-
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#
|
338
|
+
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#58
|
332
339
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(::String) }
|
333
340
|
def build_generic_type(node); end
|
334
341
|
|
335
|
-
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#
|
342
|
+
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#67
|
336
343
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
337
344
|
def convert_aref(node); end
|
338
345
|
|
339
|
-
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#
|
346
|
+
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#79
|
340
347
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
|
341
348
|
def convert_array(node); end
|
342
349
|
|
343
|
-
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#
|
350
|
+
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#87
|
344
351
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
|
345
352
|
def convert_collection(node); end
|
346
353
|
|
347
|
-
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#
|
354
|
+
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#94
|
348
355
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
|
349
356
|
def convert_hash(node); end
|
350
357
|
|
351
|
-
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#
|
358
|
+
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#102
|
352
359
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
353
360
|
def convert_list(node); end
|
354
361
|
|
355
|
-
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#
|
362
|
+
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#28
|
356
363
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
357
364
|
def convert_node(node); end
|
358
365
|
|
359
|
-
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#
|
366
|
+
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#40
|
360
367
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
361
368
|
def convert_node_type(node); end
|
362
369
|
|
363
|
-
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#
|
370
|
+
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#107
|
364
371
|
sig { params(node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Array[::String]) }
|
365
372
|
def convert_t_method(node); end
|
366
373
|
|
367
|
-
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#
|
374
|
+
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#118
|
368
375
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
|
369
376
|
def convert_unknown(node); end
|
370
377
|
end
|
@@ -381,7 +388,7 @@ class YARDSorbet::TStructProp < ::T::Struct
|
|
381
388
|
const :types, T::Array[::String]
|
382
389
|
|
383
390
|
class << self
|
384
|
-
# source://sorbet-runtime/0.5.
|
391
|
+
# source://sorbet-runtime/0.5.11766/lib/types/struct.rb#13
|
385
392
|
def inherited(s); end
|
386
393
|
end
|
387
394
|
end
|
@@ -403,7 +410,7 @@ module YARDSorbet::TagUtils
|
|
403
410
|
|
404
411
|
# Create or update a `YARD` tag with type information
|
405
412
|
#
|
406
|
-
# source://yard-sorbet//lib/yard-sorbet/tag_utils.rb#
|
413
|
+
# source://yard-sorbet//lib/yard-sorbet/tag_utils.rb#28
|
407
414
|
sig do
|
408
415
|
params(
|
409
416
|
docstring: ::YARD::Docstring,
|