lunchmoney 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +7 -0
  3. data/.github/workflows/build_and_publish_yard_docs.yml +2 -2
  4. data/.github/workflows/ci.yml +1 -1
  5. data/.ruby-version +1 -1
  6. data/.simplecov +1 -0
  7. data/Gemfile +2 -2
  8. data/Gemfile.lock +65 -57
  9. data/lib/lunchmoney/api.rb +1 -0
  10. data/lib/lunchmoney/calls/categories.rb +0 -2
  11. data/lib/lunchmoney/calls/transactions.rb +0 -1
  12. data/lib/lunchmoney/deprecate.rb +35 -0
  13. data/lib/lunchmoney/objects/asset.rb +6 -1
  14. data/lib/lunchmoney/objects/plaid_account.rb +6 -1
  15. data/lib/lunchmoney/version.rb +1 -1
  16. data/sorbet/rbi/annotations/activesupport.rbi +5 -0
  17. data/sorbet/rbi/gems/{activesupport@7.2.1.rbi → activesupport@7.2.2.1.rbi} +109 -86
  18. data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
  19. data/sorbet/rbi/gems/{concurrent-ruby@1.3.4.rbi → concurrent-ruby@1.3.5.rbi} +44 -32
  20. data/sorbet/rbi/gems/{connection_pool@2.4.1.rbi → connection_pool@2.5.0.rbi} +1 -0
  21. data/sorbet/rbi/gems/{dotenv@3.1.2.rbi → dotenv@3.1.7.rbi} +21 -29
  22. data/sorbet/rbi/gems/{erubi@1.13.0.rbi → erubi@1.13.1.rbi} +14 -9
  23. data/sorbet/rbi/gems/{faraday-net_http@3.1.1.rbi → faraday-net_http@3.4.0.rbi} +34 -34
  24. data/sorbet/rbi/gems/{faraday@2.10.1.rbi → faraday@2.12.2.rbi} +43 -34
  25. data/sorbet/rbi/gems/{i18n@1.14.5.rbi → i18n@1.14.7.rbi} +80 -80
  26. data/sorbet/rbi/gems/{json@2.7.2.rbi → json@2.10.2.rbi} +697 -146
  27. data/sorbet/rbi/gems/language_server-protocol@3.17.0.4.rbi +9 -0
  28. data/sorbet/rbi/gems/{logger@1.6.0.rbi → logger@1.6.6.rbi} +109 -72
  29. data/sorbet/rbi/gems/{minitest@5.25.1.rbi → minitest@5.25.5.rbi} +227 -220
  30. data/sorbet/rbi/gems/{mocha@2.4.5.rbi → mocha@2.7.1.rbi} +154 -118
  31. data/sorbet/rbi/gems/{net-http@0.4.1.rbi → net-http@0.6.0.rbi} +360 -181
  32. data/sorbet/rbi/gems/{parser@3.3.4.2.rbi → parser@3.3.7.1.rbi} +23 -17
  33. data/sorbet/rbi/gems/{prism@0.30.0.rbi → prism@1.4.0.rbi} +12440 -9920
  34. data/sorbet/rbi/gems/{rack@3.1.7.rbi → rack@3.1.9.rbi} +91 -83
  35. data/sorbet/rbi/gems/rbi@0.3.1.rbi +6599 -0
  36. data/sorbet/rbi/gems/rbs@3.9.0.rbi +6978 -0
  37. data/sorbet/rbi/gems/{regexp_parser@2.9.2.rbi → regexp_parser@2.10.0.rbi} +193 -170
  38. data/sorbet/rbi/gems/{rexml@3.3.6.rbi → rexml@3.4.1.rbi} +541 -114
  39. data/sorbet/rbi/gems/{rubocop-ast@1.32.1.rbi → rubocop-ast@1.38.0.rbi} +1224 -622
  40. data/sorbet/rbi/gems/{rubocop-minitest@0.35.1.rbi → rubocop-minitest@0.36.0.rbi} +5 -5
  41. data/sorbet/rbi/gems/{rubocop-rails@2.26.0.rbi → rubocop-rails@2.29.1.rbi} +9412 -6480
  42. data/sorbet/rbi/gems/{rubocop-sorbet@0.8.5.rbi → rubocop-sorbet@0.8.7.rbi} +44 -1
  43. data/sorbet/rbi/gems/{rubocop@1.65.1.rbi → rubocop@1.71.2.rbi} +5606 -3467
  44. data/sorbet/rbi/gems/{securerandom@0.3.1.rbi → securerandom@0.4.1.rbi} +7 -5
  45. data/sorbet/rbi/gems/{spoom@1.4.2.rbi → spoom@1.6.1.rbi} +3315 -973
  46. data/sorbet/rbi/gems/{tapioca@0.16.1.rbi → tapioca@0.16.11.rbi} +300 -234
  47. data/sorbet/rbi/gems/{thor@1.3.1.rbi → thor@1.3.2.rbi} +58 -31
  48. data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
  49. data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
  50. data/sorbet/rbi/gems/{uri@0.13.0.rbi → uri@1.0.3.rbi} +278 -256
  51. data/sorbet/rbi/gems/{webmock@3.23.1.rbi → webmock@3.25.1.rbi} +101 -78
  52. data/sorbet/rbi/gems/{yard@0.9.36.rbi → yard@0.9.37.rbi} +394 -235
  53. metadata +42 -44
  54. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -14237
  55. data/sorbet/rbi/gems/rbi@0.1.14.rbi +0 -3305
  56. data/sorbet/rbi/gems/strscan@3.1.0.rbi +0 -9
  57. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
  58. /data/sorbet/rbi/gems/{bigdecimal@3.1.8.rbi → bigdecimal@3.1.9.rbi} +0 -0
  59. /data/sorbet/rbi/gems/{hashdiff@1.1.1.rbi → hashdiff@1.1.2.rbi} +0 -0
