researchable-freedcamp-api 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.bundle/config +2 -0
- data/.gitignore +1 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +69 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +12 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/lib/researchable/freedcamp_api/create_task.rb +22 -0
- data/lib/researchable/freedcamp_api/endpoint.rb +34 -0
- data/lib/researchable/freedcamp_api/list_milestones.rb +1 -0
- data/lib/researchable/freedcamp_api/list_projects.rb +1 -0
- data/lib/researchable/freedcamp_api/list_tasks.rb +36 -0
- data/lib/researchable/freedcamp_api/sessions/session.rb +28 -0
- data/lib/researchable/freedcamp_api/sessions/signed_session.rb +128 -0
- data/lib/researchable/freedcamp_api/sessions.rb +17 -0
- data/lib/researchable/freedcamp_api/structs/signature.rb +11 -0
- data/lib/researchable/freedcamp_api/structs/task.rb +48 -0
- data/lib/researchable/freedcamp_api/structs.rb +8 -0
- data/lib/researchable/freedcamp_api/update_task.rb +27 -0
- data/lib/researchable/freedcamp_api/version.rb +8 -0
- data/lib/researchable/freedcamp_api.rb +21 -0
- data/lib/researchable-freedcamp-api.rb +6 -0
- data/output/62d1c67bf1eebc3456f9cc8879519700b2a0fc45 +1 -0
- data/researchable_freedcamp_api.gemspec +44 -0
- data/sorbet/config +3 -0
- data/sorbet/rbi/gems/active_interaction.rbi +304 -0
- data/sorbet/rbi/gems/activemodel.rbi +342 -0
- data/sorbet/rbi/gems/activesupport.rbi +1023 -0
- data/sorbet/rbi/gems/concurrent-ruby.rbi +1662 -0
- data/sorbet/rbi/gems/httparty.rbi +446 -0
- data/sorbet/rbi/gems/i18n.rbi +133 -0
- data/sorbet/rbi/gems/mime-types-data.rbi +17 -0
- data/sorbet/rbi/gems/mime-types.rbi +225 -0
- data/sorbet/rbi/gems/multi_xml.rbi +35 -0
- data/sorbet/rbi/gems/researchable-freedcamp-api.rbi +25 -0
- data/sorbet/rbi/gems/rspec-core.rbi +1915 -0
- data/sorbet/rbi/gems/rspec-expectations.rbi +1151 -0
- data/sorbet/rbi/gems/rspec-mocks.rbi +1110 -0
- data/sorbet/rbi/gems/rspec-support.rbi +280 -0
- data/sorbet/rbi/gems/rspec.rbi +15 -0
- data/sorbet/rbi/gems/tzinfo.rbi +586 -0
- data/sorbet/rbi/hidden-definitions/errors.txt +4251 -0
- data/sorbet/rbi/hidden-definitions/hidden.rbi +8306 -0
- data/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi +715 -0
- data/sorbet/rbi/sorbet-typed/lib/activesupport/>=6/activesupport.rbi +37 -0
- data/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +1850 -0
- data/sorbet/rbi/sorbet-typed/lib/httparty/all/httparty.rbi +566 -0
- data/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +108 -0
- data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +24 -0
- data/sorbet/rbi/todo.rbi +7 -0
- data/test.rb +41 -0
- metadata +198 -0
@@ -0,0 +1,446 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: strict
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/httparty/all/httparty.rbi
|
9
|
+
#
|
10
|
+
# httparty-0.20.0
|
11
|
+
|
12
|
+
module HTTParty
|
13
|
+
def self.copy(*args, &block); end
|
14
|
+
def self.delete(*args, &block); end
|
15
|
+
def self.get(*args, &block); end
|
16
|
+
def self.head(*args, &block); end
|
17
|
+
def self.included(base); end
|
18
|
+
def self.move(*args, &block); end
|
19
|
+
def self.normalize_base_uri(url); end
|
20
|
+
def self.options(*args, &block); end
|
21
|
+
def self.patch(*args, &block); end
|
22
|
+
def self.post(*args, &block); end
|
23
|
+
def self.put(*args, &block); end
|
24
|
+
end
|
25
|
+
module HTTParty::ModuleInheritableAttributes
|
26
|
+
def self.hash_deep_dup(hash); end
|
27
|
+
def self.included(base); end
|
28
|
+
end
|
29
|
+
module HTTParty::ModuleInheritableAttributes::ClassMethods
|
30
|
+
def inherited(subclass); end
|
31
|
+
def mattr_inheritable(*args); end
|
32
|
+
end
|
33
|
+
class HTTParty::CookieHash < Hash
|
34
|
+
def add_cookies(data); end
|
35
|
+
def to_cookie_string; end
|
36
|
+
end
|
37
|
+
module Net
|
38
|
+
end
|
39
|
+
module Net::HTTPHeader
|
40
|
+
def digest_auth(username, password, response); end
|
41
|
+
end
|
42
|
+
class Net::HTTPHeader::DigestAuthenticator
|
43
|
+
def a1; end
|
44
|
+
def a2; end
|
45
|
+
def algorithm_present?; end
|
46
|
+
def authorization_header; end
|
47
|
+
def cookie_header; end
|
48
|
+
def initialize(username, password, method, path, response_header); end
|
49
|
+
def md5(str); end
|
50
|
+
def opaque_present?; end
|
51
|
+
def parse(response_header); end
|
52
|
+
def parse_cookies(response_header); end
|
53
|
+
def qop_present?; end
|
54
|
+
def random; end
|
55
|
+
def request_digest; end
|
56
|
+
def use_md5_sess?; end
|
57
|
+
end
|
58
|
+
class HTTParty::ConnectionAdapter
|
59
|
+
def add_max_retries?(max_retries); end
|
60
|
+
def add_timeout?(timeout); end
|
61
|
+
def attach_ssl_certificates(http, options); end
|
62
|
+
def clean_host(host); end
|
63
|
+
def connection; end
|
64
|
+
def from_ruby_version(ruby_version, option: nil, warn: nil); end
|
65
|
+
def initialize(uri, options = nil); end
|
66
|
+
def options; end
|
67
|
+
def self.call(uri, options); end
|
68
|
+
def self.default_cert_store; end
|
69
|
+
def ssl_implied?(uri); end
|
70
|
+
def strip_ipv6_brackets(host); end
|
71
|
+
def uri; end
|
72
|
+
def verify_ssl_certificate?; end
|
73
|
+
end
|
74
|
+
module HTTParty::Logger
|
75
|
+
def self.add_formatter(name, formatter); end
|
76
|
+
def self.build(logger, level, formatter); end
|
77
|
+
def self.formatters; end
|
78
|
+
end
|
79
|
+
class HTTParty::Logger::ApacheFormatter
|
80
|
+
def content_length; end
|
81
|
+
def current_time; end
|
82
|
+
def format(request, response); end
|
83
|
+
def http_method; end
|
84
|
+
def initialize(logger, level); end
|
85
|
+
def level; end
|
86
|
+
def level=(arg0); end
|
87
|
+
def logger; end
|
88
|
+
def logger=(arg0); end
|
89
|
+
def message; end
|
90
|
+
def path; end
|
91
|
+
def request; end
|
92
|
+
def response; end
|
93
|
+
end
|
94
|
+
class HTTParty::Logger::CurlFormatter
|
95
|
+
def current_time; end
|
96
|
+
def format(request, response); end
|
97
|
+
def initialize(logger, level); end
|
98
|
+
def level; end
|
99
|
+
def level=(arg0); end
|
100
|
+
def log(direction, line = nil); end
|
101
|
+
def log_hash(hash); end
|
102
|
+
def log_headers; end
|
103
|
+
def log_query; end
|
104
|
+
def log_request; end
|
105
|
+
def log_response; end
|
106
|
+
def log_response_headers; end
|
107
|
+
def log_url; end
|
108
|
+
def logger; end
|
109
|
+
def logger=(arg0); end
|
110
|
+
def messages; end
|
111
|
+
def messages=(arg0); end
|
112
|
+
def request; end
|
113
|
+
def response; end
|
114
|
+
end
|
115
|
+
class HTTParty::Logger::LogstashFormatter
|
116
|
+
def content_length; end
|
117
|
+
def current_time; end
|
118
|
+
def format(request, response); end
|
119
|
+
def http_method; end
|
120
|
+
def initialize(logger, level); end
|
121
|
+
def level; end
|
122
|
+
def level=(arg0); end
|
123
|
+
def logger; end
|
124
|
+
def logger=(arg0); end
|
125
|
+
def logstash_message; end
|
126
|
+
def message; end
|
127
|
+
def path; end
|
128
|
+
def request; end
|
129
|
+
def response; end
|
130
|
+
end
|
131
|
+
class HTTParty::Request
|
132
|
+
def _dump(_level); end
|
133
|
+
def assume_utf16_is_big_endian; end
|
134
|
+
def base_uri; end
|
135
|
+
def capture_cookies(response); end
|
136
|
+
def check_duplicate_location_header; end
|
137
|
+
def connection_adapter; end
|
138
|
+
def credentials; end
|
139
|
+
def decompress(body, encoding); end
|
140
|
+
def decompress_content?; end
|
141
|
+
def digest_auth?; end
|
142
|
+
def encode_text(text, content_type); end
|
143
|
+
def format; end
|
144
|
+
def format_from_mimetype(mimetype); end
|
145
|
+
def handle_host_redirection; end
|
146
|
+
def handle_response(raw_body, &block); end
|
147
|
+
def handle_unauthorized(&block); end
|
148
|
+
def http; end
|
149
|
+
def http_method; end
|
150
|
+
def http_method=(arg0); end
|
151
|
+
def initialize(http_method, path, o = nil); end
|
152
|
+
def last_response; end
|
153
|
+
def last_response=(arg0); end
|
154
|
+
def last_uri; end
|
155
|
+
def last_uri=(arg0); end
|
156
|
+
def normalize_query(query); end
|
157
|
+
def options; end
|
158
|
+
def options=(arg0); end
|
159
|
+
def parse_response(body); end
|
160
|
+
def parser; end
|
161
|
+
def password; end
|
162
|
+
def path; end
|
163
|
+
def path=(uri); end
|
164
|
+
def perform(&block); end
|
165
|
+
def post?; end
|
166
|
+
def query_string(uri); end
|
167
|
+
def query_string_normalizer; end
|
168
|
+
def raw_body; end
|
169
|
+
def redirect; end
|
170
|
+
def redirect=(arg0); end
|
171
|
+
def request_uri(uri); end
|
172
|
+
def response_has_digest_auth_challenge?; end
|
173
|
+
def response_redirects?; end
|
174
|
+
def response_unauthorized?; end
|
175
|
+
def self._load(data); end
|
176
|
+
def send_authorization_header?; end
|
177
|
+
def set_basic_auth_from_uri; end
|
178
|
+
def setup_digest_auth; end
|
179
|
+
def setup_raw_request; end
|
180
|
+
def uri; end
|
181
|
+
def username; end
|
182
|
+
def validate; end
|
183
|
+
end
|
184
|
+
class HTTParty::Request::MultipartBoundary
|
185
|
+
def self.generate; end
|
186
|
+
end
|
187
|
+
class HTTParty::Request::Body
|
188
|
+
def boundary; end
|
189
|
+
def call; end
|
190
|
+
def content_body(object); end
|
191
|
+
def content_type(object); end
|
192
|
+
def file?(object); end
|
193
|
+
def file_name(object); end
|
194
|
+
def force_multipart; end
|
195
|
+
def generate_multipart; end
|
196
|
+
def has_file?(value); end
|
197
|
+
def initialize(params, query_string_normalizer: nil, force_multipart: nil); end
|
198
|
+
def multipart?; end
|
199
|
+
def normalize_query(query); end
|
200
|
+
def params; end
|
201
|
+
def query_string_normalizer; end
|
202
|
+
end
|
203
|
+
class HTTParty::ResponseFragment < SimpleDelegator
|
204
|
+
def code; end
|
205
|
+
def connection; end
|
206
|
+
def http_response; end
|
207
|
+
def initialize(fragment, http_response, connection); end
|
208
|
+
end
|
209
|
+
class HTTParty::Decompressor
|
210
|
+
def body; end
|
211
|
+
def brotli; end
|
212
|
+
def decompress; end
|
213
|
+
def decompress_supported_encoding; end
|
214
|
+
def encoding; end
|
215
|
+
def initialize(body, encoding); end
|
216
|
+
def lzw; end
|
217
|
+
def none; end
|
218
|
+
def supports_encoding?; end
|
219
|
+
end
|
220
|
+
class HTTParty::TextEncoder
|
221
|
+
def assume_utf16_is_big_endian; end
|
222
|
+
def call; end
|
223
|
+
def can_encode?; end
|
224
|
+
def charset; end
|
225
|
+
def content_type; end
|
226
|
+
def encode_utf_16; end
|
227
|
+
def encode_with_ruby_encoding; end
|
228
|
+
def encoded_text; end
|
229
|
+
def initialize(text, assume_utf16_is_big_endian: nil, content_type: nil); end
|
230
|
+
def text; end
|
231
|
+
end
|
232
|
+
class HTTParty::HeadersProcessor
|
233
|
+
def call; end
|
234
|
+
def headers; end
|
235
|
+
def initialize(headers, options); end
|
236
|
+
def options; end
|
237
|
+
def process_dynamic_headers; end
|
238
|
+
end
|
239
|
+
module HTTParty::HashConversions
|
240
|
+
def self.normalize_keys(key, value); end
|
241
|
+
def self.normalize_param(key, value); end
|
242
|
+
def self.to_params(hash); end
|
243
|
+
end
|
244
|
+
module HTTParty::Utils
|
245
|
+
def self.stringify_keys(hash); end
|
246
|
+
end
|
247
|
+
class HTTParty::Error < StandardError
|
248
|
+
end
|
249
|
+
class HTTParty::UnsupportedFormat < HTTParty::Error
|
250
|
+
end
|
251
|
+
class HTTParty::UnsupportedURIScheme < HTTParty::Error
|
252
|
+
end
|
253
|
+
class HTTParty::ResponseError < HTTParty::Error
|
254
|
+
def initialize(response); end
|
255
|
+
def response; end
|
256
|
+
end
|
257
|
+
class HTTParty::RedirectionTooDeep < HTTParty::ResponseError
|
258
|
+
end
|
259
|
+
class HTTParty::DuplicateLocationHeader < HTTParty::ResponseError
|
260
|
+
end
|
261
|
+
class HTTParty::Parser
|
262
|
+
def body; end
|
263
|
+
def csv; end
|
264
|
+
def format; end
|
265
|
+
def html; end
|
266
|
+
def initialize(body, format); end
|
267
|
+
def json; end
|
268
|
+
def parse; end
|
269
|
+
def parse_supported_format; end
|
270
|
+
def plain; end
|
271
|
+
def self.call(body, format); end
|
272
|
+
def self.format_from_mimetype(mimetype); end
|
273
|
+
def self.formats; end
|
274
|
+
def self.supported_formats; end
|
275
|
+
def self.supports_format?(format); end
|
276
|
+
def supports_format?; end
|
277
|
+
def xml; end
|
278
|
+
end
|
279
|
+
class HTTParty::Response
|
280
|
+
def _dump(_level); end
|
281
|
+
def accepted?; end
|
282
|
+
def already_reported?; end
|
283
|
+
def bad_gateway?; end
|
284
|
+
def bad_request?; end
|
285
|
+
def body; end
|
286
|
+
def client_error?; end
|
287
|
+
def code; end
|
288
|
+
def conflict?; end
|
289
|
+
def continue?; end
|
290
|
+
def created?; end
|
291
|
+
def display(port = nil); end
|
292
|
+
def early_hints?; end
|
293
|
+
def expectation_failed?; end
|
294
|
+
def failed_dependency?; end
|
295
|
+
def forbidden?; end
|
296
|
+
def found?; end
|
297
|
+
def gateway_time_out?; end
|
298
|
+
def gateway_timeout?; end
|
299
|
+
def gone?; end
|
300
|
+
def headers; end
|
301
|
+
def http_version; end
|
302
|
+
def im_used?; end
|
303
|
+
def information?; end
|
304
|
+
def initialize(request, response, parsed_block, options = nil); end
|
305
|
+
def inspect; end
|
306
|
+
def insufficient_storage?; end
|
307
|
+
def internal_server_error?; end
|
308
|
+
def length_required?; end
|
309
|
+
def locked?; end
|
310
|
+
def loop_detected?; end
|
311
|
+
def method_missing(name, *args, &block); end
|
312
|
+
def method_not_allowed?; end
|
313
|
+
def misdirected_request?; end
|
314
|
+
def moved_permanently?; end
|
315
|
+
def multi_status?; end
|
316
|
+
def multiple_choice?; end
|
317
|
+
def multiple_choices?; end
|
318
|
+
def network_authentication_required?; end
|
319
|
+
def nil?; end
|
320
|
+
def no_content?; end
|
321
|
+
def non_authoritative_information?; end
|
322
|
+
def not_acceptable?; end
|
323
|
+
def not_extended?; end
|
324
|
+
def not_found?; end
|
325
|
+
def not_implemented?; end
|
326
|
+
def not_modified?; end
|
327
|
+
def ok?; end
|
328
|
+
def parsed_response; end
|
329
|
+
def partial_content?; end
|
330
|
+
def payload_too_large?; end
|
331
|
+
def payment_required?; end
|
332
|
+
def permanent_redirect?; end
|
333
|
+
def precondition_failed?; end
|
334
|
+
def precondition_required?; end
|
335
|
+
def pretty_print(pp); end
|
336
|
+
def processing?; end
|
337
|
+
def proxy_authentication_required?; end
|
338
|
+
def range_not_satisfiable?; end
|
339
|
+
def redirection?; end
|
340
|
+
def request; end
|
341
|
+
def request_entity_too_large?; end
|
342
|
+
def request_header_fields_too_large?; end
|
343
|
+
def request_time_out?; end
|
344
|
+
def request_timeout?; end
|
345
|
+
def request_uri_too_long?; end
|
346
|
+
def requested_range_not_satisfiable?; end
|
347
|
+
def reset_content?; end
|
348
|
+
def respond_to_missing?(name, *args); end
|
349
|
+
def response; end
|
350
|
+
def see_other?; end
|
351
|
+
def self._load(data); end
|
352
|
+
def self.underscore(string); end
|
353
|
+
def server_error?; end
|
354
|
+
def service_unavailable?; end
|
355
|
+
def success?; end
|
356
|
+
def switch_protocol?; end
|
357
|
+
def tap; end
|
358
|
+
def temporary_redirect?; end
|
359
|
+
def throw_exception; end
|
360
|
+
def to_s; end
|
361
|
+
def too_many_requests?; end
|
362
|
+
def unauthorized?; end
|
363
|
+
def unavailable_for_legal_reasons?; end
|
364
|
+
def unprocessable_entity?; end
|
365
|
+
def unsupported_media_type?; end
|
366
|
+
def upgrade_required?; end
|
367
|
+
def uri_too_long?; end
|
368
|
+
def use_proxy?; end
|
369
|
+
def variant_also_negotiates?; end
|
370
|
+
def version_not_supported?; end
|
371
|
+
def warn_about_nil_deprecation; end
|
372
|
+
end
|
373
|
+
class HTTParty::Response::Headers < SimpleDelegator
|
374
|
+
def ==(other); end
|
375
|
+
def initialize(header_values = nil); end
|
376
|
+
include Net::HTTPHeader
|
377
|
+
end
|
378
|
+
module HTTParty::ClassMethods
|
379
|
+
def base_uri(uri = nil); end
|
380
|
+
def basic_auth(u, p); end
|
381
|
+
def ciphers(cipher_names); end
|
382
|
+
def connection_adapter(custom_adapter = nil, options = nil); end
|
383
|
+
def cookies(h = nil); end
|
384
|
+
def copy(path, options = nil, &block); end
|
385
|
+
def debug_output(stream = nil); end
|
386
|
+
def default_options; end
|
387
|
+
def default_params(h = nil); end
|
388
|
+
def default_timeout(value); end
|
389
|
+
def delete(path, options = nil, &block); end
|
390
|
+
def digest_auth(u, p); end
|
391
|
+
def disable_rails_query_string_format; end
|
392
|
+
def ensure_method_maintained_across_redirects(options); end
|
393
|
+
def follow_redirects(value = nil); end
|
394
|
+
def format(f = nil); end
|
395
|
+
def get(path, options = nil, &block); end
|
396
|
+
def head(path, options = nil, &block); end
|
397
|
+
def headers(h = nil); end
|
398
|
+
def http_proxy(addr = nil, port = nil, user = nil, pass = nil); end
|
399
|
+
def lock(path, options = nil, &block); end
|
400
|
+
def logger(logger, level = nil, format = nil); end
|
401
|
+
def maintain_method_across_redirects(value = nil); end
|
402
|
+
def mkcol(path, options = nil, &block); end
|
403
|
+
def move(path, options = nil, &block); end
|
404
|
+
def no_follow(value = nil); end
|
405
|
+
def open_timeout(value); end
|
406
|
+
def options(path, options = nil, &block); end
|
407
|
+
def parser(custom_parser = nil); end
|
408
|
+
def patch(path, options = nil, &block); end
|
409
|
+
def pem(pem_contents, password = nil); end
|
410
|
+
def perform_request(http_method, path, options, &block); end
|
411
|
+
def pkcs12(p12_contents, password); end
|
412
|
+
def post(path, options = nil, &block); end
|
413
|
+
def process_cookies(options); end
|
414
|
+
def put(path, options = nil, &block); end
|
415
|
+
def query_string_normalizer(normalizer); end
|
416
|
+
def raise_on(codes = nil); end
|
417
|
+
def read_timeout(value); end
|
418
|
+
def resend_on_redirect(value = nil); end
|
419
|
+
def skip_decompression(value = nil); end
|
420
|
+
def ssl_ca_file(path); end
|
421
|
+
def ssl_ca_path(path); end
|
422
|
+
def ssl_version(version); end
|
423
|
+
def unlock(path, options = nil, &block); end
|
424
|
+
def uri_adapter(uri_adapter); end
|
425
|
+
def validate_format; end
|
426
|
+
def validate_timeout_argument(timeout_type, value); end
|
427
|
+
def write_timeout(value); end
|
428
|
+
end
|
429
|
+
class HTTParty::Basement
|
430
|
+
def self.default_cookies; end
|
431
|
+
def self.default_cookies=(arg0); end
|
432
|
+
def self.default_options; end
|
433
|
+
def self.default_options=(arg0); end
|
434
|
+
extend HTTParty::ClassMethods
|
435
|
+
extend HTTParty::ModuleInheritableAttributes::ClassMethods
|
436
|
+
include HTTParty
|
437
|
+
include HTTParty::ModuleInheritableAttributes
|
438
|
+
end
|
439
|
+
module Researchable
|
440
|
+
end
|
441
|
+
module Researchable::FreedcampApi
|
442
|
+
end
|
443
|
+
class Researchable::FreedcampApi::Endpoint < ActiveInteraction::Base
|
444
|
+
def self._validators; end
|
445
|
+
extend T::Sig
|
446
|
+
end
|
@@ -0,0 +1,133 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: strict
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/i18n/all/i18n.rbi
|
9
|
+
#
|
10
|
+
# i18n-1.8.11
|
11
|
+
|
12
|
+
module I18n
|
13
|
+
def self.interpolate(string, values); end
|
14
|
+
def self.interpolate_hash(string, values); end
|
15
|
+
def self.new_double_nested_cache; end
|
16
|
+
extend I18n::Base
|
17
|
+
end
|
18
|
+
class I18n::ExceptionHandler
|
19
|
+
def call(exception, _locale, _key, _options); end
|
20
|
+
end
|
21
|
+
class I18n::ArgumentError < ArgumentError
|
22
|
+
end
|
23
|
+
class I18n::Disabled < I18n::ArgumentError
|
24
|
+
def initialize(method); end
|
25
|
+
end
|
26
|
+
class I18n::InvalidLocale < I18n::ArgumentError
|
27
|
+
def initialize(locale); end
|
28
|
+
def locale; end
|
29
|
+
end
|
30
|
+
class I18n::InvalidLocaleData < I18n::ArgumentError
|
31
|
+
def filename; end
|
32
|
+
def initialize(filename, exception_message); end
|
33
|
+
end
|
34
|
+
class I18n::MissingTranslation < I18n::ArgumentError
|
35
|
+
include I18n::MissingTranslation::Base
|
36
|
+
end
|
37
|
+
module I18n::MissingTranslation::Base
|
38
|
+
def initialize(locale, key, options = nil); end
|
39
|
+
def key; end
|
40
|
+
def keys; end
|
41
|
+
def locale; end
|
42
|
+
def message; end
|
43
|
+
def options; end
|
44
|
+
def to_exception; end
|
45
|
+
def to_s; end
|
46
|
+
end
|
47
|
+
class I18n::MissingTranslationData < I18n::ArgumentError
|
48
|
+
include I18n::MissingTranslation::Base
|
49
|
+
end
|
50
|
+
class I18n::InvalidPluralizationData < I18n::ArgumentError
|
51
|
+
def count; end
|
52
|
+
def entry; end
|
53
|
+
def initialize(entry, count, key); end
|
54
|
+
def key; end
|
55
|
+
end
|
56
|
+
class I18n::MissingInterpolationArgument < I18n::ArgumentError
|
57
|
+
def initialize(key, values, string); end
|
58
|
+
def key; end
|
59
|
+
def string; end
|
60
|
+
def values; end
|
61
|
+
end
|
62
|
+
class I18n::ReservedInterpolationKey < I18n::ArgumentError
|
63
|
+
def initialize(key, string); end
|
64
|
+
def key; end
|
65
|
+
def string; end
|
66
|
+
end
|
67
|
+
class I18n::UnknownFileType < I18n::ArgumentError
|
68
|
+
def filename; end
|
69
|
+
def initialize(type, filename); end
|
70
|
+
def type; end
|
71
|
+
end
|
72
|
+
module I18n::Base
|
73
|
+
def available_locales; end
|
74
|
+
def available_locales=(value); end
|
75
|
+
def available_locales_initialized?; end
|
76
|
+
def backend; end
|
77
|
+
def backend=(value); end
|
78
|
+
def config; end
|
79
|
+
def config=(value); end
|
80
|
+
def default_locale; end
|
81
|
+
def default_locale=(value); end
|
82
|
+
def default_separator; end
|
83
|
+
def default_separator=(value); end
|
84
|
+
def eager_load!; end
|
85
|
+
def enforce_available_locales!(locale); end
|
86
|
+
def enforce_available_locales; end
|
87
|
+
def enforce_available_locales=(value); end
|
88
|
+
def exception_handler; end
|
89
|
+
def exception_handler=(value); end
|
90
|
+
def exists?(key, _locale = nil, locale: nil, **options); end
|
91
|
+
def handle_exception(handling, exception, locale, key, options); end
|
92
|
+
def l(object, locale: nil, format: nil, **options); end
|
93
|
+
def load_path; end
|
94
|
+
def load_path=(value); end
|
95
|
+
def locale; end
|
96
|
+
def locale=(value); end
|
97
|
+
def locale_available?(locale); end
|
98
|
+
def localize(object, locale: nil, format: nil, **options); end
|
99
|
+
def normalize_key(key, separator); end
|
100
|
+
def normalize_keys(locale, key, scope, separator = nil); end
|
101
|
+
def reload!; end
|
102
|
+
def t!(key, **options); end
|
103
|
+
def t(key = nil, throw: nil, raise: nil, locale: nil, **options); end
|
104
|
+
def translate!(key, **options); end
|
105
|
+
def translate(key = nil, throw: nil, raise: nil, locale: nil, **options); end
|
106
|
+
def transliterate(key, throw: nil, raise: nil, locale: nil, replacement: nil, **options); end
|
107
|
+
def with_locale(tmp_locale = nil); end
|
108
|
+
end
|
109
|
+
class I18n::Config
|
110
|
+
def available_locales; end
|
111
|
+
def available_locales=(locales); end
|
112
|
+
def available_locales_initialized?; end
|
113
|
+
def available_locales_set; end
|
114
|
+
def backend; end
|
115
|
+
def backend=(backend); end
|
116
|
+
def clear_available_locales_set; end
|
117
|
+
def default_locale; end
|
118
|
+
def default_locale=(locale); end
|
119
|
+
def default_separator; end
|
120
|
+
def default_separator=(separator); end
|
121
|
+
def enforce_available_locales; end
|
122
|
+
def enforce_available_locales=(enforce_available_locales); end
|
123
|
+
def exception_handler; end
|
124
|
+
def exception_handler=(exception_handler); end
|
125
|
+
def interpolation_patterns; end
|
126
|
+
def interpolation_patterns=(interpolation_patterns); end
|
127
|
+
def load_path; end
|
128
|
+
def load_path=(load_path); end
|
129
|
+
def locale; end
|
130
|
+
def locale=(locale); end
|
131
|
+
def missing_interpolation_argument_handler; end
|
132
|
+
def missing_interpolation_argument_handler=(exception_handler); end
|
133
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: true
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/mime-types-data/all/mime-types-data.rbi
|
9
|
+
#
|
10
|
+
# mime-types-data-3.2022.0105
|
11
|
+
|
12
|
+
module MIME
|
13
|
+
end
|
14
|
+
class MIME::Types
|
15
|
+
end
|
16
|
+
module MIME::Types::Data
|
17
|
+
end
|