muina 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/main.yml +16 -0
  3. data/.gitignore +5 -0
  4. data/.mutant.yml +38 -0
  5. data/.rspec +4 -0
  6. data/.rubocop.yml +172 -0
  7. data/.ruby-version +1 -0
  8. data/.simplecov +14 -0
  9. data/CHANGELOG.md +38 -0
  10. data/Gemfile +34 -0
  11. data/Gemfile.lock +265 -0
  12. data/Guardfile +24 -0
  13. data/README.md +36 -0
  14. data/Rakefile +13 -0
  15. data/SECURITY.md +14 -0
  16. data/bin/bundle +114 -0
  17. data/bin/console +15 -0
  18. data/bin/flay +29 -0
  19. data/bin/flog +29 -0
  20. data/bin/guard +29 -0
  21. data/bin/irb +29 -0
  22. data/bin/lefthook +29 -0
  23. data/bin/mutant +29 -0
  24. data/bin/parlour +29 -0
  25. data/bin/rake +29 -0
  26. data/bin/rspec +29 -0
  27. data/bin/rubocop +29 -0
  28. data/bin/setup +8 -0
  29. data/bin/srb +29 -0
  30. data/bin/srb-rbi +29 -0
  31. data/bin/tapioca +29 -0
  32. data/exe/muina +11 -0
  33. data/lefthook.yml +39 -0
  34. data/lib/muina/action/params_factory.rb +17 -0
  35. data/lib/muina/action/step/command.rb +31 -0
  36. data/lib/muina/action/step/failure.rb +18 -0
  37. data/lib/muina/action/step/query.rb +31 -0
  38. data/lib/muina/action/step/result.rb +51 -0
  39. data/lib/muina/action/step.rb +13 -0
  40. data/lib/muina/action.rb +73 -0
  41. data/lib/muina/any.rb +7 -0
  42. data/lib/muina/classes.rb +7 -0
  43. data/lib/muina/module.rb +6 -0
  44. data/lib/muina/parameters.rb +7 -0
  45. data/lib/muina/params.rb +19 -0
  46. data/lib/muina/private_creation.rb +12 -0
  47. data/lib/muina/result/factory.rb +37 -0
  48. data/lib/muina/result/failure.rb +31 -0
  49. data/lib/muina/result/null.rb +25 -0
  50. data/lib/muina/result/success.rb +31 -0
  51. data/lib/muina/result.rb +17 -0
  52. data/lib/muina/service.rb +37 -0
  53. data/lib/muina/symbol_hash.rb +7 -0
  54. data/lib/muina/unit.rb +10 -0
  55. data/lib/muina/untyped_array.rb +7 -0
  56. data/lib/muina/untyped_hash.rb +7 -0
  57. data/lib/muina/value.rb +16 -0
  58. data/lib/muina/version.rb +7 -0
  59. data/lib/muina.rb +42 -0
  60. data/muina.gemspec +35 -0
  61. data/rbi/muina.rbi +268 -0
  62. data/sorbet/config +2 -0
  63. data/sorbet/rbi/gems/actionpack@6.1.4.rbi +5045 -0
  64. data/sorbet/rbi/gems/actionview@6.1.4.rbi +2416 -0
  65. data/sorbet/rbi/gems/activesupport@6.1.4.rbi +3778 -0
  66. data/sorbet/rbi/gems/ast@2.4.2.rbi +54 -0
  67. data/sorbet/rbi/gems/awesome_print@1.9.2.rbi +322 -0
  68. data/sorbet/rbi/gems/builder@3.2.4.rbi +8 -0
  69. data/sorbet/rbi/gems/byebug@11.1.3.rbi +18 -0
  70. data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
  71. data/sorbet/rbi/gems/colorize@0.8.1.rbi +39 -0
  72. data/sorbet/rbi/gems/commander@4.6.0.rbi +8 -0
  73. data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +2403 -0
  74. data/sorbet/rbi/gems/crass@1.0.6.rbi +123 -0
  75. data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +185 -0
  76. data/sorbet/rbi/gems/docile@1.4.0.rbi +54 -0
  77. data/sorbet/rbi/gems/erubi@1.10.0.rbi +36 -0
  78. data/sorbet/rbi/gems/erubis@2.7.0.rbi +8 -0
  79. data/sorbet/rbi/gems/faker@2.18.0.rbi +2469 -0
  80. data/sorbet/rbi/gems/ffi@1.15.3.rbi +8 -0
  81. data/sorbet/rbi/gems/flay@2.12.1.rbi +178 -0
  82. data/sorbet/rbi/gems/flog@4.6.4.rbi +70 -0
  83. data/sorbet/rbi/gems/formatador@0.3.0.rbi +8 -0
  84. data/sorbet/rbi/gems/guard-compat@1.2.1.rbi +49 -0
  85. data/sorbet/rbi/gems/guard-rspec@4.7.3.rbi +233 -0
  86. data/sorbet/rbi/gems/guard-rubocop@1.4.0.rbi +66 -0
  87. data/sorbet/rbi/gems/guard-shell@0.7.2.rbi +69 -0
  88. data/sorbet/rbi/gems/guard@2.18.0.rbi +617 -0
  89. data/sorbet/rbi/gems/highline@2.0.3.rbi +8 -0
  90. data/sorbet/rbi/gems/i18n@1.8.10.rbi +616 -0
  91. data/sorbet/rbi/gems/io-console@0.5.9.rbi +8 -0
  92. data/sorbet/rbi/gems/irb@1.3.6.rbi +452 -0
  93. data/sorbet/rbi/gems/lefthook@0.7.6.rbi +8 -0
  94. data/sorbet/rbi/gems/listen@3.6.0.rbi +476 -0
  95. data/sorbet/rbi/gems/loofah@2.10.0.rbi +223 -0
  96. data/sorbet/rbi/gems/lumberjack@1.2.8.rbi +431 -0
  97. data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
  98. data/sorbet/rbi/gems/minitest@5.14.4.rbi +344 -0
  99. data/sorbet/rbi/gems/mutant-license@0.1.1.1.4043027289354708743625974235631451632228.0.rbi +8 -0
  100. data/sorbet/rbi/gems/mutant-rspec@0.10.32.rbi +8 -0
  101. data/sorbet/rbi/gems/mutant@0.10.32.rbi +4154 -0
  102. data/sorbet/rbi/gems/nenv@0.3.0.rbi +88 -0
  103. data/sorbet/rbi/gems/nokogiri@1.11.7.rbi +1422 -0
  104. data/sorbet/rbi/gems/notiffany@0.1.3.rbi +331 -0
  105. data/sorbet/rbi/gems/parallel@1.20.1.rbi +113 -0
  106. data/sorbet/rbi/gems/parlour@6.0.1.rbi +1726 -0
  107. data/sorbet/rbi/gems/parser@3.0.2.0.rbi +1683 -0
  108. data/sorbet/rbi/gems/path_expander@1.1.0.rbi +24 -0
  109. data/sorbet/rbi/gems/polyfill@1.9.0.rbi +393 -0
  110. data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
  111. data/sorbet/rbi/gems/racc@1.5.2.rbi +47 -0
  112. data/sorbet/rbi/gems/rack-test@1.1.0.rbi +272 -0
  113. data/sorbet/rbi/gems/rack@2.2.3.rbi +1618 -0
  114. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +92 -0
  115. data/sorbet/rbi/gems/rails-html-sanitizer@1.3.0.rbi +183 -0
  116. data/sorbet/rbi/gems/rainbow@3.0.0.rbi +153 -0
  117. data/sorbet/rbi/gems/rake@13.0.6.rbi +808 -0
  118. data/sorbet/rbi/gems/rb-fsevent@0.11.0.rbi +8 -0
  119. data/sorbet/rbi/gems/rb-inotify@0.10.1.rbi +8 -0
  120. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +1120 -0
  121. data/sorbet/rbi/gems/reline@0.2.6.rbi +662 -0
  122. data/sorbet/rbi/gems/rexml@3.2.5.rbi +672 -0
  123. data/sorbet/rbi/gems/rspec-core@3.10.1.rbi +2509 -0
  124. data/sorbet/rbi/gems/rspec-expectations@3.10.1.rbi +1574 -0
  125. data/sorbet/rbi/gems/rspec-mocks@3.10.2.rbi +1462 -0
  126. data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +509 -0
  127. data/sorbet/rbi/gems/rspec@3.10.0.rbi +38 -0
  128. data/sorbet/rbi/gems/rubocop-ast@1.8.0.rbi +2194 -0
  129. data/sorbet/rbi/gems/rubocop-performance@1.11.4.rbi +899 -0
  130. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +118 -0
  131. data/sorbet/rbi/gems/rubocop-rspec@2.4.0.rbi +1805 -0
  132. data/sorbet/rbi/gems/rubocop-sorbet@0.6.2.rbi +288 -0
  133. data/sorbet/rbi/gems/rubocop@1.18.4.rbi +13197 -0
  134. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +405 -0
  135. data/sorbet/rbi/gems/ruby_parser@3.16.0.rbi +4528 -0
  136. data/sorbet/rbi/gems/safe_type@1.1.1.rbi +157 -0
  137. data/sorbet/rbi/gems/sexp_processor@4.15.3.rbi +359 -0
  138. data/sorbet/rbi/gems/shellany@0.0.1.rbi +28 -0
  139. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
  140. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +577 -0
  141. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +8 -0
  142. data/sorbet/rbi/gems/sorbet-coerce@0.5.0.rbi +42 -0
  143. data/sorbet/rbi/gems/sorbet-rails@0.7.4.rbi +8 -0
  144. data/sorbet/rbi/gems/sorbet-struct-comparable@1.1.0.rbi +17 -0
  145. data/sorbet/rbi/gems/spoom@1.1.1.rbi +1193 -0
  146. data/sorbet/rbi/gems/tapioca@0.4.23.rbi +1826 -0
  147. data/sorbet/rbi/gems/thor@1.1.0.rbi +838 -0
  148. data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +856 -0
  149. data/sorbet/rbi/gems/unicode-display_width@2.0.0.rbi +26 -0
  150. data/sorbet/rbi/gems/unparser@0.6.0.rbi +2037 -0
  151. data/sorbet/rbi/gems/zeitwerk@2.4.2.rbi +173 -0
  152. data/sorbet/rbi/todo.rbi +8 -0
  153. data/sorbet/rbi/typed_params.rbi +7 -0
  154. data/sorbet/tapioca/require.rb +16 -0
  155. metadata +269 -0