@@ -88,7 +88,7 @@ module I18n
88
88
  # source://i18n//lib/i18n/interpolate/ruby.rb#29
89
89
  def interpolate_hash(string, values); end
90
90
 
91
- # source://i18n//lib/i18n.rb#37
91
+ # source://i18n//lib/i18n.rb#38
92
92
  def new_double_nested_cache; end
93
93
 
94
94
  # @return [Boolean]
@@ -101,10 +101,10 @@ module I18n
101
101
  # extra keys as I18n options, you should call I18n.reserve_key
102
102
  # before any I18n.translate (etc) calls are made.
103
103
  #
104
- # source://i18n//lib/i18n.rb#45
104
+ # source://i18n//lib/i18n.rb#46
105
105
  def reserve_key(key); end
106
106
 
107
- # source://i18n//lib/i18n.rb#50
107
+ # source://i18n//lib/i18n.rb#51
108
108
  def reserved_keys_pattern; end
109
109
  end
110
110
  end
@@ -124,15 +124,15 @@ module I18n::Backend::Base
124
124
  #
125
125
  # @raise [NotImplementedError]
126
126
  #
127
- # source://i18n//lib/i18n/backend/base.rb#96
127
+ # source://i18n//lib/i18n/backend/base.rb#97
128
128
  def available_locales; end
129
129
 
130
- # source://i18n//lib/i18n/backend/base.rb#104
130
+ # source://i18n//lib/i18n/backend/base.rb#105
131
131
  def eager_load!; end
132
132
 
133
133
  # @return [Boolean]
134
134
  #
135
- # source://i18n//lib/i18n/backend/base.rb#70
135
+ # source://i18n//lib/i18n/backend/base.rb#71
136
136
  def exists?(locale, key, options = T.unsafe(nil)); end
137
137
 
138
138
  # Accepts a list of paths to translation files. Loads translations from
@@ -148,10 +148,10 @@ module I18n::Backend::Base
148
148
  #
149
149
  # @raise [ArgumentError]
150
150
  #
151
- # source://i18n//lib/i18n/backend/base.rb#77
151
+ # source://i18n//lib/i18n/backend/base.rb#78
152
152
  def localize(locale, object, format = T.unsafe(nil), options = T.unsafe(nil)); end
