lunchmoney 1.3.0 → 1.4.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 (54) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +1 -1
  3. data/.simplecov +1 -2
  4. data/Gemfile +2 -3
  5. data/Gemfile.lock +66 -68
  6. data/lib/lunchmoney/objects/transaction.rb +9 -1
  7. data/lib/lunchmoney/version.rb +1 -1
  8. data/sorbet/rbi/annotations/activesupport.rbi +31 -0
  9. data/sorbet/rbi/annotations/minitest.rbi +119 -0
  10. data/sorbet/rbi/gems/{activesupport@7.1.3.2.rbi → activesupport@7.2.1.rbi} +1345 -1253
  11. data/sorbet/rbi/gems/{addressable@2.8.6.rbi → addressable@2.8.7.rbi} +2 -1
  12. data/sorbet/rbi/gems/{bigdecimal@3.1.7.rbi → bigdecimal@3.1.8.rbi} +1 -0
  13. data/sorbet/rbi/gems/{chef-utils@18.4.2.rbi → chef-utils@18.5.0.rbi} +1 -0
  14. data/sorbet/rbi/gems/{concurrent-ruby@1.2.3.rbi → concurrent-ruby@1.3.4.rbi} +64 -9
  15. data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +1 -0
  16. data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.0.rbi} +20 -15
  17. data/sorbet/rbi/gems/{faraday-net_http@3.1.0.rbi → faraday-net_http@3.1.1.rbi} +36 -35
  18. data/sorbet/rbi/gems/{faraday@2.9.0.rbi → faraday@2.10.1.rbi} +79 -33
  19. data/sorbet/rbi/gems/{hashdiff@1.1.0.rbi → hashdiff@1.1.1.rbi} +3 -2
  20. data/sorbet/rbi/gems/{i18n@1.14.4.rbi → i18n@1.14.5.rbi} +43 -14
  21. data/sorbet/rbi/gems/logger@1.6.0.rbi +903 -0
  22. data/sorbet/rbi/gems/{minitest@5.22.3.rbi → minitest@5.25.1.rbi} +245 -235
  23. data/sorbet/rbi/gems/{mixlib-shellout@3.2.7.rbi → mixlib-shellout@3.2.8.rbi} +1 -0
  24. data/sorbet/rbi/gems/{mocha@2.2.0.rbi → mocha@2.4.5.rbi} +36 -47
  25. data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.26.3.rbi} +32 -21
  26. data/sorbet/rbi/gems/{parser@3.3.1.0.rbi → parser@3.3.4.2.rbi} +233 -186
  27. data/sorbet/rbi/gems/{prism@0.29.0.rbi → prism@0.30.0.rbi} +5670 -4445
  28. data/sorbet/rbi/gems/{public_suffix@5.0.4.rbi → public_suffix@6.0.1.rbi} +1 -0
  29. data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.rbi} +34 -33
  30. data/sorbet/rbi/gems/{rack@3.0.10.rbi → rack@3.1.7.rbi} +694 -987
  31. data/sorbet/rbi/gems/{rake@13.1.0.rbi → rake@13.2.1.rbi} +56 -55
  32. data/sorbet/rbi/gems/{rbi@0.1.13.rbi → rbi@0.1.14.rbi} +865 -638
  33. data/sorbet/rbi/gems/{regexp_parser@2.9.1.rbi → regexp_parser@2.9.2.rbi} +2 -2
  34. data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.3.6.rbi} +383 -245
  35. data/sorbet/rbi/gems/{rubocop-ast@1.31.3.rbi → rubocop-ast@1.32.1.rbi} +383 -337
  36. data/sorbet/rbi/gems/{rubocop-minitest@0.35.0.rbi → rubocop-minitest@0.35.1.rbi} +11 -8
  37. data/sorbet/rbi/gems/{rubocop-rails@2.24.1.rbi → rubocop-rails@2.26.0.rbi} +604 -275
  38. data/sorbet/rbi/gems/{rubocop-sorbet@0.8.3.rbi → rubocop-sorbet@0.8.5.rbi} +125 -67
  39. data/sorbet/rbi/gems/{rubocop@1.63.5.rbi → rubocop@1.65.1.rbi} +1722 -1408
  40. data/sorbet/rbi/gems/securerandom@0.3.1.rbi +73 -0
  41. data/sorbet/rbi/gems/{spoom@1.3.2.rbi → spoom@1.4.2.rbi} +2377 -1866
  42. data/sorbet/rbi/gems/strscan@3.1.0.rbi +9 -0
  43. data/sorbet/rbi/gems/{tapioca@0.14.1.rbi → tapioca@0.16.1.rbi} +274 -253
  44. data/sorbet/rbi/gems/{toys-core@0.15.5.rbi → toys-core@0.15.6.rbi} +1 -0
  45. data/sorbet/rbi/gems/{toys@0.15.5.rbi → toys@0.15.6.rbi} +4 -3
  46. data/sorbet/rbi/gems/{vcr@6.2.0.rbi → vcr@6.3.1.rbi} +72 -68
  47. data/sorbet/rbi/gems/{webmock@3.23.0.rbi → webmock@3.23.1.rbi} +1 -0
  48. data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
  49. metadata +43 -44
  50. data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -3426
  51. data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -272
  52. data/sorbet/rbi/gems/mutex_m@0.2.0.rbi +0 -93
  53. data/sorbet/rbi/gems/pry-sorbet@0.2.1.rbi +0 -966
  54. data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -10077
