lunchmoney 1.4.0 → 1.5.0

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 (91) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +7 -0
  3. data/.github/workflows/build_and_publish_yard_docs.yml +4 -4
  4. data/.github/workflows/ci.yml +9 -10
  5. data/.github/workflows/rbi-updater.yml +1 -1
  6. data/.github/workflows/release_pipeline.yml +1 -1
  7. data/.rubocop.yml +1 -1
  8. data/.ruby-version +1 -1
  9. data/.simplecov +1 -0
  10. data/.toys/.toys.rb +8 -0
  11. data/Gemfile +3 -3
  12. data/Gemfile.lock +102 -78
  13. data/README.md +0 -2
  14. data/SECURITY.md +151 -0
  15. data/bin/check_vcr_version +94 -0
  16. data/lib/lunchmoney/api.rb +26 -38
  17. data/lib/lunchmoney/calls/assets.rb +10 -13
  18. data/lib/lunchmoney/calls/base.rb +59 -7
  19. data/lib/lunchmoney/calls/budgets.rb +22 -25
  20. data/lib/lunchmoney/calls/categories.rb +28 -38
  21. data/lib/lunchmoney/calls/crypto.rb +7 -9
  22. data/lib/lunchmoney/calls/plaid_accounts.rb +7 -9
  23. data/lib/lunchmoney/calls/recurring_expenses.rb +4 -5
  24. data/lib/lunchmoney/calls/tags.rb +3 -4
  25. data/lib/lunchmoney/calls/transactions.rb +28 -37
  26. data/lib/lunchmoney/calls/users.rb +3 -4
  27. data/lib/lunchmoney/configuration.rb +20 -0
  28. data/lib/lunchmoney/deprecate.rb +35 -0
  29. data/lib/lunchmoney/objects/asset.rb +6 -1
  30. data/lib/lunchmoney/objects/object.rb +4 -9
  31. data/lib/lunchmoney/objects/plaid_account.rb +6 -1
  32. data/lib/lunchmoney/validators.rb +8 -6
  33. data/lib/lunchmoney/version.rb +1 -1
  34. data/lib/lunchmoney.rb +3 -3
  35. data/lunchmoney.gemspec +1 -1
  36. data/sorbet/rbi/annotations/activesupport.rbi +40 -0
  37. data/sorbet/rbi/dsl/active_support/callbacks.rbi +0 -2
  38. data/sorbet/rbi/gems/{activesupport@7.2.1.rbi → activesupport@8.0.2.1.rbi} +1431 -1028
  39. data/sorbet/rbi/gems/{ast@2.4.2.rbi → ast@2.4.3.rbi} +4 -3
  40. data/sorbet/rbi/gems/{base64@0.2.0.rbi → base64@0.3.0.rbi} +76 -39
  41. data/sorbet/rbi/gems/benchmark@0.4.1.rbi +619 -0
  42. data/sorbet/rbi/gems/bigdecimal@3.2.2.rbi +275 -0
  43. data/sorbet/rbi/gems/{concurrent-ruby@1.3.4.rbi → concurrent-ruby@1.3.5.rbi} +44 -32
  44. data/sorbet/rbi/gems/{connection_pool@2.4.1.rbi → connection_pool@2.5.3.rbi} +1 -0
  45. data/sorbet/rbi/gems/{dotenv@3.1.2.rbi → dotenv@3.1.8.rbi} +21 -29
  46. data/sorbet/rbi/gems/{drb@2.2.1.rbi → drb@2.2.3.rbi} +503 -188
  47. data/sorbet/rbi/gems/{erubi@1.13.0.rbi → erubi@1.13.1.rbi} +14 -9
  48. data/sorbet/rbi/gems/{faraday-net_http@3.1.1.rbi → faraday-net_http@3.4.1.rbi} +34 -34
  49. data/sorbet/rbi/gems/{faraday@2.10.1.rbi → faraday@2.13.4.rbi} +507 -171
  50. data/sorbet/rbi/gems/{hashdiff@1.1.1.rbi → hashdiff@1.2.0.rbi} +5 -3
  51. data/sorbet/rbi/gems/{i18n@1.14.5.rbi → i18n@1.14.7.rbi} +80 -80
  52. data/sorbet/rbi/gems/{json@2.7.2.rbi → json@2.13.2.rbi} +988 -226
  53. data/sorbet/rbi/gems/{kramdown@2.4.0.rbi → kramdown@2.5.1.rbi} +316 -234
  54. data/sorbet/rbi/gems/language_server-protocol@3.17.0.5.rbi +9 -0
  55. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +240 -0
  56. data/sorbet/rbi/gems/{logger@1.6.0.rbi → logger@1.7.0.rbi} +136 -76
  57. data/sorbet/rbi/gems/{minitest@5.25.1.rbi → minitest@5.25.5.rbi} +227 -220
  58. data/sorbet/rbi/gems/{mocha@2.4.5.rbi → mocha@2.7.1.rbi} +154 -118
  59. data/sorbet/rbi/gems/{net-http@0.4.1.rbi → net-http@0.6.0.rbi} +360 -181
  60. data/sorbet/rbi/gems/{parser@3.3.4.2.rbi → parser@3.3.9.0.rbi} +326 -308
  61. data/sorbet/rbi/gems/{prism@0.30.0.rbi → prism@1.4.0.rbi} +12440 -9920
  62. data/sorbet/rbi/gems/{rack@3.1.7.rbi → rack@3.2.1.rbi} +752 -579
  63. data/sorbet/rbi/gems/{rake@13.2.1.rbi → rake@13.3.0.rbi} +238 -227
  64. data/sorbet/rbi/gems/rbi@0.3.6.rbi +5162 -0
  65. data/sorbet/rbi/gems/rbs@4.0.0.dev.4.rbi +7895 -0
  66. data/sorbet/rbi/gems/{regexp_parser@2.9.2.rbi → regexp_parser@2.11.2.rbi} +1124 -1013
  67. data/sorbet/rbi/gems/require-hooks@0.2.2.rbi +110 -0
  68. data/sorbet/rbi/gems/{rexml@3.3.6.rbi → rexml@3.4.2.rbi} +755 -318
  69. data/sorbet/rbi/gems/{rubocop-ast@1.32.1.rbi → rubocop-ast@1.46.0.rbi} +1287 -899
  70. data/sorbet/rbi/gems/{rubocop-minitest@0.35.1.rbi → rubocop-minitest@0.38.2.rbi} +133 -97
  71. data/sorbet/rbi/gems/{rubocop-rails@2.26.0.rbi → rubocop-rails@2.33.3.rbi} +9874 -6597
  72. data/sorbet/rbi/gems/{rubocop-shopify@2.15.1.rbi → rubocop-shopify@2.17.1.rbi} +1 -0
  73. data/sorbet/rbi/gems/{rubocop-sorbet@0.8.5.rbi → rubocop-sorbet@0.10.5.rbi} +804 -83
  74. data/sorbet/rbi/gems/{rubocop@1.65.1.rbi → rubocop@1.80.1.rbi} +10688 -5103
  75. data/sorbet/rbi/gems/{securerandom@0.3.1.rbi → securerandom@0.4.1.rbi} +7 -5
  76. data/sorbet/rbi/gems/{spoom@1.4.2.rbi → spoom@1.7.6.rbi} +1939 -1039
  77. data/sorbet/rbi/gems/{tapioca@0.16.1.rbi → tapioca@0.17.7.rbi} +765 -821
  78. data/sorbet/rbi/gems/{thor@1.3.1.rbi → thor@1.4.0.rbi} +139 -91
  79. data/sorbet/rbi/gems/unicode-display_width@3.1.5.rbi +132 -0
  80. data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
  81. data/sorbet/rbi/gems/{uri@0.13.0.rbi → uri@1.0.3.rbi} +278 -256
  82. data/sorbet/rbi/gems/{vcr@6.3.1.rbi → vcr@6.3.1-ce35c236fe48899f02ddf780973b44cdb756c0ee.rbi} +140 -123
  83. data/sorbet/rbi/gems/{webmock@3.23.1.rbi → webmock@3.25.1.rbi} +101 -78
  84. data/sorbet/rbi/gems/{yard@0.9.36.rbi → yard@0.9.37.rbi} +394 -235
  85. metadata +55 -53
  86. data/sorbet/rbi/gems/bigdecimal@3.1.8.rbi +0 -78
  87. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -14237
  88. data/sorbet/rbi/gems/rbi@0.1.14.rbi +0 -3305
  89. data/sorbet/rbi/gems/strscan@3.1.0.rbi +0 -9
  90. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
  91. /data/sorbet/rbi/gems/{parallel@1.26.3.rbi → parallel@1.27.0.rbi} +0 -0