153
153
 
154
- # source://i18n//lib/i18n/backend/base.rb#100
154
+ # source://i18n//lib/i18n/backend/base.rb#101
155
155
  def reload!; end
156
156
 
157
157
  # This method receives a locale, a data hash and options for storing translations.
@@ -175,7 +175,7 @@ module I18n::Backend::Base
175
175
  # ann: 'good', john: 'big'
176
176
  # #=> { people: { ann: "Ann is good", john: "John is big" } }
177
177
  #
178
- # source://i18n//lib/i18n/backend/base.rb#209
178
+ # source://i18n//lib/i18n/backend/base.rb#217
179
179
  def deep_interpolate(locale, data, values = T.unsafe(nil)); end
180
180
 
181
181
  # Evaluates defaults.
@@ -183,12 +183,12 @@ module I18n::Backend::Base
183
183
  # first translation that can be resolved. Otherwise it tries to resolve
184
184
  # the translation directly.
185
185
  #
186
- # source://i18n//lib/i18n/backend/base.rb#127
186
+ # source://i18n//lib/i18n/backend/base.rb#128
187
187
  def default(locale, object, subject, options = T.unsafe(nil)); end
188
188
 
189
189
  # @return [Boolean]
190
190
  #
191
- # source://i18n//lib/i18n/backend/base.rb#110
191
+ # source://i18n//lib/i18n/backend/base.rb#111
192
192
  def eager_loaded?; end
193
193
 
194
194
  # Interpolates values into a given subject.
@@ -202,7 +202,7 @@ module I18n::Backend::Base
202
202
  # method interpolates ["yes, %{user}", ["maybe no, %{user}", "no, %{user}"]], :user => "bartuz"
203
203
  # # => ["yes, bartuz", ["maybe no, bartuz", "no, bartuz"]]
204
204
  #
205
- # source://i18n//lib/i18n/backend/base.rb#193
205
+ # source://i18n//lib/i18n/backend/base.rb#201
206
206
  def interpolate(locale, subject, values = T.unsafe(nil)); end
207
207
 
208
208
  # Loads a single translations file by delegating to #load_rb or
@@ -212,41 +212,41 @@ module I18n::Backend::Base
212
212
  #
213
213
  # @raise [UnknownFileType]
214
214
  #
215
- # source://i18n//lib/i18n/backend/base.rb#232
215
+ # source://i18n//lib/i18n/backend/base.rb#240
216
216
  def load_file(filename); end
217
217
 
218
218
  # Loads a JSON translations file. The data must have locales as
219
219
  # toplevel keys.
220
220
  #
221
- # source://i18n//lib/i18n/backend/base.rb#268
221
+ # source://i18n//lib/i18n/backend/base.rb#276
222
222
  def load_json(filename); end
223
223
 
224
224
  # Loads a plain Ruby translations file. eval'ing the file must yield
225
225
  # a Hash containing translation data with locales as toplevel keys.
226
226
  #
227
- # source://i18n//lib/i18n/backend/base.rb#246
227
+ # source://i18n//lib/i18n/backend/base.rb#254
228
228
  def load_rb(filename); end
229
229
 
230
230
  # Loads a YAML translations file. The data must have locales as
231
231
  # toplevel keys.
232
232
  #
233
- # source://i18n//lib/i18n/backend/base.rb#253
233
+ # source://i18n//lib/i18n/backend/base.rb#261
234
234
  def load_yaml(filename); end
235
235
 
236
236
  # Loads a YAML translations file. The data must have locales as
237
237
  # toplevel keys.
238
238
  #
239
- # source://i18n//lib/i18n/backend/base.rb#253
239
+ # source://i18n//lib/i18n/backend/base.rb#261
240
240
  def load_yml(filename); end
241
241
 
242
242
  # The method which actually looks up for the translation in the store.
243
243
  #
244
244
  # @raise [NotImplementedError]
245
245
  #
246
- # source://i18n//lib/i18n/backend/base.rb#115
246
+ # source://i18n//lib/i18n/backend/base.rb#116
247
247
  def lookup(locale, key, scope = T.unsafe(nil), options = T.unsafe(nil)); end