@@ -4,6 +4,7 @@
4
4
  # This is an autogenerated file for types exported from the `mixlib-shellout` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem mixlib-shellout`.
6
6
 
7
+
7
8
  # source://mixlib-shellout//lib/mixlib/shellout/exceptions.rb#1
8
9
  module Mixlib; end
9
10
 
@@ -4,7 +4,8 @@
4
4
  # This is an autogenerated file for types exported from the `mocha` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem mocha`.
6
6
 
7
- # source://mocha//lib/mocha/inspect.rb#45
7
+
8
+ # source://mocha//lib/mocha/inspect.rb#56
8
9
  class Array
9
10
  include ::Enumerable
10
11
  include ::Mocha::Inspect::ArrayMethods
@@ -14,23 +15,16 @@ class Class < ::Module
14
15
  include ::Mocha::ClassMethods
15
16
  end
16
17
 
17
- # source://mocha//lib/mocha/inspect.rb#57
18
+ # source://mocha//lib/mocha/inspect.rb#68
18
19
  class Date
19
20
  include ::Comparable
20
21
  include ::Mocha::Inspect::DateMethods
21
22
  end
22
23
 
23
- # @private
24
- #
25
- # source://mocha//lib/mocha/parameter_matchers/instance_methods.rb#22
24
+ # source://mocha//lib/mocha/inspect.rb#60
26
25
  class Hash
27
26
  include ::Enumerable
28
27
  include ::Mocha::Inspect::HashMethods
29
-
30
- # @private
31
- #
32
- # source://mocha//lib/mocha/parameter_matchers/instance_methods.rb#24
33
- def to_matcher(expectation = T.unsafe(nil)); end
34
28
  end
35
29
 
36
30
  class Minitest::Test < ::Minitest::Runnable
@@ -1169,10 +1163,6 @@ class Mocha::Expectation
1169
1163
 
1170
1164
  # Modifies expectation so that when the expected method is called, it raises the specified +exception+ with the specified +message+ i.e. calls +Kernel#raise(exception, message)+.
1171
1165
  #
1172
- # @example Raise specified exception if expected method is invoked.
1173
- # object = stub()
1174
- # object.stubs(:expected_method).raises(Exception, 'message')
1175
- # object.expected_method # => raises exception of class Exception and with message 'message'
1176
1166
  # @example Raise custom exception with extra constructor parameters by passing in an instance of the exception.
1177
1167
  # object = stub()
1178
1168
  # object.stubs(:expected_method).raises(MyException.new('message', 1, 2, 3))
@@ -1182,6 +1172,10 @@ class Mocha::Expectation
1182
1172
  # object.stubs(:expected_method).raises(Exception1).then.raises(Exception2)