@@ -0,0 +1,275 @@
1
+ # typed: false
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `bigdecimal` gem.
5
+ # Please instead update this file by running `bin/tapioca gem bigdecimal`.
6
+
7
+
8
+ # source://bigdecimal//lib/bigdecimal/util.rb#78
9
+ class BigDecimal < ::Numeric
10
+ # source://bigdecimal//lib/bigdecimal.rb#4
11
+ def %(_arg0); end
12
+
13
+ # source://bigdecimal//lib/bigdecimal.rb#4
14
+ def *(_arg0); end
15
+
16
+ # source://bigdecimal//lib/bigdecimal.rb#4
17
+ def **(_arg0); end
18
+
19
+ # source://bigdecimal//lib/bigdecimal.rb#4
20
+ def +(_arg0); end
21
+
22
+ # source://bigdecimal//lib/bigdecimal.rb#4
23
+ def +@; end
24
+
25
+ # source://bigdecimal//lib/bigdecimal.rb#4
26
+ def -(_arg0); end
27
+
28
+ # source://bigdecimal//lib/bigdecimal.rb#4
29
+ def -@; end
30
+
31
+ # source://bigdecimal//lib/bigdecimal.rb#4
32
+ def /(_arg0); end
33
+
34
+ # source://bigdecimal//lib/bigdecimal.rb#4
35
+ def <(_arg0); end
36
+
37
+ # source://bigdecimal//lib/bigdecimal.rb#4
38
+ def <=(_arg0); end
39
+
40
+ # source://bigdecimal//lib/bigdecimal.rb#4
41
+ def <=>(_arg0); end
42
+
43
+ # source://bigdecimal//lib/bigdecimal.rb#4
44
+ def ==(_arg0); end
45
+
46
+ # source://bigdecimal//lib/bigdecimal.rb#4
47
+ def ===(_arg0); end
48
+
49
+ # source://bigdecimal//lib/bigdecimal.rb#4
50
+ def >(_arg0); end
51
+
52
+ # source://bigdecimal//lib/bigdecimal.rb#4
53
+ def >=(_arg0); end
54
+
55
+ # source://bigdecimal//lib/bigdecimal.rb#4
56
+ def _dump(*_arg0); end
57
+
58
+ # source://bigdecimal//lib/bigdecimal.rb#4
59
+ def abs; end
60
+
61
+ # source://bigdecimal//lib/bigdecimal.rb#4
62
+ def add(_arg0, _arg1); end
63
+
64
+ # source://bigdecimal//lib/bigdecimal.rb#4
65
+ def ceil(*_arg0); end
66
+
67
+ # source://bigdecimal//lib/bigdecimal.rb#4
68
+ def clone; end
69
+
70
+ # source://bigdecimal//lib/bigdecimal.rb#4
71
+ def coerce(_arg0); end
72
+
73
+ # source://bigdecimal//lib/bigdecimal.rb#4
74
+ def div(*_arg0); end
75
+
76
+ # source://bigdecimal//lib/bigdecimal.rb#4
77
+ def divmod(_arg0); end
78
+
79
+ # source://bigdecimal//lib/bigdecimal.rb#4
80
+ def dup; end
81
+
82
+ # source://bigdecimal//lib/bigdecimal.rb#4
83
+ def eql?(_arg0); end
84
+
85
+ # source://bigdecimal//lib/bigdecimal.rb#4
86
+ def exponent; end
87
+
88
+ # source://bigdecimal//lib/bigdecimal.rb#4
89
+ def finite?; end
90
+
91
+ # source://bigdecimal//lib/bigdecimal.rb#4
92
+ def fix; end
93
+
94
+ # source://bigdecimal//lib/bigdecimal.rb#4
95
+ def floor(*_arg0); end
96
+
97
+ # source://bigdecimal//lib/bigdecimal.rb#4
98
+ def frac; end
99
+
100
+ # source://bigdecimal//lib/bigdecimal.rb#4
101
+ def hash; end
102
+
103
+ # source://bigdecimal//lib/bigdecimal.rb#4
104
+ def infinite?; end
105
+
106
+ # source://bigdecimal//lib/bigdecimal.rb#4
107
+ def inspect; end
108
+
109
+ # source://bigdecimal//lib/bigdecimal.rb#4
110
+ def modulo(_arg0); end
111
+
112
+ # source://bigdecimal//lib/bigdecimal.rb#4
113
+ def mult(_arg0, _arg1); end
114
+
115
+ # source://bigdecimal//lib/bigdecimal.rb#4
116
+ def n_significant_digits; end
117
+
118
+ # source://bigdecimal//lib/bigdecimal.rb#4
119
+ def nan?; end
120
+
121
+ # source://bigdecimal//lib/bigdecimal.rb#4
122
+ def nonzero?; end
123
+
124
+ # source://bigdecimal//lib/bigdecimal.rb#4
125
+ def power(*_arg0); end
126
+
127
+ # source://bigdecimal//lib/bigdecimal.rb#4
128
+ def precision; end
129
+
130
+ # source://bigdecimal//lib/bigdecimal.rb#4
131
+ def precision_scale; end
132
+
133
+ # source://bigdecimal//lib/bigdecimal.rb#4
134
+ def precs; end
135
+
136
+ # source://bigdecimal//lib/bigdecimal.rb#4
137
+ def quo(*_arg0); end
138
+
139
+ # source://bigdecimal//lib/bigdecimal.rb#4
140
+ def remainder(_arg0); end
141
+
142
+ # source://bigdecimal//lib/bigdecimal.rb#4
143
+ def round(*_arg0); end
144
+
145
+ # source://bigdecimal//lib/bigdecimal.rb#4
146
+ def scale; end
147
+
148
+ # source://bigdecimal//lib/bigdecimal.rb#4
149
+ def sign; end
150
+
151
+ # source://bigdecimal//lib/bigdecimal.rb#4
152
+ def split; end
153
+
154
+ # source://bigdecimal//lib/bigdecimal.rb#4
155
+ def sqrt(_arg0); end
156
+
157
+ # source://bigdecimal//lib/bigdecimal.rb#4
158
+ def sub(_arg0, _arg1); end
159
+
160
+ # call-seq:
161
+ # a.to_d -> bigdecimal
162
+ #
163
+ # Returns self.
164
+ #
165
+ # require 'bigdecimal/util'
166
+ #
167
+ # d = BigDecimal("3.14")
168
+ # d.to_d # => 0.314e1
169
+ #
170
+ # source://bigdecimal//lib/bigdecimal/util.rb#110
171
+ def to_d; end
172
+
173
+ # call-seq:
174
+ # a.to_digits -> string
175
+ #
176
+ # Converts a BigDecimal to a String of the form "nnnnnn.mmm".
177
+ # This method is deprecated; use BigDecimal#to_s("F") instead.
178
+ #
179
+ # require 'bigdecimal/util'
180
+ #
181
+ # d = BigDecimal("3.14")
182
+ # d.to_digits # => "3.14"
183
+ #
184
+ # source://bigdecimal//lib/bigdecimal/util.rb#90
185
+ def to_digits; end
186
+
187
+ # source://bigdecimal//lib/bigdecimal.rb#4
188
+ def to_f; end
189
+
190
+ # source://bigdecimal//lib/bigdecimal.rb#4
191
+ def to_i; end
192
+
193
+ # source://bigdecimal//lib/bigdecimal.rb#4
194
+ def to_int; end
195
+
196
+ # source://bigdecimal//lib/bigdecimal.rb#4
197
+ def to_r; end
198
+
199
+ # source://bigdecimal//lib/bigdecimal.rb#4
200
+ def to_s(format = T.unsafe(nil)); end
201
+
202
+ # source://bigdecimal//lib/bigdecimal.rb#4
203
+ def truncate(*_arg0); end
204
+
205
+ # source://bigdecimal//lib/bigdecimal.rb#4
206
+ def zero?; end
207
+
208
+ class << self
209
+ # source://bigdecimal//lib/bigdecimal.rb#4
210
+ def _load(_arg0); end
211
+
212
+ # source://bigdecimal//lib/bigdecimal.rb#4
213
+ def double_fig; end
214
+
215
+ # source://bigdecimal//lib/bigdecimal.rb#4
216
+ def interpret_loosely(_arg0); end
217
+
218
+ # source://bigdecimal//lib/bigdecimal.rb#4
219
+ def limit(*_arg0); end
220
+
221
+ # source://bigdecimal//lib/bigdecimal.rb#4
222
+ def mode(*_arg0); end
223
+
224
+ # source://bigdecimal//lib/bigdecimal.rb#4
225
+ def save_exception_mode; end
226
+
227
+ # source://bigdecimal//lib/bigdecimal.rb#4
228
+ def save_limit; end
229
+
230
+ # source://bigdecimal//lib/bigdecimal.rb#4
231
+ def save_rounding_mode; end
232
+ end
233
+ end
234
+
235
+ BigDecimal::VERSION = T.let(T.unsafe(nil), String)
236
+
237
+ # source://bigdecimal//lib/bigdecimal/util.rb#138
238
+ class Complex < ::Numeric
239
+ # call-seq:
240
+ # cmp.to_d -> bigdecimal
241
+ # cmp.to_d(precision) -> bigdecimal
242
+ #
243
+ # Returns the value as a BigDecimal.
244
+ #
245
+ # The +precision+ parameter is required for a rational complex number.
246
+ # This parameter is used to determine the number of significant digits
247
+ # for the result.
248
+ #
249
+ # require 'bigdecimal'
250
+ # require 'bigdecimal/util'
251
+ #
252
+ # Complex(0.1234567, 0).to_d(4) # => 0.1235e0
253
+ # Complex(Rational(22, 7), 0).to_d(3) # => 0.314e1
254
+ #
255
+ # See also Kernel.BigDecimal.
256
+ #
257
+ # source://bigdecimal//lib/bigdecimal/util.rb#157
258
+ def to_d(*args); end
259
+ end
260
+
261
+ # source://bigdecimal//lib/bigdecimal/util.rb#171
262
+ class NilClass
263
+ # call-seq:
264
+ # nil.to_d -> bigdecimal
265
+ #
266
+ # Returns nil represented as a BigDecimal.
267
+ #
268
+ # require 'bigdecimal'
269
+ # require 'bigdecimal/util'
270
+ #
271
+ # nil.to_d # => 0.0
272
+ #
273
+ # source://bigdecimal//lib/bigdecimal/util.rb#182
274
+ def to_d; end
275
+ end
@@ -11,7 +11,6 @@
11
11
  module Concurrent