248
248
 
249
- # source://i18n//lib/i18n/backend/base.rb#300
249
+ # source://i18n//lib/i18n/backend/base.rb#308
250
250
  def pluralization_key(entry, count); end
251
251
 
252
252
  # Picks a translation from a pluralized mnemonic subkey according to English
@@ -260,7 +260,7 @@ module I18n::Backend::Base
260
260
  #
261
261
  # @raise [InvalidPluralizationData]
262
262
  #
263
- # source://i18n//lib/i18n/backend/base.rb#174
263
+ # source://i18n//lib/i18n/backend/base.rb#182
264
264
  def pluralize(locale, entry, count); end
265
265
 
266
266
  # Resolves a translation.
@@ -268,7 +268,7 @@ module I18n::Backend::Base
268
268
  # given options. If it is a Proc then it will be evaluated. All other
269
269
  # subjects will be returned directly.
270
270
  #
271
- # source://i18n//lib/i18n/backend/base.rb#149
271
+ # source://i18n//lib/i18n/backend/base.rb#150
272
272
  def resolve(locale, object, subject, options = T.unsafe(nil)); end
273
273
 
274
274
  # Resolves a translation.
@@ -276,15 +276,15 @@ module I18n::Backend::Base
276
276
  # given options. If it is a Proc then it will be evaluated. All other
277
277
  # subjects will be returned directly.
278
278
  #
279
- # source://i18n//lib/i18n/backend/base.rb#149
279
+ # source://i18n//lib/i18n/backend/base.rb#150
280
280
  def resolve_entry(locale, object, subject, options = T.unsafe(nil)); end
281
281
 
282
282
  # @return [Boolean]
283
283
  #
284
- # source://i18n//lib/i18n/backend/base.rb#119
284
+ # source://i18n//lib/i18n/backend/base.rb#120
285
285
  def subtrees?; end
286
286
 
287
- # source://i18n//lib/i18n/backend/base.rb#281
287
+ # source://i18n//lib/i18n/backend/base.rb#289
288
288
  def translate_localization_format(locale, object, format, options); end
289
289
  end
290
290
 
@@ -448,10 +448,10 @@ end
448
448
  module I18n::Backend::Fallbacks
449
449
  # @return [Boolean]
450
450
  #
451
- # source://i18n//lib/i18n/backend/fallbacks.rb#94
451
+ # source://i18n//lib/i18n/backend/fallbacks.rb#98
452
452
  def exists?(locale, key, options = T.unsafe(nil)); end
453
453
 
454
- # source://i18n//lib/i18n/backend/fallbacks.rb#85
454
+ # source://i18n//lib/i18n/backend/fallbacks.rb#89
455
455
  def extract_non_symbol_default!(options); end
456
456
 
457
457
  # source://i18n//lib/i18n/backend/fallbacks.rb#67
@@ -475,7 +475,7 @@ module I18n::Backend::Fallbacks
475
475
 
476
476
  # Overwrite on_fallback to add specified logic when the fallback succeeds.
477
477
  #
478
- # source://i18n//lib/i18n/backend/fallbacks.rb#110
478
+ # source://i18n//lib/i18n/backend/fallbacks.rb#114
479
479
  def on_fallback(_original_locale, _fallback_locale, _key, _options); end
480
480
  end
481
481
 
@@ -1061,14 +1061,14 @@ end
1061
1061
  # The implementation is provided by a Implementation module allowing to easily
1062
1062
  # extend Simple backend's behavior by including modules. E.g.:
1063
1063
  #
1064
- # module I18n::Backend::Pluralization
1065
- # def pluralize(*args)
1066
- # # extended pluralization logic
1067
- # super
1068
- # end
1069
- # end
1064
+ # module I18n::Backend::Pluralization
1065
+ # def pluralize(*args)
1066
+ # # extended pluralization logic
1067
+ # super
1068
+ # end
1069
+ # end
1070
1070
  #