@@ -0,0 +1,616 @@
1
+ # DO NOT EDIT MANUALLY
2
+ # This is an autogenerated file for types exported from the `i18n` gem.
3
+ # Please instead update this file by running `bin/tapioca sync`.
4
+
5
+ # typed: true
6
+
7
+ module I18n
8
+ extend ::I18n::Base
9
+
10
+ class << self
11
+ def interpolate(string, values); end
12
+ def interpolate_hash(string, values); end
13
+ def new_double_nested_cache; end
14
+ end
15
+ end
16
+
17
+ class I18n::ArgumentError < ::ArgumentError; end
18
+ module I18n::Backend; end
19
+
20
+ module I18n::Backend::Base
21
+ include ::I18n::Backend::Transliterator
22
+
23
+ def available_locales; end
24
+ def eager_load!; end
25
+ def exists?(locale, key, options = T.unsafe(nil)); end
26
+ def load_translations(*filenames); end
27
+ def localize(locale, object, format = T.unsafe(nil), options = T.unsafe(nil)); end
28
+ def reload!; end
29
+ def store_translations(locale, data, options = T.unsafe(nil)); end
30
+ def translate(locale, key, options = T.unsafe(nil)); end
31
+
32
+ protected
33
+
34
+ def deep_interpolate(locale, data, values = T.unsafe(nil)); end
35
+ def default(locale, object, subject, options = T.unsafe(nil)); end
36
+ def eager_loaded?; end
37
+ def interpolate(locale, subject, values = T.unsafe(nil)); end
38
+ def load_file(filename); end
39
+ def load_json(filename); end
40
+ def load_rb(filename); end
41
+ def load_yaml(filename); end
42
+ def load_yml(filename); end
43
+ def lookup(locale, key, scope = T.unsafe(nil), options = T.unsafe(nil)); end
44
+ def pluralization_key(entry, count); end
45
+ def pluralize(locale, entry, count); end
46
+ def resolve(locale, object, subject, options = T.unsafe(nil)); end
47
+ def subtrees?; end
48
+ def translate_localization_format(locale, object, format, options); end
49
+ end
50
+
51
+ module I18n::Backend::Cache
52
+ def translate(locale, key, options = T.unsafe(nil)); end
53
+
54
+ protected
55
+
56
+ def _fetch(cache_key, &block); end
57
+ def cache_key(locale, key, options); end
58
+ def fetch(cache_key, &block); end
59
+
60
+ private
61
+
62
+ def digest_item(key); end
63
+ end
64
+
65
+ module I18n::Backend::CacheFile
66
+ def path_roots; end
67
+ def path_roots=(_arg0); end
68
+
69
+ protected
70
+
71
+ def load_file(filename); end
72
+ def normalized_path(file); end
73
+ end
74
+
75
+ module I18n::Backend::Cascade
76
+ def lookup(locale, key, scope = T.unsafe(nil), options = T.unsafe(nil)); end
77
+ end
78
+
79
+ class I18n::Backend::Chain
80
+ include ::I18n::Backend::Transliterator
81
+ include ::I18n::Backend::Base
82
+ include ::I18n::Backend::Chain::Implementation
83
+ end
84
+
85
+ module I18n::Backend::Chain::Implementation
86
+ include ::I18n::Backend::Transliterator
87
+ include ::I18n::Backend::Base
88
+
89
+ def initialize(*backends); end
90
+
91
+ def available_locales; end
92
+ def backends; end
93
+ def backends=(_arg0); end
94
+ def eager_load!; end
95
+ def exists?(locale, key, options = T.unsafe(nil)); end
96
+ def initialized?; end
97
+ def localize(locale, object, format = T.unsafe(nil), options = T.unsafe(nil)); end
98
+ def reload!; end
99
+ def store_translations(locale, data, options = T.unsafe(nil)); end
100
+ def translate(locale, key, default_options = T.unsafe(nil)); end
101
+
102
+ protected
103
+
104
+ def init_translations; end
105
+ def namespace_lookup?(result, options); end
106
+ def translations; end
107
+
108
+ private
109
+
110
+ def _deep_merge(hash, other_hash); end
111
+ end
112
+
113
+ module I18n::Backend::Fallbacks
114
+ def exists?(locale, key, options = T.unsafe(nil)); end
115
+ def extract_non_symbol_default!(options); end
116
+ def translate(locale, key, options = T.unsafe(nil)); end
117
+
118
+ private
119
+
120
+ def on_fallback(_original_locale, _fallback_locale, _key, _optoins); end
121
+ end
122
+
123
+ module I18n::Backend::Flatten
124
+ def flatten_keys(hash, escape, prev_key = T.unsafe(nil), &block); end
125
+ def flatten_translations(locale, data, escape, subtree); end
126
+ def links; end
127
+ def normalize_flat_keys(locale, key, scope, separator); end
128
+
129
+ protected
130
+
131
+ def escape_default_separator(key); end
132
+ def find_link(locale, key); end
133
+ def resolve_link(locale, key); end
134
+ def store_link(locale, key, link); end
135
+
136
+ class << self
137
+ def escape_default_separator(key); end
138
+ def normalize_flat_keys(locale, key, scope, separator); end
139
+ end
140
+ end
141
+
142
+ I18n::Backend::Flatten::FLATTEN_SEPARATOR = T.let(T.unsafe(nil), String)
143
+ I18n::Backend::Flatten::SEPARATOR_ESCAPE_CHAR = T.let(T.unsafe(nil), String)
144
+
145
+ module I18n::Backend::Gettext
146
+ protected
147
+
148
+ def load_po(filename); end
149
+ def normalize(locale, data); end
150
+ def normalize_pluralization(locale, key, value); end
151
+ def parse(filename); end
152
+ end
153
+
154
+ class I18n::Backend::Gettext::PoData < ::Hash
155
+ def set_comment(msgid_or_sym, comment); end
156
+ end
157
+
158
+ module I18n::Backend::InterpolationCompiler
159
+ def interpolate(locale, string, values); end
160
+ def store_translations(locale, data, options = T.unsafe(nil)); end
161
+
162
+ protected
163
+
164
+ def compile_all_strings_in(data); end
165
+ end
166
+
167
+ module I18n::Backend::InterpolationCompiler::Compiler
168
+ extend ::I18n::Backend::InterpolationCompiler::Compiler
169
+
170
+ def compile_if_an_interpolation(string); end
171
+ def interpolated_str?(str); end
172
+
173
+ protected
174
+
175
+ def compile_interpolation_token(key); end
176
+ def compiled_interpolation_body(str); end
177
+ def direct_key(key); end
178
+ def escape_key_sym(key); end
179
+ def escape_plain_str(str); end
180
+ def handle_interpolation_token(interpolation, matchdata); end
181
+ def interpolate_key(key); end
182
+ def interpolate_or_raise_missing(key); end
183
+ def missing_key(key); end
184
+ def nil_key(key); end
185
+ def reserved_key(key); end
186
+ def tokenize(str); end
187
+ end
188
+
189
+ I18n::Backend::InterpolationCompiler::Compiler::INTERPOLATION_SYNTAX_PATTERN = T.let(T.unsafe(nil), Regexp)
190
+ I18n::Backend::InterpolationCompiler::Compiler::TOKENIZER = T.let(T.unsafe(nil), Regexp)
191
+
192
+ class I18n::Backend::KeyValue
193
+ include ::I18n::Backend::Flatten
194
+ include ::I18n::Backend::Transliterator
195
+ include ::I18n::Backend::Base
196
+ include ::I18n::Backend::KeyValue::Implementation
197
+ end
198
+
199
+ module I18n::Backend::KeyValue::Implementation
200
+ include ::I18n::Backend::Flatten
201
+ include ::I18n::Backend::Transliterator
202
+ include ::I18n::Backend::Base
203
+
204
+ def initialize(store, subtrees = T.unsafe(nil)); end
205
+
206
+ def available_locales; end
207
+ def initialized?; end
208
+ def store; end
209
+ def store=(_arg0); end
210
+ def store_translations(locale, data, options = T.unsafe(nil)); end
211
+
212
+ protected
213
+
214
+ def init_translations; end
215
+ def lookup(locale, key, scope = T.unsafe(nil), options = T.unsafe(nil)); end
216
+ def pluralize(locale, entry, count); end
217
+ def subtrees?; end
218
+ def translations; end
219
+ end
220
+
221
+ class I18n::Backend::KeyValue::SubtreeProxy
222
+ def initialize(master_key, store); end
223
+
224
+ def [](key); end
225
+ def has_key?(key); end
226
+ def inspect; end
227
+ def instance_of?(klass); end
228
+ def is_a?(klass); end
229
+ def kind_of?(klass); end
230
+ def nil?; end
231
+ end
232
+
233
+ module I18n::Backend::Memoize
234
+ def available_locales; end
235
+ def eager_load!; end
236
+ def reload!; end
237
+ def store_translations(locale, data, options = T.unsafe(nil)); end
238
+
239
+ protected
240
+
241
+ def lookup(locale, key, scope = T.unsafe(nil), options = T.unsafe(nil)); end
242
+ def memoized_lookup; end
243
+ def reset_memoizations!(locale = T.unsafe(nil)); end
244
+ end
245
+
246
+ module I18n::Backend::Metadata
247
+ def interpolate(locale, entry, values = T.unsafe(nil)); end
248
+ def pluralize(locale, entry, count); end
249
+ def translate(locale, key, options = T.unsafe(nil)); end
250
+
251
+ protected
252
+
253
+ def with_metadata(metadata, &block); end
254
+
255
+ class << self
256
+ def included(base); end
257
+ end
258
+ end
259
+
260
+ module I18n::Backend::Pluralization
261
+ def pluralize(locale, entry, count); end
262
+
263
+ protected
264
+
265
+ def pluralizer(locale); end
266
+ def pluralizers; end
267
+ end
268
+
269
+ class I18n::Backend::Simple
270
+ include ::I18n::Backend::Transliterator
271
+ include ::I18n::Backend::Base
272
+ include ::I18n::Backend::Simple::Implementation
273
+ end
274
+
275
+ module I18n::Backend::Simple::Implementation
276
+ include ::I18n::Backend::Transliterator
277
+ include ::I18n::Backend::Base
278
+
279
+ def available_locales; end
280
+ def eager_load!; end
281
+ def initialized?; end
282
+ def reload!; end
283
+ def store_translations(locale, data, options = T.unsafe(nil)); end
284
+ def translations(do_init: T.unsafe(nil)); end
285
+
286
+ protected
287
+
288
+ def init_translations; end
289
+ def lookup(locale, key, scope = T.unsafe(nil), options = T.unsafe(nil)); end
290
+ end
291
+
292
+ module I18n::Backend::Transliterator
293
+ def transliterate(locale, string, replacement = T.unsafe(nil)); end
294
+
295
+ class << self
296
+ def get(rule = T.unsafe(nil)); end
297
+ end
298
+ end
299
+
300
+ I18n::Backend::Transliterator::DEFAULT_REPLACEMENT_CHAR = T.let(T.unsafe(nil), String)
301
+
302
+ class I18n::Backend::Transliterator::HashTransliterator
303
+ def initialize(rule = T.unsafe(nil)); end
304
+
305
+ def transliterate(string, replacement = T.unsafe(nil)); end
306
+
307
+ private
308
+
309
+ def add(hash); end
310
+ def add_default_approximations; end
311
+ def approximations; end
312
+ end
313
+
314
+ I18n::Backend::Transliterator::HashTransliterator::DEFAULT_APPROXIMATIONS = T.let(T.unsafe(nil), Hash)
315
+
316
+ class I18n::Backend::Transliterator::ProcTransliterator
317
+ def initialize(rule); end
318
+
319
+ def transliterate(string, replacement = T.unsafe(nil)); end
320
+ end
321
+
322
+ module I18n::Base
323
+ def available_locales; end
324
+ def available_locales=(value); end
325
+ def available_locales_initialized?; end
326
+ def backend; end
327
+ def backend=(value); end
328
+ def config; end
329
+ def config=(value); end
330
+ def default_locale; end
331
+ def default_locale=(value); end
332
+ def default_separator; end
333
+ def default_separator=(value); end
334
+ def eager_load!; end
335
+ def enforce_available_locales; end
336
+ def enforce_available_locales!(locale); end
337
+ def enforce_available_locales=(value); end
338
+ def exception_handler; end
339
+ def exception_handler=(value); end
340
+ def exists?(key, _locale = T.unsafe(nil), locale: T.unsafe(nil), **options); end
341
+ def l(object, locale: T.unsafe(nil), format: T.unsafe(nil), **options); end
342
+ def load_path; end
343
+ def load_path=(value); end
344
+ def locale; end
345
+ def locale=(value); end
346
+ def locale_available?(locale); end
347
+ def localize(object, locale: T.unsafe(nil), format: T.unsafe(nil), **options); end
348
+ def normalize_keys(locale, key, scope, separator = T.unsafe(nil)); end
349
+ def reload!; end
350
+ def t(key = T.unsafe(nil), throw: T.unsafe(nil), raise: T.unsafe(nil), locale: T.unsafe(nil), **options); end
351
+ def t!(key, **options); end
352
+ def translate(key = T.unsafe(nil), throw: T.unsafe(nil), raise: T.unsafe(nil), locale: T.unsafe(nil), **options); end
353
+ def translate!(key, **options); end
354
+ def transliterate(key, throw: T.unsafe(nil), raise: T.unsafe(nil), locale: T.unsafe(nil), replacement: T.unsafe(nil), **options); end
355
+ def with_locale(tmp_locale = T.unsafe(nil)); end
356
+
357
+ private
358
+
359
+ def handle_exception(handling, exception, locale, key, options); end
360
+ def normalize_key(key, separator); end
361
+ end
362
+
363
+ class I18n::Config
364
+ def available_locales; end
365
+ def available_locales=(locales); end
366
+ def available_locales_initialized?; end
367
+ def available_locales_set; end
368
+ def backend; end
369
+ def backend=(backend); end
370
+ def clear_available_locales_set; end
371
+ def default_locale; end
372
+ def default_locale=(locale); end
373
+ def default_separator; end
374
+ def default_separator=(separator); end
375
+ def enforce_available_locales; end
376
+ def enforce_available_locales=(enforce_available_locales); end
377
+ def exception_handler; end
378
+ def exception_handler=(exception_handler); end
379
+ def interpolation_patterns; end
380
+ def interpolation_patterns=(interpolation_patterns); end
381
+ def load_path; end
382
+ def load_path=(load_path); end
383
+ def locale; end
384
+ def locale=(locale); end
385
+ def missing_interpolation_argument_handler; end
386
+ def missing_interpolation_argument_handler=(exception_handler); end
387
+ end
388
+
389
+ I18n::DEFAULT_INTERPOLATION_PATTERNS = T.let(T.unsafe(nil), Array)
390
+
391
+ class I18n::Disabled < ::I18n::ArgumentError
392
+ def initialize(method); end
393
+ end
394
+
395
+ I18n::EMPTY_HASH = T.let(T.unsafe(nil), Hash)
396
+
397
+ class I18n::ExceptionHandler
398
+ def call(exception, _locale, _key, _options); end
399
+ end
400
+
401
+ module I18n::Gettext
402
+ class << self
403
+ def extract_scope(msgid, separator); end
404
+ def plural_keys(*args); end
405
+ end
406
+ end
407
+
408
+ I18n::Gettext::CONTEXT_SEPARATOR = T.let(T.unsafe(nil), String)
409
+
410
+ module I18n::Gettext::Helpers
411
+ def N_(msgsid); end
412
+ def _(msgid, options = T.unsafe(nil)); end
413
+ def gettext(msgid, options = T.unsafe(nil)); end
414
+ def n_(msgid, msgid_plural, n = T.unsafe(nil)); end
415
+ def ngettext(msgid, msgid_plural, n = T.unsafe(nil)); end
416
+ def np_(msgctxt, msgid, msgid_plural, n = T.unsafe(nil)); end
417
+ def npgettext(msgctxt, msgid, msgid_plural, n = T.unsafe(nil)); end
418
+ def ns_(msgid, msgid_plural, n = T.unsafe(nil), separator = T.unsafe(nil)); end
419
+ def nsgettext(msgid, msgid_plural, n = T.unsafe(nil), separator = T.unsafe(nil)); end
420
+ def p_(msgctxt, msgid); end
421
+ def pgettext(msgctxt, msgid); end
422
+ def s_(msgid, separator = T.unsafe(nil)); end
423
+ def sgettext(msgid, separator = T.unsafe(nil)); end
424
+ end
425
+
426
+ I18n::Gettext::PLURAL_SEPARATOR = T.let(T.unsafe(nil), String)
427
+ module I18n::HashRefinements; end
428
+ I18n::INTERPOLATION_PATTERN = T.let(T.unsafe(nil), Regexp)
429
+
430
+ class I18n::InvalidLocale < ::I18n::ArgumentError
431
+ def initialize(locale); end
432
+
433
+ def locale; end
434
+ end
435
+
436
+ class I18n::InvalidLocaleData < ::I18n::ArgumentError
437
+ def initialize(filename, exception_message); end
438
+
439
+ def filename; end
440
+ end
441
+
442
+ class I18n::InvalidPluralizationData < ::I18n::ArgumentError
443
+ def initialize(entry, count, key); end
444
+
445
+ def count; end
446
+ def entry; end
447
+ def key; end
448
+ end
449
+
450
+ I18n::JSON = ActiveSupport::JSON
451
+ module I18n::Locale; end
452
+
453
+ class I18n::Locale::Fallbacks < ::Hash
454
+ def initialize(*mappings); end
455
+
456
+ def [](locale); end
457
+ def defaults; end
458
+ def defaults=(defaults); end
459
+ def map(mappings); end
460
+
461
+ protected
462
+
463
+ def compute(tags, include_defaults = T.unsafe(nil), exclude = T.unsafe(nil)); end
464
+ end
465
+
466
+ module I18n::Locale::Tag
467
+ class << self
468
+ def implementation; end
469
+ def implementation=(implementation); end
470
+ def tag(tag); end
471
+ end
472
+ end
473
+
474
+ module I18n::Locale::Tag::Parents
475
+ def parent; end
476
+ def parents; end
477
+ def self_and_parents; end
478
+ end
479
+
480
+ I18n::Locale::Tag::RFC4646_FORMATS = T.let(T.unsafe(nil), Hash)
481
+ I18n::Locale::Tag::RFC4646_SUBTAGS = T.let(T.unsafe(nil), Array)
482
+
483
+ class I18n::Locale::Tag::Rfc4646 < ::Struct
484
+ include ::I18n::Locale::Tag::Parents
485
+
486
+ def language; end
487
+ def region; end
488
+ def script; end
489
+ def to_a; end
490
+ def to_s; end
491
+ def to_sym; end
492
+ def variant; end
493
+
494
+ class << self
495
+ def parser; end
496
+ def parser=(parser); end
497
+ def tag(tag); end
498
+ end
499
+ end
500
+
501
+ module I18n::Locale::Tag::Rfc4646::Parser
502
+ class << self
503
+ def match(tag); end
504
+ end
505
+ end
506
+
507
+ I18n::Locale::Tag::Rfc4646::Parser::PATTERN = T.let(T.unsafe(nil), Regexp)
508
+
509
+ class I18n::Locale::Tag::Simple
510
+ include ::I18n::Locale::Tag::Parents
511
+
512
+ def initialize(*tag); end
513
+
514
+ def subtags; end
515
+ def tag; end
516
+ def to_a; end
517
+ def to_s; end
518
+ def to_sym; end
519
+
520
+ class << self
521
+ def tag(tag); end
522
+ end
523
+ end
524
+
525
+ class I18n::Middleware
526
+ def initialize(app); end
527
+
528
+ def call(env); end
529
+ end
530
+
531
+ class I18n::MissingInterpolationArgument < ::I18n::ArgumentError
532
+ def initialize(key, values, string); end
533
+
534
+ def key; end
535
+ def string; end
536
+ def values; end
537
+ end
538
+
539
+ class I18n::MissingTranslation < ::I18n::ArgumentError
540
+ include ::I18n::MissingTranslation::Base
541
+ end
542
+
543
+ module I18n::MissingTranslation::Base
544
+ def initialize(locale, key, options = T.unsafe(nil)); end
545
+
546
+ def key; end
547
+ def keys; end
548
+ def locale; end
549
+ def message; end
550
+ def options; end
551
+ def to_exception; end
552
+ def to_s; end
553
+ end
554
+
555
+ class I18n::MissingTranslationData < ::I18n::ArgumentError
556
+ include ::I18n::MissingTranslation::Base
557
+ end
558
+
559
+ I18n::RESERVED_KEYS = T.let(T.unsafe(nil), Array)
560
+ I18n::RESERVED_KEYS_PATTERN = T.let(T.unsafe(nil), Regexp)
561
+
562
+ class I18n::ReservedInterpolationKey < ::I18n::ArgumentError
563
+ def initialize(key, string); end
564
+
565
+ def key; end
566
+ def string; end
567
+ end
568
+
569
+ module I18n::Tests; end
570
+
571
+ module I18n::Tests::Basics
572
+ def teardown; end
573
+ end
574
+
575
+ module I18n::Tests::Defaults
576
+ def setup; end
577
+ end
578
+
579
+ module I18n::Tests::Interpolation; end
580
+ module I18n::Tests::Link; end
581
+
582
+ module I18n::Tests::Localization
583
+ class << self
584
+ def included(base); end
585
+ end
586
+ end
587
+
588
+ module I18n::Tests::Localization::Date
589
+ def setup; end
590
+ end
591
+
592
+ module I18n::Tests::Localization::DateTime
593
+ def setup; end
594
+ end
595
+
596
+ module I18n::Tests::Localization::Procs; end
597
+
598
+ module I18n::Tests::Localization::Time
599
+ def setup; end
600
+ end
601
+
602
+ module I18n::Tests::Lookup
603
+ def setup; end
604
+ end
605
+
606
+ module I18n::Tests::Pluralization; end
607
+ module I18n::Tests::Procs; end
608
+
609
+ class I18n::UnknownFileType < ::I18n::ArgumentError
610
+ def initialize(type, filename); end
611
+
612
+ def filename; end
613
+ def type; end
614
+ end
615
+
616
+ I18n::VERSION = T.let(T.unsafe(nil), String)
@@ -0,0 +1,8 @@
1
+ # DO NOT EDIT MANUALLY
2
+ # This is an autogenerated file for types exported from the `io-console` gem.
3
+ # Please instead update this file by running `bin/tapioca sync`.
4
+
5
+ # typed: true
6
+
7
+ # THIS IS AN EMPTY RBI FILE.
8
+ # see https://github.com/Shopify/tapioca/blob/master/README.md#manual-gem-requires