12
12
  extend ::Concurrent::Utility::EngineDetector
13
13
  extend ::Concurrent::Utility::NativeExtensionLoader
14
- extend ::Logger::Severity
15
14
  extend ::Concurrent::Concern::Logging
16
15
  extend ::Concurrent::Concern::Deprecation
17
16
 
@@ -189,15 +188,17 @@ module Concurrent
189
188
  # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#217
190
189
  def cpu_shares; end
191
190
 
192
- # @return [Logger] Logger with provided level and output.
191
+ # Create a simple logger with provided level and output.
193
192
  #
194
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#37
193
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#38
195
194
  def create_simple_logger(level = T.unsafe(nil), output = T.unsafe(nil)); end
196
195
 
196
+ # Create a stdlib logger with provided level and output.
197
+ # If you use this deprecated method you might need to add logger to your Gemfile to avoid warnings from Ruby 3.3.5+.
198
+ #
197
199
  # @deprecated
198
- # @return [Logger] Logger with provided level and output.
199
200
  #
200
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#69
201
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#73
201
202
  def create_stdlib_logger(level = T.unsafe(nil), output = T.unsafe(nil)); end
202
203
 
203
204
  # Dataflow allows you to create a task that will be scheduled when all of its data dependencies are available.
@@ -269,10 +270,10 @@ module Concurrent
269
270
  # source://concurrent-ruby//lib/concurrent-ruby/concurrent/configuration.rb#62