1071
- # I18n::Backend::Simple.include(I18n::Backend::Pluralization)
1071
+ # I18n::Backend::Simple.include(I18n::Backend::Pluralization)
1072
1072
  #
1073
1073
  # source://i18n//lib/i18n/backend/simple.rb#21
1074
1074
  class I18n::Backend::Simple
@@ -1193,69 +1193,69 @@ class I18n::Backend::Transliterator::ProcTransliterator
1193
1193
  def transliterate(string, replacement = T.unsafe(nil)); end
1194
1194
  end
1195
1195
 
1196
- # source://i18n//lib/i18n.rb#54
1196
+ # source://i18n//lib/i18n.rb#55
1197
1197
  module I18n::Base
1198
- # source://i18n//lib/i18n.rb#69
1198
+ # source://i18n//lib/i18n.rb#70
1199
1199
  def available_locales; end
1200
1200
 
1201
- # source://i18n//lib/i18n.rb#73
1201
+ # source://i18n//lib/i18n.rb#74
1202
1202
  def available_locales=(value); end
1203
1203
 
1204
1204
  # @return [Boolean]
1205
1205
  #
1206
- # source://i18n//lib/i18n.rb#384
1206
+ # source://i18n//lib/i18n.rb#386
1207
1207
  def available_locales_initialized?; end
1208
1208
 
1209
- # source://i18n//lib/i18n.rb#69
1209
+ # source://i18n//lib/i18n.rb#70
1210
1210
  def backend; end
1211
1211
 
1212
- # source://i18n//lib/i18n.rb#73
1212
+ # source://i18n//lib/i18n.rb#74
1213
1213
  def backend=(value); end
1214
1214
 
1215
1215
  # Gets I18n configuration object.
1216
1216
  #
1217
- # source://i18n//lib/i18n.rb#56
1217
+ # source://i18n//lib/i18n.rb#57
1218
1218
  def config; end
1219
1219
 
1220
1220
  # Sets I18n configuration object.
1221
1221
  #
1222
- # source://i18n//lib/i18n.rb#61
1222
+ # source://i18n//lib/i18n.rb#62
1223
1223
  def config=(value); end
1224
1224
 
1225
- # source://i18n//lib/i18n.rb#69
1225
+ # source://i18n//lib/i18n.rb#70
1226
1226
  def default_locale; end
1227
1227
 
1228
- # source://i18n//lib/i18n.rb#73
1228
+ # source://i18n//lib/i18n.rb#74
1229
1229
  def default_locale=(value); end
1230
1230
 
1231
- # source://i18n//lib/i18n.rb#69
1231
+ # source://i18n//lib/i18n.rb#70
1232
1232
  def default_separator; end
1233
1233
 
1234
- # source://i18n//lib/i18n.rb#73
1234
+ # source://i18n//lib/i18n.rb#74
1235
1235
  def default_separator=(value); end
1236
1236
 
1237
1237
  # Tells the backend to load translations now. Used in situations like the
1238
1238
  # Rails production environment. Backends can implement whatever strategy
1239
1239
  # is useful.
1240
1240
  #
1241
- # source://i18n//lib/i18n.rb#90
1241
+ # source://i18n//lib/i18n.rb#91
1242
1242
  def eager_load!; end
1243
1243
 
1244
- # source://i18n//lib/i18n.rb#69
1244
+ # source://i18n//lib/i18n.rb#70
1245
1245
  def enforce_available_locales; end
1246
1246
 
1247
1247
  # Raises an InvalidLocale exception when the passed locale is not available.
1248
1248
  #
1249
- # source://i18n//lib/i18n.rb#378
1249
+ # source://i18n//lib/i18n.rb#380
1250
1250
  def enforce_available_locales!(locale); end
1251
1251
 
1252
- # source://i18n//lib/i18n.rb#73
1252
+ # source://i18n//lib/i18n.rb#74
1253
1253
  def enforce_available_locales=(value); end
1254
1254
 
1255
- # source://i18n//lib/i18n.rb#69
1255
+ # source://i18n//lib/i18n.rb#70
1256
1256
  def exception_handler; end
1257
1257
 