1183
1173
  # object.expected_method # => raises exception of class Exception1
1184
1174
  # object.expected_method # => raises exception of class Exception2
1175
+ # @example Raise specified exception if expected method is invoked.
1176
+ # object = stub()
1177
+ # object.stubs(:expected_method).raises(Exception, 'message')
1178
+ # object.expected_method # => raises exception of class Exception and with message 'message'
1185
1179
  # @example Raise an exception on first invocation of expected method and then return values on subsequent invocations.
1186
1180
  # object = stub()
1187
1181
  # object.stubs(:expected_method).raises(Exception).then.returns(2, 3)
@@ -1270,14 +1264,14 @@ class Mocha::Expectation
1270
1264
 
1271
1265
  # Modifies expectation so that when the expected method is called, it throws the specified +tag+ with the specific return value +object+ i.e. calls +Kernel#throw(tag, object)+.
1272
1266
  #
1273
- # @example Throw tag when expected method is invoked.
1274
- # object = stub()
1275
- # object.stubs(:expected_method).throws(:done)
1276
- # object.expected_method # => throws tag :done
1277
1267
  # @example Throw tag with return value +object+ c.f. +Kernel#throw+.
1278
1268
  # object = stub()
1279
1269
  # object.stubs(:expected_method).throws(:done, 'result')
1280
1270
  # object.expected_method # => throws tag :done and causes catch block to return 'result'
1271
+ # @example Throw tag when expected method is invoked.
1272
+ # object = stub()
1273
+ # object.stubs(:expected_method).throws(:done)
1274
+ # object.expected_method # => throws tag :done
1281
1275
  # @example Throw different tags on consecutive invocations of the expected method.
1282
1276
  # object = stub()
1283
1277
  # object.stubs(:expected_method).throws(:done).then.throws(:continue)
@@ -1725,9 +1719,9 @@ module Mocha::Inspect::ArrayMethods
1725
1719
  def mocha_inspect(wrapped = T.unsafe(nil)); end
1726
1720
  end
1727
1721
 
1728
- # source://mocha//lib/mocha/inspect.rb#33
1722
+ # source://mocha//lib/mocha/inspect.rb#44
1729
1723
  module Mocha::Inspect::DateMethods
1730
- # source://mocha//lib/mocha/inspect.rb#34
1724
+ # source://mocha//lib/mocha/inspect.rb#45
1731
1725
  def mocha_inspect; end
1732
1726
  end
1733
1727
 
@@ -1743,9 +1737,9 @@ module Mocha::Inspect::ObjectMethods
1743
1737
  def mocha_inspect; end
1744
1738
  end
1745
1739
 
1746
- # source://mocha//lib/mocha/inspect.rb#27
1740
+ # source://mocha//lib/mocha/inspect.rb#38
1747
1741
  module Mocha::Inspect::TimeMethods
1748
- # source://mocha//lib/mocha/inspect.rb#28
1742
+ # source://mocha//lib/mocha/inspect.rb#39
1749
1743
  def mocha_inspect; end
1750
1744
  end
1751
1745
 
@@ -3167,14 +3161,9 @@ class Mocha::ParameterMatchers::Base
3167
3161
  # @return [AllOf] parameter matcher.
3168
3162
  # @see Expectation#with
3169
3163
  #
3170
- # source://mocha//lib/mocha/parameter_matchers/base.rb#30
3164
+ # source://mocha//lib/mocha/parameter_matchers/base.rb#25
3171
3165
  def &(other); end
3172
3166
 
3173
- # @private
3174
- #
3175
- # source://mocha//lib/mocha/parameter_matchers/base.rb#6
3176
- def to_matcher(_expectation = T.unsafe(nil)); end
3177
-
3178
3167
  # A shorthand way of combining two matchers when at least one must match.
3179
3168
  #
3180
3169
  # Returns a new +AnyOf+ parameter matcher combining two matchers using a logical OR.
@@ -3199,7 +3188,7 @@ class Mocha::ParameterMatchers::Base
3199
3188
  # @return [AnyOf] parameter matcher.