270
271
  def global_io_executor; end
271
272
 
272
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#109
273
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#114
273
274
  def global_logger; end
274
275
 
275
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#113
276
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#118
276
277
  def global_logger=(value); end
277
278
 
278
279
  # Global thread pool user for global *timers*.
@@ -354,14 +355,14 @@ module Concurrent
354
355
 
355
356
  # Use logger created by #create_simple_logger to log concurrent-ruby messages.
356
357
  #
357
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#63
358
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#66
358
359
  def use_simple_logger(level = T.unsafe(nil), output = T.unsafe(nil)); end
359
360
 
360
361
  # Use logger created by #create_stdlib_logger to log concurrent-ruby messages.
361
362
  #
362
363
  # @deprecated
363
364
  #
364
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#96
365
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#101
365
366
  def use_stdlib_logger(level = T.unsafe(nil), output = T.unsafe(nil)); end
366
367
  end
367
368
  end
@@ -466,7 +467,6 @@ Concurrent::AbstractExchanger::CANCEL = T.let(T.unsafe(nil), Object)
466
467
 
467
468
  # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb#10
468
469
  class Concurrent::AbstractExecutorService < ::Concurrent::Synchronization::LockableObject
469
- include ::Logger::Severity
470
470
  include ::Concurrent::Concern::Logging