1258
- # source://i18n//lib/i18n.rb#73
1258
+ # source://i18n//lib/i18n.rb#74
1259
1259
  def exception_handler=(value); end
1260
1260
 
1261
1261
  # Returns true if a translation exists for a given key, otherwise returns false.
@@ -1263,7 +1263,7 @@ module I18n::Base
1263
1263
  # @raise [Disabled]
1264
1264
  # @return [Boolean]
1265
1265
  #
1266
- # source://i18n//lib/i18n.rb#264
1266
+ # source://i18n//lib/i18n.rb#265
1267
1267
  def exists?(key, _locale = T.unsafe(nil), locale: T.unsafe(nil), **options); end
1268
1268
 
1269
1269
  # Returns an array of interpolation keys for the given translation key
@@ -1288,26 +1288,26 @@ module I18n::Base
1288
1288
  #
1289
1289
  # @raise [I18n::ArgumentError]
1290
1290
  #
1291
- # source://i18n//lib/i18n.rb#253
1291
+ # source://i18n//lib/i18n.rb#254
1292
1292
  def interpolation_keys(key, **options); end
1293
1293
 
1294
1294
  # Localizes certain objects, such as dates and numbers to local formatting.
1295
1295
  #
1296
1296
  # @raise [Disabled]
1297
1297
  #
1298
- # source://i18n//lib/i18n.rb#333
1298
+ # source://i18n//lib/i18n.rb#335
1299
1299
  def l(object, locale: T.unsafe(nil), format: T.unsafe(nil), **options); end
1300
1300
 
1301
- # source://i18n//lib/i18n.rb#69
1301
+ # source://i18n//lib/i18n.rb#70
1302
1302
  def load_path; end
1303
1303
 
1304
- # source://i18n//lib/i18n.rb#73
1304
+ # source://i18n//lib/i18n.rb#74
1305
1305
  def load_path=(value); end
1306
1306
 
1307
- # source://i18n//lib/i18n.rb#69
1307
+ # source://i18n//lib/i18n.rb#70
1308
1308
  def locale; end
1309
1309
 
1310
- # source://i18n//lib/i18n.rb#73
1310
+ # source://i18n//lib/i18n.rb#74
1311
1311
  def locale=(value); end
1312
1312
 
1313
1313
  # Returns true when the passed locale, which can be either a String or a
@@ -1315,28 +1315,28 @@ module I18n::Base
1315
1315
  #
1316
1316
  # @return [Boolean]
1317
1317
  #
1318
- # source://i18n//lib/i18n.rb#373
1318
+ # source://i18n//lib/i18n.rb#375
1319
1319
  def locale_available?(locale); end
1320
1320
 
1321
1321
  # Localizes certain objects, such as dates and numbers to local formatting.
1322
1322
  #
1323
1323
  # @raise [Disabled]
1324
1324
  #
1325
- # source://i18n//lib/i18n.rb#333
1325
+ # source://i18n//lib/i18n.rb#335
1326
1326
  def localize(object, locale: T.unsafe(nil), format: T.unsafe(nil), **options); end
1327
1327
 
1328
1328
  # Merges the given locale, key and scope into a single array of keys.
1329
1329
  # Splits keys that contain dots into multiple keys. Makes sure all
1330
1330
  # keys are Symbols.
1331
1331
  #
1332
- # source://i18n//lib/i18n.rb#361
1332
+ # source://i18n//lib/i18n.rb#363
1333
1333
  def normalize_keys(locale, key, scope, separator = T.unsafe(nil)); end
1334
1334
 
1335
1335
  # Tells the backend to reload translations. Used in situations like the
1336
1336
  # Rails development environment. Backends can implement whatever strategy
1337
1337
  # is useful.
1338
1338
  #
1339
- # source://i18n//lib/i18n.rb#82
1339
+ # source://i18n//lib/i18n.rb#83
1340
1340
  def reload!; end
1341
1341
 
1342
1342
  # Translates, pluralizes and interpolates a given key using a given locale,