3200
3189
  # @see Expectation#with
3201
3190
  #
3202
- # source://mocha//lib/mocha/parameter_matchers/base.rb#60
3191
+ # source://mocha//lib/mocha/parameter_matchers/base.rb#55
3203
3192
  def |(other); end
3204
3193
  end
3205
3194
 
@@ -3262,17 +3251,17 @@ class Mocha::ParameterMatchers::HasEntries < ::Mocha::ParameterMatchers::Base
3262
3251
  # @return [HasEntries] a new instance of HasEntries
3263
3252
  #
3264
3253
  # source://mocha//lib/mocha/parameter_matchers/has_entries.rb#33
3265
- def initialize(entries); end
3254
+ def initialize(entries, exact: T.unsafe(nil)); end
3266
3255
 
3267
3256
  # @private
3268
3257
  # @return [Boolean]
3269
3258
  #
3270
- # source://mocha//lib/mocha/parameter_matchers/has_entries.rb#38
3259
+ # source://mocha//lib/mocha/parameter_matchers/has_entries.rb#39
3271
3260
  def matches?(available_parameters); end
3272
3261
 
3273
3262
  # @private
3274
3263
  #
3275
- # source://mocha//lib/mocha/parameter_matchers/has_entries.rb#45
3264
+ # source://mocha//lib/mocha/parameter_matchers/has_entries.rb#50
3276
3265
  def mocha_inspect; end
3277
3266
  end
3278
3267
 
@@ -3389,12 +3378,12 @@ end
3389
3378
 
3390
3379
  # @private
3391
3380
  #
3392
- # source://mocha//lib/mocha/parameter_matchers/instance_methods.rb#7
3381
+ # source://mocha//lib/mocha/parameter_matchers/instance_methods.rb#8
3393
3382
  module Mocha::ParameterMatchers::InstanceMethods
3394
3383
  # @private
3395
3384
  #
3396
- # source://mocha//lib/mocha/parameter_matchers/instance_methods.rb#9
3397
- def to_matcher(_expectation = T.unsafe(nil)); end
3385
+ # source://mocha//lib/mocha/parameter_matchers/instance_methods.rb#10
3386
+ def to_matcher(expectation: T.unsafe(nil), top_level: T.unsafe(nil)); end
3398
3387
  end
3399
3388
 
3400
3389
  # Parameter matcher which matches when actual parameter is an instance of the specified class.
@@ -3509,43 +3498,43 @@ end
3509
3498
 
3510
3499
  # @private
3511
3500
  #
3512
- # source://mocha//lib/mocha/parameter_matchers/positional_or_keyword_hash.rb#8
3501
+ # source://mocha//lib/mocha/parameter_matchers/positional_or_keyword_hash.rb#9
3513
3502
  class Mocha::ParameterMatchers::PositionalOrKeywordHash < ::Mocha::ParameterMatchers::Base
3514
3503
  # @return [PositionalOrKeywordHash] a new instance of PositionalOrKeywordHash
3515
3504
  #
3516
- # source://mocha//lib/mocha/parameter_matchers/positional_or_keyword_hash.rb#9
3505
+ # source://mocha//lib/mocha/parameter_matchers/positional_or_keyword_hash.rb#10
3517
3506
  def initialize(value, expectation); end
3518
3507
 
3519
3508
  # @return [Boolean]
3520
3509
  #
3521
- # source://mocha//lib/mocha/parameter_matchers/positional_or_keyword_hash.rb#14
3510
+ # source://mocha//lib/mocha/parameter_matchers/positional_or_keyword_hash.rb#15
3522
3511
  def matches?(available_parameters); end
3523
3512
 
3524
- # source://mocha//lib/mocha/parameter_matchers/positional_or_keyword_hash.rb#27
3513
+ # source://mocha//lib/mocha/parameter_matchers/positional_or_keyword_hash.rb#29
3525
3514
  def mocha_inspect; end
3526
3515
 
3527
3516
  private
3528
3517
 