471
471
  include ::Concurrent::ExecutorService
472
472
  include ::Concurrent::Concern::Deprecation
@@ -884,7 +884,7 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject
884
884
  # hopelessly deadlock the Agent with no possibility of recovery.
885
885
  #
886
886
  # @param timeout [Float] the maximum number of seconds to wait
887
- # @raise [Concurrent::TimeoutError] when timout is reached
887
+ # @raise [Concurrent::TimeoutError] when timeout is reached
888
888
  # @return [Boolean] true if all actions complete before timeout
889
889
  #
890
890
  # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#377
@@ -1286,7 +1286,7 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject
1286
1286
  #
1287
1287
  # @param timeout [Float] the maximum number of seconds to wait
1288
1288
  # @param agents [Array<Concurrent::Agent>] the Agents on which to wait
1289
- # @raise [Concurrent::TimeoutError] when timout is reached
1289
+ # @raise [Concurrent::TimeoutError] when timeout is reached
1290
1290
  # @return [Boolean] true if all actions complete before timeout
1291
1291
  #
1292
1292
  # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#482
@@ -3163,9 +3163,7 @@ module Concurrent::Concern; end
3163
3163
 
3164
3164
  # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/deprecation.rb#8
3165
3165
  module Concurrent::Concern::Deprecation