@@ -1409,7 +1409,7 @@ module I18n::Base
1409
1409
  # or <tt>default</tt> if no translations for <tt>:foo</tt> and <tt>:bar</tt> were found.
1410
1410
  # I18n.t :foo, :default => [:bar, 'default']
1411
1411
  #
1412
- # *BULK LOOKUP*
1412
+ # <b>BULK LOOKUP</b>
1413
1413
  #
1414
1414
  # This returns an array with the translations for <tt>:foo</tt> and <tt>:bar</tt>.
1415
1415
  # I18n.t [:foo, :bar]
@@ -1428,7 +1428,7 @@ module I18n::Base
1428
1428
  # E.g. assuming the key <tt>:salutation</tt> resolves to:
1429
1429
  # lambda { |key, options| options[:gender] == 'm' ? "Mr. #{options[:name]}" : "Mrs. #{options[:name]}" }
1430
1430
  #
1431
- # Then <tt>I18n.t(:salutation, :gender => 'w', :name => 'Smith') will result in "Mrs. Smith".
1431
+ # Then <tt>I18n.t(:salutation, :gender => 'w', :name => 'Smith')</tt> will result in "Mrs. Smith".
1432
1432
  #
1433
1433
  # Note that the string returned by lambda will go through string interpolation too,
1434
1434
  # so the following lambda would give the same result:
@@ -1440,7 +1440,7 @@ module I18n::Base
1440
1440
  # always return the same translations/values per unique combination of argument
1441
1441
  # values.
1442
1442
  #
1443
- # *Ruby 2.7+ keyword arguments warning*
1443
+ # <b>Ruby 2.7+ keyword arguments warning</b>
1444
1444
  #
1445
1445
  # This method uses keyword arguments.
1446
1446
  # There is a breaking change in ruby that produces warning with ruby 2.7 and won't work as expected with ruby 3.0
@@ -1457,13 +1457,13 @@ module I18n::Base
1457
1457
  #
1458
1458
  # @raise [Disabled]
1459
1459
  #
1460
- # source://i18n//lib/i18n.rb#210
1460
+ # source://i18n//lib/i18n.rb#211
1461
1461
  def t(key = T.unsafe(nil), throw: T.unsafe(nil), raise: T.unsafe(nil), locale: T.unsafe(nil), **options); end
1462
1462
 
1463
1463
  # Wrapper for <tt>translate</tt> that adds <tt>:raise => true</tt>. With
1464
1464
  # this option, if no translation is found, it will raise <tt>I18n::MissingTranslationData</tt>
1465
1465
  #
1466
- # source://i18n//lib/i18n.rb#229
1466
+ # source://i18n//lib/i18n.rb#230
1467
1467
  def t!(key, **options); end
1468
1468
 
1469
1469
  # Translates, pluralizes and interpolates a given key using a given locale,
@@ -1536,7 +1536,7 @@ module I18n::Base
1536
1536
  # or <tt>default</tt> if no translations for <tt>:foo</tt> and <tt>:bar</tt> were found.
1537
1537
  # I18n.t :foo, :default => [:bar, 'default']
1538
1538
  #
1539
- # *BULK LOOKUP*
1539
+ # <b>BULK LOOKUP</b>
1540
1540
  #
1541
1541
  # This returns an array with the translations for <tt>:foo</tt> and <tt>:bar</tt>.
1542
1542
  # I18n.t [:foo, :bar]
@@ -1555,7 +1555,7 @@ module I18n::Base
1555
1555
  # E.g. assuming the key <tt>:salutation</tt> resolves to:
1556
1556
  # lambda { |key, options| options[:gender] == 'm' ? "Mr. #{options[:name]}" : "Mrs. #{options[:name]}" }
1557
1557
  #
1558
- # Then <tt>I18n.t(:salutation, :gender => 'w', :name => 'Smith') will result in "Mrs. Smith".
1558
+ # Then <tt>I18n.t(:salutation, :gender => 'w', :name => 'Smith')</tt> will result in "Mrs. Smith".
1559
1559
  #
1560
1560
  # Note that the string returned by lambda will go through string interpolation too,
1561
1561
  # so the following lambda would give the same result:
@@ -1567,7 +1567,7 @@ module I18n::Base
1567
1567
  # always return the same translations/values per unique combination of argument
1568
1568
  # values.
1569
1569
  #
1570
- # *Ruby 2.7+ keyword arguments warning*
1570
+ # <b>Ruby 2.7+ keyword arguments warning</b>
1571
1571
  #
1572
1572
  # This method uses keyword arguments.
1573
1573
  # There is a breaking change in ruby that produces warning with ruby 2.7 and won't work as expected with ruby 3.0
@@ -1584,13 +1584,13 @@ module I18n::Base
1584
1584
  #
1585
1585
  # @raise [Disabled]
1586
1586
  #
1587
- # source://i18n//lib/i18n.rb#210
1587
+ # source://i18n//lib/i18n.rb#211
1588
1588
  def translate(key = T.unsafe(nil), throw: T.unsafe(nil), raise: T.unsafe(nil), locale: T.unsafe(nil), **options); end
1589
1589
 
1590
1590
  # Wrapper for <tt>translate</tt> that adds <tt>:raise => true</tt>. With
1591
1591
  # this option, if no translation is found, it will raise <tt>I18n::MissingTranslationData</tt>
1592
1592
  #
1593
- # source://i18n//lib/i18n.rb#229
1593
+ # source://i18n//lib/i18n.rb#230
1594
1594
  def translate!(key, **options); end
1595
1595
 
1596
1596
  # Transliterates UTF-8 characters to ASCII. By default this method will
@@ -1645,12 +1645,12 @@ module I18n::Base
1645
1645
  # I18n.transliterate("Jürgen", :locale => :en) # => "Jurgen"
1646
1646
  # I18n.transliterate("Jürgen", :locale => :de) # => "Juergen"
1647
1647
  #
1648
- # source://i18n//lib/i18n.rb#322
1648
+ # source://i18n//lib/i18n.rb#324
1649
1649
  def transliterate(key, throw: T.unsafe(nil), raise: T.unsafe(nil), locale: T.unsafe(nil), replacement: T.unsafe(nil), **options); end
1650
1650
 
1651
1651
  # Executes block with given I18n.locale set.
1652
1652
  #
1653
- # source://i18n//lib/i18n.rb#344
1653
+ # source://i18n//lib/i18n.rb#346
1654
1654
  def with_locale(tmp_locale = T.unsafe(nil)); end
1655
1655
 
1656
1656
  private
@@ -1674,16 +1674,16 @@ module I18n::Base
1674
1674
  # I18n.exception_handler = I18nExceptionHandler.new # an object
1675
1675
  # I18n.exception_handler.call(exception, locale, key, options) # will be called like this
1676
1676
  #
1677
- # source://i18n//lib/i18n.rb#420
1677
+ # source://i18n//lib/i18n.rb#422
1678
1678
  def handle_exception(handling, exception, locale, key, options); end
1679
1679
 
1680
- # source://i18n//lib/i18n.rb#462
1680
+ # source://i18n//lib/i18n.rb#464
1681
1681
  def interpolation_keys_from_translation(translation); end
1682
1682
 
1683
- # source://i18n//lib/i18n.rb#438
1683
+ # source://i18n//lib/i18n.rb#440
1684
1684
  def normalize_key(key, separator); end
1685
1685
 
1686
- # source://i18n//lib/i18n.rb#390
1686
+ # source://i18n//lib/i18n.rb#392
1687
1687
  def translate_key(key, throw, raise, locale, backend, options); end
1688
1688
  end
1689
1689
 
@@ -1845,7 +1845,7 @@ class I18n::Disabled < ::I18n::ArgumentError
1845
1845
  def initialize(method); end
1846
1846
  end
1847
1847
 
1848
- # source://i18n//lib/i18n.rb#35
1848
+ # source://i18n//lib/i18n.rb#36
1849
1849
  I18n::EMPTY_HASH = T.let(T.unsafe(nil), Hash)
1850
1850
 
1851
1851
  # source://i18n//lib/i18n/exceptions.rb#6