3529
- # source://mocha//lib/mocha/parameter_matchers/positional_or_keyword_hash.rb#41
3518
+ # source://mocha//lib/mocha/parameter_matchers/positional_or_keyword_hash.rb#43
3530
3519
  def deprecation_warning(actual, expected); end
3531
3520
 
3532
- # source://mocha//lib/mocha/parameter_matchers/positional_or_keyword_hash.rb#57
3521
+ # source://mocha//lib/mocha/parameter_matchers/positional_or_keyword_hash.rb#59
3533
3522
  def expectation_definition; end
3534
3523
 
3535
- # source://mocha//lib/mocha/parameter_matchers/positional_or_keyword_hash.rb#33
3524
+ # source://mocha//lib/mocha/parameter_matchers/positional_or_keyword_hash.rb#35
3536
3525
  def extract_parameter(available_parameters); end
3537
3526
 
3538
- # source://mocha//lib/mocha/parameter_matchers/positional_or_keyword_hash.rb#49
3527
+ # source://mocha//lib/mocha/parameter_matchers/positional_or_keyword_hash.rb#51
3539
3528
  def hash_type(hash); end
3540
3529
 
3541
3530
  # @return [Boolean]
3542
3531
  #
3543
- # source://mocha//lib/mocha/parameter_matchers/positional_or_keyword_hash.rb#53
3532
+ # source://mocha//lib/mocha/parameter_matchers/positional_or_keyword_hash.rb#55
3544
3533
  def ruby2_keywords_hash?(hash); end
3545
3534
 
3546
3535
  # @return [Boolean]
3547
3536
  #
3548
- # source://mocha//lib/mocha/parameter_matchers/positional_or_keyword_hash.rb#37
3537
+ # source://mocha//lib/mocha/parameter_matchers/positional_or_keyword_hash.rb#39
3549
3538
  def same_type_of_hash?(actual, expected); end
3550
3539
  end
3551
3540
 
@@ -3954,7 +3943,7 @@ end
3954
3943
 
3955
3944
  # @private
3956
3945
  #
3957
- # source://mocha//lib/mocha/parameter_matchers/instance_methods.rb#17
3946
+ # source://mocha//lib/mocha/parameter_matchers/instance_methods.rb#24
3958
3947
  class Object < ::BasicObject
3959
3948
  include ::Kernel
3960
3949
  include ::PP::ObjectMixin
@@ -3963,7 +3952,7 @@ class Object < ::BasicObject
3963
3952
  include ::Mocha::ObjectMethods
3964
3953
  end
3965
3954
 
3966
- # source://mocha//lib/mocha/inspect.rb#53
3955
+ # source://mocha//lib/mocha/inspect.rb#64
3967
3956
  class Time
3968
3957
  include ::Comparable
3969
3958
  include ::Mocha::Inspect::TimeMethods
@@ -4,6 +4,7 @@
4
4
  # This is an autogenerated file for types exported from the `parallel` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem parallel`.
6
6
 
7
+
7
8
  # source://parallel//lib/parallel/version.rb#2
8
9
  module Parallel
9
10
  class << self
@@ -24,10 +25,10 @@ module Parallel
24
25
  def each_with_index(array, options = T.unsafe(nil), &block); end
25
26
 
26
27
  # source://parallel//lib/parallel.rb#307
27
- def filter_map(*args, &block); end
28
+ def filter_map(*_arg0, **_arg1, &_arg2); end
28
29
 
29
30
  # source://parallel//lib/parallel.rb#303
30
- def flat_map(*args, &block); end
31
+ def flat_map(*_arg0, **_arg1, &_arg2); end
31
32
 
32
33
  # source://parallel//lib/parallel.rb#228
33
34
  def in_processes(options = T.unsafe(nil), &block); end
@@ -46,70 +47,80 @@ module Parallel
46
47
  # source://parallel//lib/parallel.rb#312
47
48
  def physical_processor_count; end
48
49
 
49
- # Number of processors seen by the OS, used for process scheduling
50
+ # Number of processors seen by the OS or value considering CPU quota if the process is inside a cgroup,
51
+ # used for process scheduling
50
52
  #