3166
- include ::Logger::Severity
3167
3166
  include ::Concurrent::Concern::Logging
3168
- extend ::Logger::Severity
3169
3167
  extend ::Concurrent::Concern::Logging
3170
3168
  extend ::Concurrent::Concern::Deprecation
3171
3169
 
@@ -3243,21 +3241,40 @@ end
3243
3241
 
3244
3242
  # Include where logging is needed
3245
3243
  #
3246
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#10
3244
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#9
3247
3245
  module Concurrent::Concern::Logging
3248
- include ::Logger::Severity
3249
-
3250
3246
  # Logs through {Concurrent.global_logger}, it can be overridden by setting @logger
3251
3247
  #
3252
- # @param level [Integer] one of Logger::Severity constants
3248
+ # @param level [Integer] one of Concurrent::Concern::Logging constants
3253
3249
  # @param progname [String] e.g. a path of an Actor
3254
3250
  # @param message [String, nil] when nil block is used to generate the message
3255
3251
  # @yieldreturn [String] a message
3256
3252
  #
3257
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#18
3253
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#19
3258
3254
  def log(level, progname, message = T.unsafe(nil), &block); end
3259
3255
  end
3260
3256
 
3257
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#11
3258
+ Concurrent::Concern::Logging::DEBUG = T.let(T.unsafe(nil), Integer)
3259
+
3260
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#11
3261
+ Concurrent::Concern::Logging::ERROR = T.let(T.unsafe(nil), Integer)
3262
+
3263
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#11
3264
+ Concurrent::Concern::Logging::FATAL = T.let(T.unsafe(nil), Integer)
3265
+
3266
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#11
3267
+ Concurrent::Concern::Logging::INFO = T.let(T.unsafe(nil), Integer)
3268
+
3269
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#12
3270
+ Concurrent::Concern::Logging::SEV_LABEL = T.let(T.unsafe(nil), Array)
3271
+
3272
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#11
3273
+ Concurrent::Concern::Logging::UNKNOWN = T.let(T.unsafe(nil), Integer)
3274
+
3275
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#11
3276
+ Concurrent::Concern::Logging::WARN = T.let(T.unsafe(nil), Integer)
3277
+
3261
3278
  # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#10
3262
3279
  module Concurrent::Concern::Obligation
3263
3280
  include ::Concurrent::Concern::Dereferenceable
@@ -3710,7 +3727,7 @@ end
3710
3727
  #
3711
3728
  # When a `Delay` is created its state is set to `pending`. The value and
3712
3729
  # reason are both `nil`. The first time the `#value` method is called the
3713
- # enclosed opration will be run and the calling thread will block. Other
3730
+ # enclosed operation will be run and the calling thread will block. Other
3714
3731
  # threads attempting to call `#value` will block as well. Once the operation
3715
3732
  # is complete the *value* will be set to the result of the operation or the
3716
3733
  # *reason* will be set to the raised exception, as appropriate. All threads
@@ -3976,7 +3993,6 @@ Concurrent::ExchangerImplementation = Concurrent::RubyExchanger
3976
3993
 
3977
3994
  # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/executor_service.rb#157
3978
3995
  module Concurrent::ExecutorService
3979
- include ::Logger::Severity
3980
3996
  include ::Concurrent::Concern::Logging
3981
3997
 
3982
3998
  # Submit a task to the executor for asynchronous processing.
