lunchmoney 1.1.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/FUNDING.yml +1 -0
- data/.mdlrc +1 -0
- data/Gemfile.lock +36 -37
- data/README.md +2 -0
- data/lib/lunchmoney/objects/crypto.rb +6 -1
- data/lib/lunchmoney/version.rb +1 -1
- data/sorbet/rbi/annotations/activesupport.rbi +11 -0
- data/sorbet/rbi/gems/{activesupport@7.1.3.rbi → activesupport@7.1.3.2.rbi} +23 -23
- data/sorbet/rbi/gems/dotenv@3.1.0.rbi +300 -0
- data/sorbet/rbi/gems/{i18n@1.14.1.rbi → i18n@1.14.4.rbi} +48 -43
- data/sorbet/rbi/gems/{minitest@5.22.2.rbi → minitest@5.22.3.rbi} +19 -18
- data/sorbet/rbi/gems/{prism@0.19.0.rbi → prism@0.24.0.rbi} +8266 -7109
- data/sorbet/rbi/gems/{rack@3.0.8.rbi → rack@3.0.10.rbi} +83 -83
- data/sorbet/rbi/gems/{rbi@0.1.6.rbi → rbi@0.1.9.rbi} +114 -13
- data/sorbet/rbi/gems/{rubocop-ast@1.30.0.rbi → rubocop-ast@1.31.2.rbi} +61 -50
- data/sorbet/rbi/gems/{rubocop-minitest@0.34.5.rbi → rubocop-minitest@0.35.0.rbi} +34 -0
- data/sorbet/rbi/gems/{rubocop-rails@2.23.1.rbi → rubocop-rails@2.24.1.rbi} +159 -147
- data/sorbet/rbi/gems/{rubocop-sorbet@0.7.7.rbi → rubocop-sorbet@0.8.0.rbi} +24 -42
- data/sorbet/rbi/gems/{rubocop@1.60.2.rbi → rubocop@1.62.1.rbi} +807 -646
- data/sorbet/rbi/gems/{tapioca@0.12.0.rbi → tapioca@0.13.1.rbi} +83 -62
- data/sorbet/rbi/gems/{thor@1.3.0.rbi → thor@1.3.1.rbi} +89 -50
- data/sorbet/rbi/gems/{webmock@3.20.0.rbi → webmock@3.23.0.rbi} +25 -25
- data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.36.rbi} +194 -58
- data/sorbet/tapioca/require.rb +1 -0
- metadata +22 -21
- data/sorbet/rbi/gems/dotenv@2.8.1.rbi +0 -234
- /data/sorbet/rbi/gems/{bigdecimal@3.1.6.rbi → bigdecimal@3.1.7.rbi} +0 -0
- /data/sorbet/rbi/gems/{drb@2.2.0.rbi → drb@2.2.1.rbi} +0 -0
- /data/sorbet/rbi/gems/{rubocop-shopify@2.14.0.rbi → rubocop-shopify@2.15.1.rbi} +0 -0
@@ -0,0 +1,300 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `dotenv` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem dotenv`.
|
6
|
+
|
7
|
+
# Shim to load environment variables from `.env files into `ENV`.
|
8
|
+
#
|
9
|
+
# source://dotenv//lib/dotenv/substitutions/variable.rb#3
|
10
|
+
module Dotenv
|
11
|
+
extend ::Dotenv
|
12
|
+
|
13
|
+
# Returns the value of attribute instrumenter.
|
14
|
+
#
|
15
|
+
# source://dotenv//lib/dotenv.rb#14
|
16
|
+
def instrumenter; end
|
17
|
+
|
18
|
+
# Sets the attribute instrumenter
|
19
|
+
#
|
20
|
+
# @param value the value to set the attribute instrumenter to.
|
21
|
+
#
|
22
|
+
# source://dotenv//lib/dotenv.rb#14
|
23
|
+
def instrumenter=(_arg0); end
|
24
|
+
|
25
|
+
# Loads environment variables from one or more `.env` files. See `#parse` for more details.
|
26
|
+
#
|
27
|
+
# source://dotenv//lib/dotenv.rb#17
|
28
|
+
def load(*filenames, overwrite: T.unsafe(nil), ignore: T.unsafe(nil)); end
|
29
|
+
|
30
|
+
# Same as `#load`, but raises Errno::ENOENT if any files don't exist
|
31
|
+
#
|
32
|
+
# source://dotenv//lib/dotenv.rb#26
|
33
|
+
def load!(*filenames); end
|
34
|
+
|
35
|
+
# Modify `ENV` for the block and restore it to its previous state afterwards.
|
36
|
+
#
|
37
|
+
# Note that the block is synchronized to prevent concurrent modifications to `ENV`,
|
38
|
+
# so multiple threads will be executed serially.
|
39
|
+
#
|
40
|
+
# @param env [Hash] Hash of keys and values to set in `ENV`
|
41
|
+
#
|
42
|
+
# source://dotenv//lib/dotenv.rb#112
|
43
|
+
def modify(env = T.unsafe(nil), &block); end
|
44
|
+
|
45
|
+
# same as `#load`, but will overwrite existing values in `ENV`
|
46
|
+
#
|
47
|
+
# source://dotenv//lib/dotenv.rb#31
|
48
|
+
def overload(*filenames); end
|
49
|
+
|
50
|
+
# same as `#overwrite`, but raises Errno::ENOENT if any files don't exist
|
51
|
+
#
|
52
|
+
# source://dotenv//lib/dotenv.rb#37
|
53
|
+
def overload!(*filenames); end
|
54
|
+
|
55
|
+
# same as `#load`, but will overwrite existing values in `ENV`
|
56
|
+
#
|
57
|
+
# source://dotenv//lib/dotenv.rb#31
|
58
|
+
def overwrite(*filenames); end
|
59
|
+
|
60
|
+
# same as `#overwrite`, but raises Errno::ENOENT if any files don't exist
|
61
|
+
#
|
62
|
+
# source://dotenv//lib/dotenv.rb#37
|
63
|
+
def overwrite!(*filenames); end
|
64
|
+
|
65
|
+
# Parses the given files, yielding for each file if a block is given.
|
66
|
+
#
|
67
|
+
# @param filenames [String, Array<String>] Files to parse
|
68
|
+
# @param overwrite [Boolean] Overwrite existing `ENV` values
|
69
|
+
# @param ignore [Boolean] Ignore non-existent files
|
70
|
+
# @param block [Proc] Block to yield for each parsed `Dotenv::Environment`
|
71
|
+
# @return [Hash] parsed key/value pairs
|
72
|
+
#
|
73
|
+
# source://dotenv//lib/dotenv.rb#49
|
74
|
+
def parse(*filenames, overwrite: T.unsafe(nil), ignore: T.unsafe(nil), &block); end
|
75
|
+
|
76
|
+
# @raise [MissingKeys]
|
77
|
+
#
|
78
|
+
# source://dotenv//lib/dotenv.rb#122
|
79
|
+
def require_keys(*keys); end
|
80
|
+
|
81
|
+
# Restore `ENV` to a given state
|
82
|
+
#
|
83
|
+
# @param env [Hash] Hash of keys and values to restore, defaults to the last saved state
|
84
|
+
# @param safe [Boolean] Is it safe to modify `ENV`? Defaults to `true` in the main thread, otherwise raises an error.
|
85
|
+
#
|
86
|
+
# source://dotenv//lib/dotenv.rb#76
|
87
|
+
def restore(env = T.unsafe(nil), safe: T.unsafe(nil)); end
|
88
|
+
|
89
|
+
# Save the current `ENV` to be restored later
|
90
|
+
#
|
91
|
+
# source://dotenv//lib/dotenv.rb#66
|
92
|
+
def save; end
|
93
|
+
|
94
|
+
# Update `ENV` with the given hash of keys and values
|
95
|
+
#
|
96
|
+
# @param env [Hash] Hash of keys and values to set in `ENV`
|
97
|
+
# @param overwrite [Boolean] Overwrite existing `ENV` values
|
98
|
+
#
|
99
|
+
# source://dotenv//lib/dotenv.rb#94
|
100
|
+
def update(env = T.unsafe(nil), overwrite: T.unsafe(nil)); end
|
101
|
+
|
102
|
+
private
|
103
|
+
|
104
|
+
# source://dotenv//lib/dotenv.rb#130
|
105
|
+
def instrument(name, payload = T.unsafe(nil), &block); end
|
106
|
+
end
|
107
|
+
|
108
|
+
# A diff between multiple states of ENV.
|
109
|
+
#
|
110
|
+
# source://dotenv//lib/dotenv/diff.rb#3
|
111
|
+
class Dotenv::Diff
|
112
|
+
# Create a new diff. If given a block, the state of ENV after the block will be preserved as
|
113
|
+
# the final state for comparison. Otherwise, the current ENV will be the final state.
|
114
|
+
#
|
115
|
+
# @param a [Hash] the initial state, defaults to a snapshot of current ENV
|
116
|
+
# @param b [Hash] the final state, defaults to the current ENV
|
117
|
+
# @return [Diff] a new instance of Diff
|
118
|
+
# @yield [diff] a block to execute before recording the final state
|
119
|
+
#
|
120
|
+
# source://dotenv//lib/dotenv/diff.rb#16
|
121
|
+
def initialize(a: T.unsafe(nil), b: T.unsafe(nil), &block); end
|
122
|
+
|
123
|
+
# The initial state
|
124
|
+
#
|
125
|
+
# source://dotenv//lib/dotenv/diff.rb#5
|
126
|
+
def a; end
|
127
|
+
|
128
|
+
# Return a Hash of keys added with their new values
|
129
|
+
#
|
130
|
+
# source://dotenv//lib/dotenv/diff.rb#24
|
131
|
+
def added; end
|
132
|
+
|
133
|
+
# Returns true if any keys were added, removed, or changed
|
134
|
+
#
|
135
|
+
# @return [Boolean]
|
136
|
+
#
|
137
|
+
# source://dotenv//lib/dotenv/diff.rb#46
|
138
|
+
def any?; end
|
139
|
+
|
140
|
+
# The final or current state
|
141
|
+
#
|
142
|
+
# source://dotenv//lib/dotenv/diff.rb#8
|
143
|
+
def b; end
|
144
|
+
|
145
|
+
# Returns of Hash of keys changed with an array of their previous and new values
|
146
|
+
#
|
147
|
+
# source://dotenv//lib/dotenv/diff.rb#34
|
148
|
+
def changed; end
|
149
|
+
|
150
|
+
# Returns a Hash of all added, changed, and removed keys and their new values
|
151
|
+
#
|
152
|
+
# source://dotenv//lib/dotenv/diff.rb#41
|
153
|
+
def env; end
|
154
|
+
|
155
|
+
# Returns a Hash of keys removed with their previous values
|
156
|
+
#
|
157
|
+
# source://dotenv//lib/dotenv/diff.rb#29
|
158
|
+
def removed; end
|
159
|
+
|
160
|
+
private
|
161
|
+
|
162
|
+
# source://dotenv//lib/dotenv/diff.rb#52
|
163
|
+
def snapshot; end
|
164
|
+
end
|
165
|
+
|
166
|
+
# A `.env` file that will be read and parsed into a Hash
|
167
|
+
#
|
168
|
+
# source://dotenv//lib/dotenv/environment.rb#3
|
169
|
+
class Dotenv::Environment < ::Hash
|
170
|
+
# Create a new Environment
|
171
|
+
#
|
172
|
+
# @param filename [String] the path to the file to read
|
173
|
+
# @param overwrite [Boolean] whether the parser should assume existing values will be overwritten
|
174
|
+
# @return [Environment] a new instance of Environment
|
175
|
+
#
|
176
|
+
# source://dotenv//lib/dotenv/environment.rb#10
|
177
|
+
def initialize(filename, overwrite: T.unsafe(nil)); end
|
178
|
+
|
179
|
+
# Returns the value of attribute filename.
|
180
|
+
#
|
181
|
+
# source://dotenv//lib/dotenv/environment.rb#4
|
182
|
+
def filename; end
|
183
|
+
|
184
|
+
# source://dotenv//lib/dotenv/environment.rb#17
|
185
|
+
def load; end
|
186
|
+
|
187
|
+
# Returns the value of attribute overwrite.
|
188
|
+
#
|
189
|
+
# source://dotenv//lib/dotenv/environment.rb#4
|
190
|
+
def overwrite; end
|
191
|
+
|
192
|
+
# source://dotenv//lib/dotenv/environment.rb#21
|
193
|
+
def read; end
|
194
|
+
end
|
195
|
+
|
196
|
+
# source://dotenv//lib/dotenv/missing_keys.rb#2
|
197
|
+
class Dotenv::Error < ::StandardError; end
|
198
|
+
|
199
|
+
# Error raised when encountering a syntax error while parsing a .env file.
|
200
|
+
#
|
201
|
+
# source://dotenv//lib/dotenv/parser.rb#6
|
202
|
+
class Dotenv::FormatError < ::SyntaxError; end
|
203
|
+
|
204
|
+
# source://dotenv//lib/dotenv/missing_keys.rb#4
|
205
|
+
class Dotenv::MissingKeys < ::Dotenv::Error
|
206
|
+
# @return [MissingKeys] a new instance of MissingKeys
|
207
|
+
#
|
208
|
+
# source://dotenv//lib/dotenv/missing_keys.rb#5
|
209
|
+
def initialize(keys); end
|
210
|
+
end
|
211
|
+
|
212
|
+
# Parses the `.env` file format into key/value pairs.
|
213
|
+
# It allows for variable substitutions, command substitutions, and exporting of variables.
|
214
|
+
#
|
215
|
+
# source://dotenv//lib/dotenv/parser.rb#10
|
216
|
+
class Dotenv::Parser
|
217
|
+
# @return [Parser] a new instance of Parser
|
218
|
+
#
|
219
|
+
# source://dotenv//lib/dotenv/parser.rb#40
|
220
|
+
def initialize(string, overwrite: T.unsafe(nil)); end
|
221
|
+
|
222
|
+
# source://dotenv//lib/dotenv/parser.rb#46
|
223
|
+
def call; end
|
224
|
+
|
225
|
+
private
|
226
|
+
|
227
|
+
# source://dotenv//lib/dotenv/parser.rb#82
|
228
|
+
def expand_newlines(value); end
|
229
|
+
|
230
|
+
# source://dotenv//lib/dotenv/parser.rb#62
|
231
|
+
def parse_line(line); end
|
232
|
+
|
233
|
+
# source://dotenv//lib/dotenv/parser.rb#70
|
234
|
+
def parse_value(value); end
|
235
|
+
|
236
|
+
# source://dotenv//lib/dotenv/parser.rb#104
|
237
|
+
def perform_substitutions(value, maybe_quote); end
|
238
|
+
|
239
|
+
# source://dotenv//lib/dotenv/parser.rb#78
|
240
|
+
def unescape_characters(value); end
|
241
|
+
|
242
|
+
# source://dotenv//lib/dotenv/parser.rb#94
|
243
|
+
def unescape_value(value, maybe_quote); end
|
244
|
+
|
245
|
+
# @return [Boolean]
|
246
|
+
#
|
247
|
+
# source://dotenv//lib/dotenv/parser.rb#90
|
248
|
+
def variable_not_set?(line); end
|
249
|
+
|
250
|
+
class << self
|
251
|
+
# source://dotenv//lib/dotenv/parser.rb#35
|
252
|
+
def call(*_arg0, **_arg1, &_arg2); end
|
253
|
+
|
254
|
+
# Returns the value of attribute substitutions.
|
255
|
+
#
|
256
|
+
# source://dotenv//lib/dotenv/parser.rb#33
|
257
|
+
def substitutions; end
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
261
|
+
# source://dotenv//lib/dotenv/parser.rb#14
|
262
|
+
Dotenv::Parser::LINE = T.let(T.unsafe(nil), Regexp)
|
263
|
+
|
264
|
+
# An internal monitor to synchronize access to ENV in multi-threaded environments.
|
265
|
+
#
|
266
|
+
# source://dotenv//lib/dotenv.rb#11
|
267
|
+
Dotenv::SEMAPHORE = T.let(T.unsafe(nil), Monitor)
|
268
|
+
|
269
|
+
# source://dotenv//lib/dotenv/substitutions/variable.rb#4
|
270
|
+
module Dotenv::Substitutions; end
|
271
|
+
|
272
|
+
# Substitute shell commands in a value.
|
273
|
+
#
|
274
|
+
# SHA=$(git rev-parse HEAD)
|
275
|
+
#
|
276
|
+
# source://dotenv//lib/dotenv/substitutions/command.rb#9
|
277
|
+
module Dotenv::Substitutions::Command
|
278
|
+
class << self
|
279
|
+
# source://dotenv//lib/dotenv/substitutions/command.rb#23
|
280
|
+
def call(value, _env, overwrite: T.unsafe(nil)); end
|
281
|
+
end
|
282
|
+
end
|
283
|
+
|
284
|
+
# Substitute variables in a value.
|
285
|
+
#
|
286
|
+
# HOST=example.com
|
287
|
+
# URL="https://$HOST"
|
288
|
+
#
|
289
|
+
# source://dotenv//lib/dotenv/substitutions/variable.rb#10
|
290
|
+
module Dotenv::Substitutions::Variable
|
291
|
+
class << self
|
292
|
+
# source://dotenv//lib/dotenv/substitutions/variable.rb#21
|
293
|
+
def call(value, env, overwrite: T.unsafe(nil)); end
|
294
|
+
|
295
|
+
private
|
296
|
+
|
297
|
+
# source://dotenv//lib/dotenv/substitutions/variable.rb#31
|
298
|
+
def substitute(match, variable, env); end
|
299
|
+
end
|
300
|
+
end
|
@@ -123,15 +123,15 @@ module I18n::Backend::Base
|
|
123
123
|
#
|
124
124
|
# @raise [NotImplementedError]
|
125
125
|
#
|
126
|
-
# source://i18n//lib/i18n/backend/base.rb#
|
126
|
+
# source://i18n//lib/i18n/backend/base.rb#96
|
127
127
|
def available_locales; end
|
128
128
|
|
129
|
-
# source://i18n//lib/i18n/backend/base.rb#
|
129
|
+
# source://i18n//lib/i18n/backend/base.rb#104
|
130
130
|
def eager_load!; end
|
131
131
|
|
132
132
|
# @return [Boolean]
|
133
133
|
#
|
134
|
-
# source://i18n//lib/i18n/backend/base.rb#
|
134
|
+
# source://i18n//lib/i18n/backend/base.rb#70
|
135
135
|
def exists?(locale, key, options = T.unsafe(nil)); end
|
136
136
|
|
137
137
|
# Accepts a list of paths to translation files. Loads translations from
|
@@ -147,10 +147,10 @@ module I18n::Backend::Base
|
|
147
147
|
#
|
148
148
|
# @raise [ArgumentError]
|
149
149
|
#
|
150
|
-
# source://i18n//lib/i18n/backend/base.rb#
|
150
|
+
# source://i18n//lib/i18n/backend/base.rb#77
|
151
151
|
def localize(locale, object, format = T.unsafe(nil), options = T.unsafe(nil)); end
|
152
152
|
|
153
|
-
# source://i18n//lib/i18n/backend/base.rb#
|
153
|
+
# source://i18n//lib/i18n/backend/base.rb#100
|
154
154
|
def reload!; end
|
155
155
|
|
156
156
|
# This method receives a locale, a data hash and options for storing translations.
|
@@ -174,7 +174,7 @@ module I18n::Backend::Base
|
|
174
174
|
# ann: 'good', john: 'big'
|
175
175
|
# #=> { people: { ann: "Ann is good", john: "John is big" } }
|
176
176
|
#
|
177
|
-
# source://i18n//lib/i18n/backend/base.rb#
|
177
|
+
# source://i18n//lib/i18n/backend/base.rb#209
|
178
178
|
def deep_interpolate(locale, data, values = T.unsafe(nil)); end
|
179
179
|
|
180
180
|
# Evaluates defaults.
|
@@ -182,12 +182,12 @@ module I18n::Backend::Base
|
|
182
182
|
# first translation that can be resolved. Otherwise it tries to resolve
|
183
183
|
# the translation directly.
|
184
184
|
#
|
185
|
-
# source://i18n//lib/i18n/backend/base.rb#
|
185
|
+
# source://i18n//lib/i18n/backend/base.rb#127
|
186
186
|
def default(locale, object, subject, options = T.unsafe(nil)); end
|
187
187
|
|
188
188
|
# @return [Boolean]
|
189
189
|
#
|
190
|
-
# source://i18n//lib/i18n/backend/base.rb#
|
190
|
+
# source://i18n//lib/i18n/backend/base.rb#110
|
191
191
|
def eager_loaded?; end
|
192
192
|
|
193
193
|
# Interpolates values into a given subject.
|
@@ -201,7 +201,7 @@ module I18n::Backend::Base
|
|
201
201
|
# method interpolates ["yes, %{user}", ["maybe no, %{user}, "no, %{user}"]], :user => "bartuz"
|
202
202
|
# # => "["yes, bartuz",["maybe no, bartuz", "no, bartuz"]]"
|
203
203
|
#
|
204
|
-
# source://i18n//lib/i18n/backend/base.rb#
|
204
|
+
# source://i18n//lib/i18n/backend/base.rb#193
|
205
205
|
def interpolate(locale, subject, values = T.unsafe(nil)); end
|
206
206
|
|
207
207
|
# Loads a single translations file by delegating to #load_rb or
|
@@ -211,41 +211,41 @@ module I18n::Backend::Base
|
|
211
211
|
#
|
212
212
|
# @raise [UnknownFileType]
|
213
213
|
#
|
214
|
-
# source://i18n//lib/i18n/backend/base.rb#
|
214
|
+
# source://i18n//lib/i18n/backend/base.rb#232
|
215
215
|
def load_file(filename); end
|
216
216
|
|
217
217
|
# Loads a JSON translations file. The data must have locales as
|
218
218
|
# toplevel keys.
|
219
219
|
#
|
220
|
-
# source://i18n//lib/i18n/backend/base.rb#
|
220
|
+
# source://i18n//lib/i18n/backend/base.rb#268
|
221
221
|
def load_json(filename); end
|
222
222
|
|
223
223
|
# Loads a plain Ruby translations file. eval'ing the file must yield
|
224
224
|
# a Hash containing translation data with locales as toplevel keys.
|
225
225
|
#
|
226
|
-
# source://i18n//lib/i18n/backend/base.rb#
|
226
|
+
# source://i18n//lib/i18n/backend/base.rb#246
|
227
227
|
def load_rb(filename); end
|
228
228
|
|
229
229
|
# Loads a YAML translations file. The data must have locales as
|
230
230
|
# toplevel keys.
|
231
231
|
#
|
232
|
-
# source://i18n//lib/i18n/backend/base.rb#
|
232
|
+
# source://i18n//lib/i18n/backend/base.rb#253
|
233
233
|
def load_yaml(filename); end
|
234
234
|
|
235
235
|
# Loads a YAML translations file. The data must have locales as
|
236
236
|
# toplevel keys.
|
237
237
|
#
|
238
|
-
# source://i18n//lib/i18n/backend/base.rb#
|
238
|
+
# source://i18n//lib/i18n/backend/base.rb#253
|
239
239
|
def load_yml(filename); end
|
240
240
|
|
241
241
|
# The method which actually looks up for the translation in the store.
|
242
242
|
#
|
243
243
|
# @raise [NotImplementedError]
|
244
244
|
#
|
245
|
-
# source://i18n//lib/i18n/backend/base.rb#
|
245
|
+
# source://i18n//lib/i18n/backend/base.rb#115
|
246
246
|
def lookup(locale, key, scope = T.unsafe(nil), options = T.unsafe(nil)); end
|
247
247
|
|
248
|
-
# source://i18n//lib/i18n/backend/base.rb#
|
248
|
+
# source://i18n//lib/i18n/backend/base.rb#300
|
249
249
|
def pluralization_key(entry, count); end
|
250
250
|
|
251
251
|
# Picks a translation from a pluralized mnemonic subkey according to English
|
@@ -259,7 +259,7 @@ module I18n::Backend::Base
|
|
259
259
|
#
|
260
260
|
# @raise [InvalidPluralizationData]
|
261
261
|
#
|
262
|
-
# source://i18n//lib/i18n/backend/base.rb#
|
262
|
+
# source://i18n//lib/i18n/backend/base.rb#174
|
263
263
|
def pluralize(locale, entry, count); end
|
264
264
|
|
265
265
|
# Resolves a translation.
|
@@ -267,7 +267,7 @@ module I18n::Backend::Base
|
|
267
267
|
# given options. If it is a Proc then it will be evaluated. All other
|
268
268
|
# subjects will be returned directly.
|
269
269
|
#
|
270
|
-
# source://i18n//lib/i18n/backend/base.rb#
|
270
|
+
# source://i18n//lib/i18n/backend/base.rb#149
|
271
271
|
def resolve(locale, object, subject, options = T.unsafe(nil)); end
|
272
272
|
|
273
273
|
# Resolves a translation.
|
@@ -275,15 +275,15 @@ module I18n::Backend::Base
|
|
275
275
|
# given options. If it is a Proc then it will be evaluated. All other
|
276
276
|
# subjects will be returned directly.
|
277
277
|
#
|
278
|
-
# source://i18n//lib/i18n/backend/base.rb#
|
278
|
+
# source://i18n//lib/i18n/backend/base.rb#149
|
279
279
|
def resolve_entry(locale, object, subject, options = T.unsafe(nil)); end
|
280
280
|
|
281
281
|
# @return [Boolean]
|
282
282
|
#
|
283
|
-
# source://i18n//lib/i18n/backend/base.rb#
|
283
|
+
# source://i18n//lib/i18n/backend/base.rb#119
|
284
284
|
def subtrees?; end
|
285
285
|
|
286
|
-
# source://i18n//lib/i18n/backend/base.rb#
|
286
|
+
# source://i18n//lib/i18n/backend/base.rb#281
|
287
287
|
def translate_localization_format(locale, object, format, options); end
|
288
288
|
end
|
289
289
|
|
@@ -603,15 +603,15 @@ end
|
|
603
603
|
|
604
604
|
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#20
|
605
605
|
module I18n::Backend::InterpolationCompiler
|
606
|
-
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#
|
606
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#97
|
607
607
|
def interpolate(locale, string, values); end
|
608
608
|
|
609
|
-
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#
|
609
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#107
|
610
610
|
def store_translations(locale, data, options = T.unsafe(nil)); end
|
611
611
|
|
612
612
|
protected
|
613
613
|
|
614
|
-
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#
|
614
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#113
|
615
615
|
def compile_all_strings_in(data); end
|
616
616
|
end
|
617
617
|
|
@@ -619,58 +619,55 @@ end
|
|
619
619
|
module I18n::Backend::InterpolationCompiler::Compiler
|
620
620
|
extend ::I18n::Backend::InterpolationCompiler::Compiler
|
621
621
|
|
622
|
-
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#
|
622
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#26
|
623
623
|
def compile_if_an_interpolation(string); end
|
624
624
|
|
625
625
|
# @return [Boolean]
|
626
626
|
#
|
627
|
-
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#
|
627
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#38
|
628
628
|
def interpolated_str?(str); end
|
629
629
|
|
630
630
|
protected
|
631
631
|
|
632
|
-
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#
|
632
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#58
|
633
633
|
def compile_interpolation_token(key); end
|
634
634
|
|
635
|
-
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#
|
635
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#48
|
636
636
|
def compiled_interpolation_body(str); end
|
637
637
|
|
638
|
-
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#
|
638
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#71
|
639
639
|
def direct_key(key); end
|
640
640
|
|
641
|
-
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#
|
641
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#91
|
642
642
|
def escape_key_sym(key); end
|
643
643
|
|
644
|
-
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#
|
644
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#87
|
645
645
|
def escape_plain_str(str); end
|
646
646
|
|
647
|
-
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#
|
648
|
-
def handle_interpolation_token(
|
647
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#54
|
648
|
+
def handle_interpolation_token(token); end
|
649
649
|
|
650
|
-
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#
|
650
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#67
|
651
651
|
def interpolate_key(key); end
|
652
652
|
|
653
|
-
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#
|
653
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#62
|
654
654
|
def interpolate_or_raise_missing(key); end
|
655
655
|
|
656
|
-
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#
|
656
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#79
|
657
657
|
def missing_key(key); end
|
658
658
|
|
659
|
-
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#
|
659
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#75
|
660
660
|
def nil_key(key); end
|
661
661
|
|
662
|
-
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#
|
662
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#83
|
663
663
|
def reserved_key(key); end
|
664
664
|
|
665
665
|
# tokenize("foo %{bar} baz %%{buz}") # => ["foo ", "%{bar}", " baz ", "%%{buz}"]
|
666
666
|
#
|
667
|
-
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#
|
667
|
+
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#44
|
668
668
|
def tokenize(str); end
|
669
669
|
end
|
670
670
|
|
671
|
-
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#25
|
672
|
-
I18n::Backend::InterpolationCompiler::Compiler::INTERPOLATION_SYNTAX_PATTERN = T.let(T.unsafe(nil), Regexp)
|
673
|
-
|
674
671
|
# source://i18n//lib/i18n/backend/interpolation_compiler.rb#24
|
675
672
|
I18n::Backend::InterpolationCompiler::Compiler::TOKENIZER = T.let(T.unsafe(nil), Regexp)
|
676
673
|
|
@@ -2011,12 +2008,20 @@ class I18n::Locale::Fallbacks < ::Hash
|
|
2011
2008
|
# source://i18n//lib/i18n/locale/fallbacks.rb#55
|
2012
2009
|
def defaults=(defaults); end
|
2013
2010
|
|
2011
|
+
# @return [Boolean]
|
2012
|
+
#
|
2013
|
+
# source://i18n//lib/i18n/locale/fallbacks.rb#82
|
2014
|
+
def empty?; end
|
2015
|
+
|
2016
|
+
# source://i18n//lib/i18n/locale/fallbacks.rb#86
|
2017
|
+
def inspect; end
|
2018
|
+
|
2014
2019
|
# source://i18n//lib/i18n/locale/fallbacks.rb#67
|
2015
2020
|
def map(*args, &block); end
|
2016
2021
|
|
2017
2022
|
protected
|
2018
2023
|
|
2019
|
-
# source://i18n//lib/i18n/locale/fallbacks.rb#
|
2024
|
+
# source://i18n//lib/i18n/locale/fallbacks.rb#92
|
2020
2025
|
def compute(tags, include_defaults = T.unsafe(nil), exclude = T.unsafe(nil)); end
|
2021
2026
|
end
|
2022
2027
|
|
@@ -1967,27 +1967,27 @@ class Minitest::Test < ::Minitest::Runnable
|
|
1967
1967
|
|
1968
1968
|
# LifecycleHooks
|
1969
1969
|
#
|
1970
|
-
# source://minitest//lib/minitest/test.rb#
|
1970
|
+
# source://minitest//lib/minitest/test.rb#191
|
1971
1971
|
def capture_exceptions; end
|
1972
1972
|
|
1973
1973
|
# source://minitest//lib/minitest/test.rb#15
|
1974
1974
|
def class_name; end
|
1975
1975
|
|
1976
|
-
# source://minitest//lib/minitest/test.rb#
|
1976
|
+
# source://minitest//lib/minitest/test.rb#208
|
1977
1977
|
def neuter_exception(e); end
|
1978
1978
|
|
1979
|
-
# source://minitest//lib/minitest/test.rb#
|
1979
|
+
# source://minitest//lib/minitest/test.rb#219
|
1980
1980
|
def new_exception(klass, msg, bt, kill = T.unsafe(nil)); end
|
1981
1981
|
|
1982
1982
|
# Runs a single test with setup/teardown hooks.
|
1983
1983
|
#
|
1984
|
-
# source://minitest//lib/minitest/test.rb#
|
1984
|
+
# source://minitest//lib/minitest/test.rb#87
|
1985
1985
|
def run; end
|
1986
1986
|
|
1987
|
-
# source://minitest//lib/minitest/test.rb#
|
1987
|
+
# source://minitest//lib/minitest/test.rb#201
|
1988
1988
|
def sanitize_exception(e); end
|
1989
1989
|
|
1990
|
-
# source://minitest//lib/minitest/test.rb#
|
1990
|
+
# source://minitest//lib/minitest/test.rb#233
|
1991
1991
|
def with_info_handler(&block); end
|
1992
1992
|
|
1993
1993
|
class << self
|
@@ -2018,18 +2018,19 @@ class Minitest::Test < ::Minitest::Runnable
|
|
2018
2018
|
# source://minitest//lib/minitest/test.rb#48
|
2019
2019
|
def make_my_diffs_pretty!; end
|
2020
2020
|
|
2021
|
-
# Call this at the top of your tests
|
2022
|
-
#
|
2023
|
-
#
|
2021
|
+
# Call this at the top of your tests (inside the +Minitest::Test+
|
2022
|
+
# subclass or +describe+ block) when you want to run your tests in
|
2023
|
+
# parallel. In doing so, you're admitting that you rule and your
|
2024
|
+
# tests are awesome.
|
2024
2025
|
#
|
2025
|
-
# source://minitest//lib/minitest/test.rb#
|
2026
|
+
# source://minitest//lib/minitest/test.rb#60
|
2026
2027
|
def parallelize_me!; end
|
2027
2028
|
|
2028
2029
|
# Returns all instance methods starting with "test_". Based on
|
2029
2030
|
# #test_order, the methods are either sorted, randomized
|
2030
2031
|
# (default), or run in parallel.
|
2031
2032
|
#
|
2032
|
-
# source://minitest//lib/minitest/test.rb#
|
2033
|
+
# source://minitest//lib/minitest/test.rb#70
|
2033
2034
|
def runnable_methods; end
|
2034
2035
|
end
|
2035
2036
|
end
|
@@ -2038,7 +2039,7 @@ end
|
|
2038
2039
|
# meant for library writers, NOT for regular test authors. See
|
2039
2040
|
# #before_setup for an example.
|
2040
2041
|
#
|
2041
|
-
# source://minitest//lib/minitest/test.rb#
|
2042
|
+
# source://minitest//lib/minitest/test.rb#114
|
2042
2043
|
module Minitest::Test::LifecycleHooks
|
2043
2044
|
# Runs before every test, after setup. This hook is meant for
|
2044
2045
|
# libraries to extend minitest. It is not meant to be used by
|
@@ -2046,7 +2047,7 @@ module Minitest::Test::LifecycleHooks
|
|
2046
2047
|
#
|
2047
2048
|
# See #before_setup for an example.
|
2048
2049
|
#
|
2049
|
-
# source://minitest//lib/minitest/test.rb#
|
2050
|
+
# source://minitest//lib/minitest/test.rb#164
|
2050
2051
|
def after_setup; end
|
2051
2052
|
|
2052
2053
|
# Runs after every test, after teardown. This hook is meant for
|
@@ -2055,7 +2056,7 @@ module Minitest::Test::LifecycleHooks
|
|
2055
2056
|
#
|
2056
2057
|
# See #before_setup for an example.
|
2057
2058
|
#
|
2058
|
-
# source://minitest//lib/minitest/test.rb#
|
2059
|
+
# source://minitest//lib/minitest/test.rb#188
|
2059
2060
|
def after_teardown; end
|
2060
2061
|
|
2061
2062
|
# Runs before every test, before setup. This hook is meant for
|
@@ -2090,7 +2091,7 @@ module Minitest::Test::LifecycleHooks
|
|
2090
2091
|
# include MyMinitestPlugin
|
2091
2092
|
# end
|
2092
2093
|
#
|
2093
|
-
# source://minitest//lib/minitest/test.rb#
|
2094
|
+
# source://minitest//lib/minitest/test.rb#149
|
2094
2095
|
def before_setup; end
|
2095
2096
|
|
2096
2097
|
# Runs after every test, before teardown. This hook is meant for
|
@@ -2099,19 +2100,19 @@ module Minitest::Test::LifecycleHooks
|
|
2099
2100
|
#
|
2100
2101
|
# See #before_setup for an example.
|
2101
2102
|
#
|
2102
|
-
# source://minitest//lib/minitest/test.rb#
|
2103
|
+
# source://minitest//lib/minitest/test.rb#173
|
2103
2104
|
def before_teardown; end
|
2104
2105
|
|
2105
2106
|
# Runs before every test. Use this to set up before each test
|
2106
2107
|
# run.
|
2107
2108
|
#
|
2108
|
-
# source://minitest//lib/minitest/test.rb#
|
2109
|
+
# source://minitest//lib/minitest/test.rb#155
|
2109
2110
|
def setup; end
|
2110
2111
|
|
2111
2112
|
# Runs after every test. Use this to clean up after each test
|
2112
2113
|
# run.
|
2113
2114
|
#
|
2114
|
-
# source://minitest//lib/minitest/test.rb#
|
2115
|
+
# source://minitest//lib/minitest/test.rb#179
|
2115
2116
|
def teardown; end
|
2116
2117
|
end
|
2117
2118
|
|