51
- # source://parallel//lib/parallel.rb#345
53
+ # source://parallel//lib/parallel.rb#342
52
54
  def processor_count; end
53
55
 
54
- # source://parallel//lib/parallel.rb#350
56
+ # source://parallel//lib/parallel.rb#346
55
57
  def worker_number; end
56
58
 
57
59
  # TODO: this does not work when doing threads in forks, so should remove and yield the number instead if needed
58
60
  #
59
- # source://parallel//lib/parallel.rb#355
61
+ # source://parallel//lib/parallel.rb#351
60
62
  def worker_number=(worker_num); end
61
63
 
62
64
  private
63
65
 
64
- # source://parallel//lib/parallel.rb#361
66
+ # source://parallel//lib/parallel.rb#384
65
67
  def add_progress_bar!(job_factory, options); end
66
68
 
67
- # source://parallel//lib/parallel.rb#624
69
+ # source://parallel//lib/parallel.rb#699
70
+ def available_processor_count; end
71
+
72
+ # source://parallel//lib/parallel.rb#647
68
73
  def call_with_index(item, index, options, &block); end
69
74
 
70
- # source://parallel//lib/parallel.rb#556
75
+ # source://parallel//lib/parallel.rb#579
71
76
  def create_workers(job_factory, options, &block); end
72
77
 
73
78
  # options is either a Integer or a Hash with :count
74
79
  #
75
- # source://parallel//lib/parallel.rb#614
80
+ # source://parallel//lib/parallel.rb#637
76
81
  def extract_count_from_options(options); end
77
82
 
78
- # source://parallel//lib/parallel.rb#642
83
+ # source://parallel//lib/parallel.rb#665
79
84
  def instrument_finish(item, index, result, options); end
80
85
 
81
86
  # yield results in the order of the input items
82
87
  # needs to use `options` to store state between executions
83
88
  # needs to use `done` index since a nil result would also be valid
84
89
  #
85
- # source://parallel//lib/parallel.rb#651
90
+ # source://parallel//lib/parallel.rb#674
86
91
  def instrument_finish_in_order(item, index, result, options); end
87
92
 
88
- # source://parallel//lib/parallel.rb#671
93
+ # source://parallel//lib/parallel.rb#694
89
94
  def instrument_start(item, index, options); end
90
95
 
91
- # source://parallel//lib/parallel.rb#590
96
+ # source://parallel//lib/parallel.rb#357
97
+ def physical_processor_count_windows; end
98
+
99
+ # source://parallel//lib/parallel.rb#613
92
100
  def process_incoming_jobs(read, write, job_factory, options, &block); end
93
101
 
94
- # source://parallel//lib/parallel.rb#544
102
+ # source://parallel//lib/parallel.rb#567
95
103
  def replace_worker(job_factory, workers, index, options, blk); end
96
104
 
97
- # source://parallel//lib/parallel.rb#635
105
+ # source://parallel//lib/parallel.rb#378
106
+ def run(command); end
107
+
108
+ # source://parallel//lib/parallel.rb#658
98
109
  def with_instrumentation(item, index, options); end
99
110
 
100
- # source://parallel//lib/parallel.rb#386
111
+ # source://parallel//lib/parallel.rb#409
101
112
  def work_direct(job_factory, options, &block); end
102
113
 
103
- # source://parallel//lib/parallel.rb#496
114
+ # source://parallel//lib/parallel.rb#519
104
115
  def work_in_processes(job_factory, options, &blk); end
105
116
 
106
- # source://parallel//lib/parallel.rb#430
117
+ # source://parallel//lib/parallel.rb#453
107
118
  def work_in_ractors(job_factory, options); end
108
119
 
109
- # source://parallel//lib/parallel.rb#405
120
+ # source://parallel//lib/parallel.rb#428
110
121
  def work_in_threads(job_factory, options, &block); end
111
122
 
112
- # source://parallel//lib/parallel.rb#564
123
+ # source://parallel//lib/parallel.rb#587
113
124
  def worker(job_factory, options, &block); end
114
125
  end
115
126
  end