@@ -4281,7 +4297,7 @@ Concurrent::GLOBAL_IMMEDIATE_EXECUTOR = T.let(T.unsafe(nil), Concurrent::Immedia
4281
4297
  # source://concurrent-ruby//lib/concurrent-ruby/concurrent/configuration.rb#22
4282
4298
  Concurrent::GLOBAL_IO_EXECUTOR = T.let(T.unsafe(nil), Concurrent::Delay)
4283
4299
 
4284
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#106
4300
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#111
4285
4301
  Concurrent::GLOBAL_LOGGER = T.let(T.unsafe(nil), Concurrent::AtomicReference)
4286
4302
 
4287
4303
  # source://concurrent-ruby//lib/concurrent-ruby/concurrent/configuration.rb#26
@@ -6043,7 +6059,7 @@ Concurrent::NULL = T.let(T.unsafe(nil), Object)
6043
6059
 
6044
6060
  # Suppresses all output when used for logging.
6045
6061
  #
6046
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#103
6062
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#108
6047
6063
  Concurrent::NULL_LOGGER = T.let(T.unsafe(nil), Proc)
6048
6064
 
6049
6065
  # source://concurrent-ruby//lib/concurrent-ruby/concurrent/options.rb#6
@@ -6154,7 +6170,7 @@ end
6154
6170
  # - if parent is *rejected* the child will be *pending* (but will ultimately be *rejected*)
6155
6171
  #
6156
6172
  # Promises are executed asynchronously from the main thread. By the time a
6157
- # child Promise finishes intialization it may be in a different state than its
6173
+ # child Promise finishes initialization it may be in a different state than its
6158
6174
  # parent (by the time a child is created its parent may have completed
6159
6175
  # execution and changed state). Despite being asynchronous, however, the order
6160
6176
  # of execution of Promise objects in a chain (or tree) is strictly defined.
@@ -9037,7 +9053,7 @@ class Concurrent::RubyThreadPoolExecutor < ::Concurrent::RubyExecutorService
9037
9053
  #
9038
9054
  # This is a no-op on some pool implementation (e.g. the Java one). The Ruby
9039
9055
  # pool will auto-prune each time a new job is posted. You will need to call
9040
- # this method explicitely in case your application post jobs in bursts (a
9056
+ # this method explicitly in case your application post jobs in bursts (a
9041
9057
  # lot of jobs and then nothing for long periods)
9042
9058
  #
9043
9059
  # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#118
@@ -9177,7 +9193,6 @@ Concurrent::RubyThreadPoolExecutor::DEFAULT_THREAD_IDLETIMEOUT = T.let(T.unsafe(
9177
9193
 
9178
9194
  # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#310
9179
9195
  class Concurrent::RubyThreadPoolExecutor::Worker
9180
- include ::Logger::Severity
9181
9196
  include ::Concurrent::Concern::Logging
9182
9197
 
9183
9198
  # @return [Worker] a new instance of Worker
@@ -9410,7 +9425,7 @@ class Concurrent::ScheduledTask < ::Concurrent::IVar
9410
9425
  # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#163
9411
9426
  def executor; end
9412
9427
 
9413
- # The `delay` value given at instanciation.
9428
+ # The `delay` value given at instantiation.
9414
9429
  #
9415
9430
  # @return [Float] the initial delay.
9416
9431
  #
@@ -9575,7 +9590,6 @@ Concurrent::SemaphoreImplementation = Concurrent::MutexSemaphore
9575
9590
  #
9576
9591
  # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serial_executor_service.rb#24
9577
9592
  module Concurrent::SerialExecutorService
9578
- include ::Logger::Severity
9579
9593
  include ::Concurrent::Concern::Logging
9580
9594
  include ::Concurrent::ExecutorService
9581
9595
 
@@ -9594,7 +9608,6 @@ end
9594
9608
  #
9595
9609
  # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#8
9596
9610
  class Concurrent::SerializedExecution < ::Concurrent::Synchronization::LockableObject
9597
- include ::Logger::Severity
9598
9611
  include ::Concurrent::Concern::Logging
9599
9612
 
9600
9613
  # @return [SerializedExecution] a new instance of SerializedExecution
@@ -9692,7 +9705,6 @@ end
9692
9705
  #
9693
9706
  # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution_delegator.rb#12
9694
9707
  class Concurrent::SerializedExecutionDelegator < ::SimpleDelegator
9695
- include ::Logger::Severity
9696
9708
  include ::Concurrent::Concern::Logging
9697
9709
  include ::Concurrent::ExecutorService
9698
9710
  include ::Concurrent::SerialExecutorService
@@ -10030,7 +10042,7 @@ end
10030
10042
  # is received. This pattern has several issues. The thread itself is highly
10031
10043
  # susceptible to errors during processing. Also, the thread itself must be
10032
10044
  # constantly monitored and restarted should it die. `SingleThreadExecutor`
10033
- # encapsulates all these bahaviors. The task processor is highly resilient
10045
+ # encapsulates all these behaviors. The task processor is highly resilient
10034
10046
  # to errors from within tasks. Also, should the thread die it will
10035
10047
  # automatically be restarted.
10036
10048
  #
@@ -10492,7 +10504,7 @@ class Concurrent::Synchronization::Object < ::Concurrent::Synchronization::Abstr
10492
10504
 
10493
10505
  # Creates methods for reading and writing to a instance variable with
10494
10506
  # volatile (Java) semantic as {.attr_volatile} does.
10495
- # The instance variable should be accessed oly through generated methods.
10507
+ # The instance variable should be accessed only through generated methods.
10496
10508
  # This method generates following methods: `value`, `value=(new_value) #=> new_value`,
10497
10509
  # `swap_value(new_value) #=> old_value`,
10498
10510
  # `compare_and_set_value(expected, value) #=> true || false`, `update_value(&block)`.
@@ -4,5 +4,6 @@
4
4
  # This is an autogenerated file for types exported from the `connection_pool` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem connection_pool`.
6
6
 
7
+
7
8
  # THIS IS AN EMPTY RBI FILE.
8
9
  # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
@@ -4,6 +4,7 @@
4
4
  # This is an autogenerated file for types exported from the `dotenv` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem dotenv`.
6
6
 
7
+
7
8
  # Shim to load environment variables from `.env files into `ENV`.
8
9
  #
9
10
  # source://dotenv//lib/dotenv/version.rb#1
@@ -216,51 +217,47 @@ end
216
217
  class Dotenv::Parser
217
218
  # @return [Parser] a new instance of Parser
218
219
  #
219
- # source://dotenv//lib/dotenv/parser.rb#40
220
+ # source://dotenv//lib/dotenv/parser.rb#46
220
221
  def initialize(string, overwrite: T.unsafe(nil)); end
221
222
 
222
- # source://dotenv//lib/dotenv/parser.rb#46
223
+ # source://dotenv//lib/dotenv/parser.rb#53
223
224
  def call; end
224
225
 
225
226
  private
226
227
 
227
- # source://dotenv//lib/dotenv/parser.rb#82
228
- def expand_newlines(value); end
228
+ # Determine if a variable is already defined and should not be overwritten.
229
+ #
230
+ # @return [Boolean]
231
+ #
232
+ # source://dotenv//lib/dotenv/parser.rb#76
233
+ def existing?(key); end
229
234
 
230
- # source://dotenv//lib/dotenv/parser.rb#62
231
- def parse_line(line); end
235
+ # source://dotenv//lib/dotenv/parser.rb#101
236
+ def expand_newlines(value); end
232
237
 
233
- # source://dotenv//lib/dotenv/parser.rb#70
238
+ # source://dotenv//lib/dotenv/parser.rb#80
234
239
  def parse_value(value); end
235
240
 
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
241
+ # source://dotenv//lib/dotenv/parser.rb#97
240
242
  def unescape_characters(value); end
241
243
 
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
244
  class << self
251
- # source://dotenv//lib/dotenv/parser.rb#35
245
+ # source://dotenv//lib/dotenv/parser.rb#41
252
246
  def call(*_arg0, **_arg1, &_arg2); end
253
247
 
254
248
  # Returns the value of attribute substitutions.
255
249
  #
256
- # source://dotenv//lib/dotenv/parser.rb#33
250
+ # source://dotenv//lib/dotenv/parser.rb#39
257
251
  def substitutions; end
258
252
  end
259
253
  end
260
254
 
261
- # source://dotenv//lib/dotenv/parser.rb#14
255
+ # source://dotenv//lib/dotenv/parser.rb#16
262
256
  Dotenv::Parser::LINE = T.let(T.unsafe(nil), Regexp)
263
257
 
258
+ # source://dotenv//lib/dotenv/parser.rb#36
259
+ Dotenv::Parser::QUOTED_STRING = T.let(T.unsafe(nil), Regexp)
260
+
264
261
  # An internal monitor to synchronize access to ENV in multi-threaded environments.
265
262
  #
266
263
  # source://dotenv//lib/dotenv.rb#12
@@ -277,7 +274,7 @@ module Dotenv::Substitutions; end
277
274
  module Dotenv::Substitutions::Command
278
275
  class << self
279
276
  # source://dotenv//lib/dotenv/substitutions/command.rb#23
280
- def call(value, _env, overwrite: T.unsafe(nil)); end
277
+ def call(value, _env); end
281
278
  end
282
279
  end
283
280
 
@@ -290,12 +287,7 @@ end
290
287
  module Dotenv::Substitutions::Variable
291
288
  class << self
292
289
  # 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
290
+ def call(value, env); end
299
291
  end
300
292
  end
301
293