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
@@ -39,7 +39,7 @@ module Mocha
39
39
  class << self
40
40
  # @private
41
41
  #
42
- # source://mocha//lib/mocha/configuration.rb#24
42
+ # source://mocha//lib/mocha/configuration.rb#25
43
43
  def configuration; end
44
44
 
45
45
  # Allows setting of configuration options. See {Configuration} for the available options.
@@ -55,7 +55,7 @@ module Mocha
55
55
  # @see Configuration
56
56
  # @yieldparam configuration [Configuration] the configuration for modification
57
57
  #
58
- # source://mocha//lib/mocha/configuration.rb#19
58
+ # source://mocha//lib/mocha/configuration.rb#20
59
59
  def configure; end
60
60
  end
61
61
  end
@@ -319,15 +319,15 @@ class Mocha::Cardinality
319
319
  # source://mocha//lib/mocha/cardinality.rb#29
320
320
  def <<(invocation); end
321
321
 
322
- # source://mocha//lib/mocha/cardinality.rb#79
322
+ # source://mocha//lib/mocha/cardinality.rb#83
323
323
  def actual_invocations; end
324
324
 
325
325
  # @return [Boolean]
326
326
  #
327
- # source://mocha//lib/mocha/cardinality.rb#49
327
+ # source://mocha//lib/mocha/cardinality.rb#53
328
328
  def allowed_any_number_of_times?; end
329
329
 
330
- # source://mocha//lib/mocha/cardinality.rb#58
330
+ # source://mocha//lib/mocha/cardinality.rb#62
331
331
  def anticipated_times; end
332
332
 
333
333
  # source://mocha//lib/mocha/cardinality.rb#14
@@ -344,17 +344,22 @@ class Mocha::Cardinality
344
344
  # source://mocha//lib/mocha/cardinality.rb#33
345
345
  def invocations_allowed?; end
346
346
 
347
- # source://mocha//lib/mocha/cardinality.rb#75
347
+ # @return [Boolean]
348
+ #
349
+ # source://mocha//lib/mocha/cardinality.rb#37
350
+ def invocations_never_allowed?; end
351
+
352
+ # source://mocha//lib/mocha/cardinality.rb#79
348
353
  def invoked_times; end
349
354
 
350
355
  # @return [Boolean]
351
356
  #
352
- # source://mocha//lib/mocha/cardinality.rb#41
357
+ # source://mocha//lib/mocha/cardinality.rb#45
353
358
  def needs_verifying?; end
354
359
 
355
360
  # @return [Boolean]
356
361
  #
357
- # source://mocha//lib/mocha/cardinality.rb#37
362
+ # source://mocha//lib/mocha/cardinality.rb#41
358
363
  def satisfied?; end
359
364
 
360
365
  # source://mocha//lib/mocha/cardinality.rb#22
@@ -362,35 +367,35 @@ class Mocha::Cardinality
362
367
 
363
368
  # @return [Boolean]
364
369
  #
365
- # source://mocha//lib/mocha/cardinality.rb#53
370
+ # source://mocha//lib/mocha/cardinality.rb#57
366
371
  def used?; end
367
372
 
368
373
  # @return [Boolean]
369
374
  #
370
- # source://mocha//lib/mocha/cardinality.rb#45
375
+ # source://mocha//lib/mocha/cardinality.rb#49
371
376
  def verified?; end
372
377
 
373
378
  protected
374
379
 
375
- # source://mocha//lib/mocha/cardinality.rb#87
380
+ # source://mocha//lib/mocha/cardinality.rb#91
376
381
  def count(number); end
377
382
 
378
383
  # @return [Boolean]
379
384
  #
380
- # source://mocha//lib/mocha/cardinality.rb#102
385
+ # source://mocha//lib/mocha/cardinality.rb#106
381
386
  def infinite?(number); end
382
387
 
383
388
  # Returns the value of attribute maximum.
384
389
  #
385
- # source://mocha//lib/mocha/cardinality.rb#85
390
+ # source://mocha//lib/mocha/cardinality.rb#89
386
391
  def maximum; end
387
392
 
388
393
  # Returns the value of attribute required.
389
394
  #
390
- # source://mocha//lib/mocha/cardinality.rb#85
395
+ # source://mocha//lib/mocha/cardinality.rb#89
391
396
  def required; end
392
397
 
393
- # source://mocha//lib/mocha/cardinality.rb#96
398
+ # source://mocha//lib/mocha/cardinality.rb#100
394
399
  def update(required, maximum); end
395
400
  end
396
401
 
@@ -521,12 +526,12 @@ end
521
526
  # c.stubbing_method_on_nil = :allow
522
527
  # end
523
528
  #
524
- # source://mocha//lib/mocha/configuration.rb#39
529
+ # source://mocha//lib/mocha/configuration.rb#40
525
530
  class Mocha::Configuration
526
531
  # @private
527
532
  # @return [Configuration] a new instance of Configuration
528
533
  #
529
- # source://mocha//lib/mocha/configuration.rb#55
534
+ # source://mocha//lib/mocha/configuration.rb#56
530
535
  def initialize(options = T.unsafe(nil)); end
531
536
 
532
537
  # Display matching invocations alongside expectations on Mocha-related test failure.
@@ -554,18 +559,18 @@ class Mocha::Configuration
554
559
  # - #<Mock:foo>.baz(5, 6) # => threw (:tag, "value")
555
560
  # @param value [Boolean] +true+ to enable display of matching invocations; disabled by default.
556
561
  #
557
- # source://mocha//lib/mocha/configuration.rb#244
562
+ # source://mocha//lib/mocha/configuration.rb#251
558
563
  def display_matching_invocations_on_failure=(value); end
559
564
 
560
565
  # @private
561
566
  # @return [Boolean]
562
567
  #
563
- # source://mocha//lib/mocha/configuration.rb#249
568
+ # source://mocha//lib/mocha/configuration.rb#256
564
569
  def display_matching_invocations_on_failure?; end
565
570
 
566
571
  # @private
567
572
  #
568
- # source://mocha//lib/mocha/configuration.rb#65
573
+ # source://mocha//lib/mocha/configuration.rb#66
569
574
  def merge(other); end
570
575
 
571
576
  # Perform strict keyword argument comparison. Only supported in Ruby >= v2.7.
@@ -604,18 +609,18 @@ class Mocha::Configuration
604
609
  # # This now fails as expected
605
610
  # @param value [Boolean] +true+ to enable strict keyword argument matching; +false+ by default.
606
611
  #
607
- # source://mocha//lib/mocha/configuration.rb#290
612
+ # source://mocha//lib/mocha/configuration.rb#297
608
613
  def strict_keyword_argument_matching=(value); end
609
614
 
610
615
  # @private
611
616
  # @return [Boolean]
612
617
  #
613
- # source://mocha//lib/mocha/configuration.rb#296
618
+ # source://mocha//lib/mocha/configuration.rb#303
614
619
  def strict_keyword_argument_matching?; end
615
620
 
616
621
  # @private
617
622
  #
618
- # source://mocha//lib/mocha/configuration.rb#215
623
+ # source://mocha//lib/mocha/configuration.rb#222
619
624
  def stubbing_method_on_nil; end
620
625
 
621
626
  # Configure whether stubbing methods on the +nil+ object is allowed.
@@ -628,14 +633,15 @@ class Mocha::Configuration
628
633
  # When +value+ is +:warn+, display a warning.
629
634
  # When +value+ is +:prevent+, raise a {StubbingError}. This is the default.
630
635
  #
636
+ # @deprecated This method is deprecated and will be removed in a future release. +nil+ is frozen in Ruby >= v2.2 and Mocha will be dropping support for Ruby v2.1. At that point it won't be possible to stub methods on +nil+ any more.
631
637
  # @param value [Symbol] one of +:allow+, +:warn+, +:prevent+.
632
638
  #
633
- # source://mocha//lib/mocha/configuration.rb#210
639
+ # source://mocha//lib/mocha/configuration.rb#212
634
640
  def stubbing_method_on_nil=(value); end
635
641
 
636
642
  # @private
637
643
  #
638
- # source://mocha//lib/mocha/configuration.rb#127
644
+ # source://mocha//lib/mocha/configuration.rb#128
639
645
  def stubbing_method_on_non_mock_object; end
640
646
 
641
647
  # Configure whether stubbing methods on non-mock objects is allowed.
@@ -661,12 +667,12 @@ class Mocha::Configuration
661
667
  # # => #<Example:0x593620>.example_method
662
668
  # @param value [Symbol] one of +:allow+, +:warn+, +:prevent+.
663
669
  #
664
- # source://mocha//lib/mocha/configuration.rb#122
670
+ # source://mocha//lib/mocha/configuration.rb#123
665
671
  def stubbing_method_on_non_mock_object=(value); end
666
672
 
667
673
  # @private
668
674
  #
669
- # source://mocha//lib/mocha/configuration.rb#94
675
+ # source://mocha//lib/mocha/configuration.rb#95
670
676
  def stubbing_method_unnecessarily; end
671
677
 
672
678
  # Configure whether stubbing methods unnecessarily is allowed.
@@ -688,12 +694,12 @@ class Mocha::Configuration
688
694
  # # => #<Mock:example>.unused_stub(any_parameters)
689
695
  # @param value [Symbol] one of +:allow+, +:warn+, +:prevent+.
690
696
  #
691
- # source://mocha//lib/mocha/configuration.rb#89
697
+ # source://mocha//lib/mocha/configuration.rb#90
692
698
  def stubbing_method_unnecessarily=(value); end
693
699
 
694
700
  # @private
695
701
  #
696
- # source://mocha//lib/mocha/configuration.rb#160
702
+ # source://mocha//lib/mocha/configuration.rb#161
697
703
  def stubbing_non_existent_method; end
698
704
 
699
705
  # Configure whether stubbing of non-existent methods is allowed.
@@ -719,12 +725,12 @@ class Mocha::Configuration
719
725
  # # => #<Example:0x593760>.method_that_doesnt_exist
720
726
  # @param value [Symbol] one of +:allow+, +:warn+, +:prevent+.
721
727
  #
722
- # source://mocha//lib/mocha/configuration.rb#155
728
+ # source://mocha//lib/mocha/configuration.rb#156
723
729
  def stubbing_non_existent_method=(value); end
724
730
 
725
731
  # @private
726
732
  #
727
- # source://mocha//lib/mocha/configuration.rb#194
733
+ # source://mocha//lib/mocha/configuration.rb#195
728
734
  def stubbing_non_public_method; end
729
735
 
730
736
  # Configure whether stubbing of non-public methods is allowed.
@@ -751,27 +757,27 @@ class Mocha::Configuration
751
757
  # # => #<Example:0x593530>.internal_method
752
758
  # @param value [Symbol] one of +:allow+, +:warn+, +:prevent+.
753
759
  #
754
- # source://mocha//lib/mocha/configuration.rb#189
760
+ # source://mocha//lib/mocha/configuration.rb#190
755
761
  def stubbing_non_public_method=(value); end
756
762
 
757
763
  protected
758
764
 
759
765
  # Returns the value of attribute options.
760
766
  #
761
- # source://mocha//lib/mocha/configuration.rb#51
767
+ # source://mocha//lib/mocha/configuration.rb#52
762
768
  def options; end
763
769
 
764
770
  private
765
771
 
766
772
  # @private
767
773
  #
768
- # source://mocha//lib/mocha/configuration.rb#60
774
+ # source://mocha//lib/mocha/configuration.rb#61
769
775
  def initialize_copy(other); end
770
776
 
771
777
  class << self
772
778
  # @private
773
779
  #
774
- # source://mocha//lib/mocha/configuration.rb#327
780
+ # source://mocha//lib/mocha/configuration.rb#334
775
781
  def configuration; end
776
782
 
777
783
  # Temporarily modify {Configuration} options.
@@ -786,31 +792,31 @@ class Mocha::Configuration
786
792
  # @param temporary_options [Hash] the configuration options to apply for the duration of the block.
787
793
  # @yield block during which the configuration change will be in force.
788
794
  #
789
- # source://mocha//lib/mocha/configuration.rb#318
795
+ # source://mocha//lib/mocha/configuration.rb#325
790
796
  def override(temporary_options); end
791
797
 
792
798
  # @private
793
799
  #
794
- # source://mocha//lib/mocha/configuration.rb#302
800
+ # source://mocha//lib/mocha/configuration.rb#309
795
801
  def reset_configuration; end
796
802
 
797
803
  private
798
804
 
799
805
  # @private
800
806
  #
801
- # source://mocha//lib/mocha/configuration.rb#334
807
+ # source://mocha//lib/mocha/configuration.rb#341
802
808
  def change_config(action, new_value, &block); end
803
809
 
804
810
  # @private
805
811
  #
806
- # source://mocha//lib/mocha/configuration.rb#343
812
+ # source://mocha//lib/mocha/configuration.rb#350
807
813
  def temporarily_change_config(action, new_value); end
808
814
  end
809
815
  end
810
816
 
811
817
  # @private
812
818
  #
813
- # source://mocha//lib/mocha/configuration.rb#41
819
+ # source://mocha//lib/mocha/configuration.rb#42
814
820
  Mocha::Configuration::DEFAULTS = T.let(T.unsafe(nil), Hash)
815
821
 
816
822
  # source://mocha//lib/mocha/debug.rb#2
@@ -923,22 +929,22 @@ class Mocha::Expectation
923
929
  # @private
924
930
  # @return [Expectation] a new instance of Expectation
925
931
  #
926
- # source://mocha//lib/mocha/expectation.rb#597
932
+ # source://mocha//lib/mocha/expectation.rb#618
927
933
  def initialize(mock, expected_method_name, backtrace = T.unsafe(nil)); end
928
934
 
929
935
  # @private
930
936
  #
931
- # source://mocha//lib/mocha/expectation.rb#616
937
+ # source://mocha//lib/mocha/expectation.rb#637
932
938
  def add_in_sequence_ordering_constraint(sequence); end
933
939
 
934
940
  # @private
935
941
  #
936
- # source://mocha//lib/mocha/expectation.rb#611
942
+ # source://mocha//lib/mocha/expectation.rb#632
937
943
  def add_ordering_constraint(ordering_constraint); end
938
944
 
939
945
  # @private
940
946
  #
941
- # source://mocha//lib/mocha/expectation.rb#621
947
+ # source://mocha//lib/mocha/expectation.rb#642
942
948
  def add_side_effect(side_effect); end
943
949
 
944
950
  # Modifies expectation so that the expected method must be called at least a +minimum_number_of_times+.
@@ -1010,18 +1016,18 @@ class Mocha::Expectation
1010
1016
 
1011
1017
  # @private
1012
1018
  #
1013
- # source://mocha//lib/mocha/expectation.rb#594
1019
+ # source://mocha//lib/mocha/expectation.rb#615
1014
1020
  def backtrace; end
1015
1021
 
1016
1022
  # @private
1017
1023
  #
1018
- # source://mocha//lib/mocha/expectation.rb#704
1024
+ # source://mocha//lib/mocha/expectation.rb#730
1019
1025
  def definition_location; end
1020
1026
 
1021
1027
  # @private
1022
1028
  # @return [Boolean]
1023
1029
  #
1024
- # source://mocha//lib/mocha/expectation.rb#631
1030
+ # source://mocha//lib/mocha/expectation.rb#652
1025
1031
  def in_correct_order?; end
1026
1032
 
1027
1033
  # Constrains the expectation so that it must be invoked at the current point in the +sequence+.
@@ -1046,45 +1052,51 @@ class Mocha::Expectation
1046
1052
  # @return [Expectation] the same expectation, thereby allowing invocations of other {Expectation} methods to be chained.
1047
1053
  # @see API#sequence
1048
1054
  #
1049
- # source://mocha//lib/mocha/expectation.rb#588
1055
+ # source://mocha//lib/mocha/expectation.rb#609
1050
1056
  def in_sequence(sequence, *sequences); end
1051
1057
 
1052
1058
  # @private
1053
1059
  #
1054
- # source://mocha//lib/mocha/expectation.rb#680
1060
+ # source://mocha//lib/mocha/expectation.rb#706
1055
1061
  def inspect; end
1056
1062
 
1057
1063
  # @private
1058
1064
  # @return [Boolean]
1059
1065
  #
1060
- # source://mocha//lib/mocha/expectation.rb#652
1066
+ # source://mocha//lib/mocha/expectation.rb#673
1061
1067
  def invocations_allowed?; end
1062
1068
 
1063
1069
  # @private
1070
+ # @return [Boolean]
1064
1071
  #
1065
- # source://mocha//lib/mocha/expectation.rb#662
1072
+ # source://mocha//lib/mocha/expectation.rb#678
1073
+ def invocations_never_allowed?; end
1074
+
1075
+ # @private
1076
+ #
1077
+ # source://mocha//lib/mocha/expectation.rb#688
1066
1078
  def invoke(invocation); end
1067
1079
 
1068
1080
  # @private
1069
1081
  # @return [Boolean]
1070
1082
  #
1071
- # source://mocha//lib/mocha/expectation.rb#646
1083
+ # source://mocha//lib/mocha/expectation.rb#667
1072
1084
  def match?(invocation, ignoring_order: T.unsafe(nil)); end
1073
1085
 
1074
1086
  # @private
1075
1087
  # @return [Boolean]
1076
1088
  #
1077
- # source://mocha//lib/mocha/expectation.rb#641
1089
+ # source://mocha//lib/mocha/expectation.rb#662
1078
1090
  def matches_method?(method_name); end
1079
1091
 
1080
1092
  # @private
1081
1093
  #
1082
- # source://mocha//lib/mocha/expectation.rb#697
1094
+ # source://mocha//lib/mocha/expectation.rb#723
1083
1095
  def method_signature; end
1084
1096
 
1085
1097
  # @private
1086
1098
  #
1087
- # source://mocha//lib/mocha/expectation.rb#687
1099
+ # source://mocha//lib/mocha/expectation.rb#713
1088
1100
  def mocha_inspect; end
1089
1101
 
1090
1102
  # Modifies expectation so that when the expected method is called, it yields multiple times per invocation with the specified +parameter_groups+.
@@ -1110,7 +1122,7 @@ class Mocha::Expectation
1110
1122
  # @return [Expectation] the same expectation, thereby allowing invocations of other {Expectation} methods to be chained.
1111
1123
  # @see #then
1112
1124
  #
1113
- # source://mocha//lib/mocha/expectation.rb#375
1125
+ # source://mocha//lib/mocha/expectation.rb#396
1114
1126
  def multiple_yields(*parameter_groups); end
1115
1127
 
1116
1128
  # Modifies expectation so that the expected method must never be called.
@@ -1153,16 +1165,20 @@ class Mocha::Expectation
1153
1165
 
1154
1166
  # @private
1155
1167
  #
1156
- # source://mocha//lib/mocha/expectation.rb#636
1168
+ # source://mocha//lib/mocha/expectation.rb#657
1157
1169
  def ordering_constraints_not_allowing_invocation_now; end
1158
1170
 
1159
1171
  # @private
1160
1172
  #
1161
- # source://mocha//lib/mocha/expectation.rb#626
1173
+ # source://mocha//lib/mocha/expectation.rb#647
1162
1174
  def perform_side_effects; end
1163
1175
 
1164
1176
  # 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)+.
1165
1177
  #
1178
+ # @example Raise specified exception if expected method is invoked.
1179
+ # object = stub()
1180
+ # object.stubs(:expected_method).raises(Exception, 'message')
1181
+ # object.expected_method # => raises exception of class Exception and with message 'message'
1166
1182
  # @example Raise custom exception with extra constructor parameters by passing in an instance of the exception.
1167
1183
  # object = stub()
1168
1184
  # object.stubs(:expected_method).raises(MyException.new('message', 1, 2, 3))
@@ -1172,10 +1188,6 @@ class Mocha::Expectation
1172
1188
  # object.stubs(:expected_method).raises(Exception1).then.raises(Exception2)
1173
1189
  # object.expected_method # => raises exception of class Exception1
1174
1190
  # 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'
1179
1191
  # @example Raise an exception on first invocation of expected method and then return values on subsequent invocations.
1180
1192
  # object = stub()
1181
1193
  # object.stubs(:expected_method).raises(Exception).then.returns(2, 3)
@@ -1191,7 +1203,7 @@ class Mocha::Expectation
1191
1203
  # @see Kernel#raise
1192
1204
  # @see #then
1193
1205
  #
1194
- # source://mocha//lib/mocha/expectation.rb#462
1206
+ # source://mocha//lib/mocha/expectation.rb#483
1195
1207
  def raises(exception = T.unsafe(nil), message = T.unsafe(nil)); end
1196
1208
 
1197
1209
  # Modifies expectation so that when the expected method is called, it returns the specified +value+.
@@ -1229,13 +1241,13 @@ class Mocha::Expectation
1229
1241
  # @return [Expectation] the same expectation, thereby allowing invocations of other {Expectation} methods to be chained.
1230
1242
  # @see #then
1231
1243
  #
1232
- # source://mocha//lib/mocha/expectation.rb#422
1244
+ # source://mocha//lib/mocha/expectation.rb#443
1233
1245
  def returns(*values); end
1234
1246
 
1235
1247
  # @private
1236
1248
  # @return [Boolean]
1237
1249
  #
1238
- # source://mocha//lib/mocha/expectation.rb#657
1250
+ # source://mocha//lib/mocha/expectation.rb#683
1239
1251
  def satisfied?; end
1240
1252
 
1241
1253
  # @example Using {#then} as syntactic sugar when specifying values to be returned and exceptions to be raised on consecutive invocations of the expected method.
@@ -1259,19 +1271,19 @@ class Mocha::Expectation
1259
1271
  # @overload then
1260
1272
  # @return [Expectation] the same expectation, thereby allowing invocations of other {Expectation} methods to be chained.
1261
1273
  #
1262
- # source://mocha//lib/mocha/expectation.rb#536
1274
+ # source://mocha//lib/mocha/expectation.rb#557
1263
1275
  def then(state = T.unsafe(nil)); end
1264
1276
 
1265
1277
  # 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)+.
1266
1278
  #
1267
- # @example Throw tag with return value +object+ c.f. +Kernel#throw+.
1268
- # object = stub()
1269
- # object.stubs(:expected_method).throws(:done, 'result')
1270
- # object.expected_method # => throws tag :done and causes catch block to return 'result'
1271
1279
  # @example Throw tag when expected method is invoked.
1272
1280
  # object = stub()
1273
1281
  # object.stubs(:expected_method).throws(:done)
1274
1282
  # object.expected_method # => throws tag :done
1283
+ # @example Throw tag with return value +object+ c.f. +Kernel#throw+.
1284
+ # object = stub()
1285
+ # object.stubs(:expected_method).throws(:done, 'result')
1286
+ # object.expected_method # => throws tag :done and causes catch block to return 'result'
1275
1287
  # @example Throw different tags on consecutive invocations of the expected method.
1276
1288
  # object = stub()
1277
1289
  # object.stubs(:expected_method).throws(:done).then.throws(:continue)
@@ -1291,7 +1303,7 @@ class Mocha::Expectation
1291
1303
  # @see Kernel#throw
1292
1304
  # @see #then
1293
1305
  #
1294
- # source://mocha//lib/mocha/expectation.rb#501
1306
+ # source://mocha//lib/mocha/expectation.rb#522
1295
1307
  def throws(tag, object = T.unsafe(nil)); end
1296
1308
 
1297
1309
  # Modifies expectation so that the number of calls to the expected method must be within a specific +range+.
@@ -1349,13 +1361,13 @@ class Mocha::Expectation
1349
1361
  # @private
1350
1362
  # @return [Boolean]
1351
1363
  #
1352
- # source://mocha//lib/mocha/expectation.rb#675
1364
+ # source://mocha//lib/mocha/expectation.rb#701
1353
1365
  def used?; end
1354
1366
 
1355
1367
  # @private
1356
1368
  # @return [Boolean]
1357
1369
  #
1358
- # source://mocha//lib/mocha/expectation.rb#669
1370
+ # source://mocha//lib/mocha/expectation.rb#695
1359
1371
  def verified?(assertion_counter = T.unsafe(nil)); end
1360
1372
 
1361
1373
  # Constrains the expectation to occur only when the +state_machine+ is in the state specified by +state_predicate+.
@@ -1376,13 +1388,18 @@ class Mocha::Expectation
1376
1388
  # @see StateMachine
1377
1389
  # @see #then
1378
1390
  #
1379
- # source://mocha//lib/mocha/expectation.rb#560
1391
+ # source://mocha//lib/mocha/expectation.rb#581
1380
1392
  def when(state_predicate); end
1381
1393
 
1382
1394
  # Modifies expectation so that the expected method must be called with +expected_parameters_or_matchers+.
1383
1395
  #
1384
1396
  # May be used with Ruby literals or variables for exact matching or with parameter matchers for less-specific matching, e.g. {ParameterMatchers#includes}, {ParameterMatchers#has_key}, etc. See {ParameterMatchers} for a list of all available parameter matchers.
1385
1397
  #
1398
+ # Alternatively a block argument can be passed to {#with} to implement custom parameter matching. The block receives the +*actual_parameters+ as its arguments and should return +true+ if they are acceptable or +false+ otherwise. See the example below where a method is expected to be called with a value divisible by 4.
1399
+ # The block argument takes precedence over +expected_parameters_or_matchers+. The block may be called multiple times per invocation of the expected method and so it should be idempotent.
1400
+ #
1401
+ # Note that if {#with} is called multiple times on the same expectation, the last call takes precedence; other calls are ignored.
1402
+ #
1386
1403
  # Positional arguments were separated from keyword arguments in Ruby v3 (see {https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0 this article}). In relation to this a new configuration option ({Configuration#strict_keyword_argument_matching=}) is available in Ruby >= 2.7.
1387
1404
  #
1388
1405
  # When {Configuration#strict_keyword_argument_matching=} is set to +false+ (which is currently the default), a positional +Hash+ and a set of keyword arguments passed to {#with} are treated the same for the purposes of parameter matching. However, a deprecation warning will be displayed if a positional +Hash+ matches a set of keyword arguments or vice versa. This is because {Configuration#strict_keyword_argument_matching=} will default to +true+ in the future.
@@ -1433,7 +1450,7 @@ class Mocha::Expectation
1433
1450
  # example.expects(:foo).with('a', bar: 'b')
1434
1451
  # example.foo('a', { bar: 'b' })
1435
1452
  # # This now fails as expected
1436
- # @example Expected method must be called with a value divisible by 4.
1453
+ # @example Using a block argument to expect the method to be called with a value divisible by 4.
1437
1454
  # object = mock()
1438
1455
  # object.expects(:expected_method).with() { |value| value % 4 == 0 }
1439
1456
  # object.expected_method(16)
@@ -1443,15 +1460,30 @@ class Mocha::Expectation
1443
1460
  # object.expects(:expected_method).with() { |value| value % 4 == 0 }
1444
1461
  # object.expected_method(17)
1445
1462
  # # => verify fails
1446
- # @param expected_parameters_or_matchers [*Array<Object,ParameterMatchers::Base>] expected parameter values or parameter matchers.
1463
+ # @example Extracting a custom matcher into an instance method on the test class.
1464
+ # class MyTest < Minitest::Test
1465
+ # def test_expected_method_is_called_with_a_value_divisible_by_4
1466
+ # object = mock()
1467
+ # object.expects(:expected_method).with(&method(:divisible_by_4))
1468
+ # object.expected_method(16)
1469
+ # # => verify succeeds
1470
+ # end
1471
+ #
1472
+ # private
1473
+ #
1474
+ # def divisible_by_4(value)
1475
+ # value % 4 == 0
1476
+ # end
1477
+ # end
1478
+ # @param expected_parameters_or_matchers [Array<Object,ParameterMatchers::Base>] expected parameter values or parameter matchers.
1447
1479
  # @return [Expectation] the same expectation, thereby allowing invocations of other {Expectation} methods to be chained.
1448
1480
  # @see ParameterMatchers
1449
1481
  # @see Configuration#strict_keyword_argument_matching=
1450
1482
  # @yield optional block specifying custom matching.
1451
- # @yieldparam actual_parameters [*Array<Object>] parameters with which expected method was invoked.
1452
- # @yieldreturn [Boolean] +true+ if +actual_parameters+ are acceptable.
1483
+ # @yieldparam actual_parameters [Array<Object>] parameters with which expected method was invoked.
1484
+ # @yieldreturn [Boolean] +true+ if +actual_parameters+ are acceptable; +false+ otherwise.
1453
1485
  #
1454
- # source://mocha//lib/mocha/expectation.rb#269
1486
+ # source://mocha//lib/mocha/expectation.rb#290
1455
1487
  def with(*expected_parameters_or_matchers, **_arg1, &matching_block); end
1456
1488
 
1457
1489
  # Modifies expectation so that the expected method must be called with a block.
@@ -1468,7 +1500,7 @@ class Mocha::Expectation
1468
1500
  # # => verify fails
1469
1501
  # @return [Expectation] the same expectation, thereby allowing invocations of other {Expectation} methods to be chained.
1470
1502
  #
1471
- # source://mocha//lib/mocha/expectation.rb#289
1503
+ # source://mocha//lib/mocha/expectation.rb#310
1472
1504
  def with_block_given; end
1473
1505
 
1474
1506
  # Modifies expectation so that the expected method must be called without a block.
@@ -1485,7 +1517,7 @@ class Mocha::Expectation
1485
1517
  # # => verify fails
1486
1518
  # @return [Expectation] the same expectation, thereby allowing invocations of other {Expectation} methods to be chained.
1487
1519
  #
1488
- # source://mocha//lib/mocha/expectation.rb#308
1520
+ # source://mocha//lib/mocha/expectation.rb#329
1489
1521
  def with_no_block_given; end
1490
1522
 
1491
1523
  # Modifies expectation so that when the expected method is called, it yields to the block with the specified +parameters+.
@@ -1520,7 +1552,7 @@ class Mocha::Expectation
1520
1552
  # @return [Expectation] the same expectation, thereby allowing invocations of other {Expectation} methods to be chained.
1521
1553
  # @see #then
1522
1554
  #
1523
- # source://mocha//lib/mocha/expectation.rb#347
1555
+ # source://mocha//lib/mocha/expectation.rb#368
1524
1556
  def yields(*parameters); end
1525
1557
  end
1526
1558
 
@@ -1594,17 +1626,20 @@ class Mocha::ExpectationList
1594
1626
  # source://mocha//lib/mocha/expectation_list.rb#20
1595
1627
  def match(invocation, ignoring_order: T.unsafe(nil)); end
1596
1628
 
1597
- # source://mocha//lib/mocha/expectation_list.rb#28
1629
+ # source://mocha//lib/mocha/expectation_list.rb#24
1598
1630
  def match_allowing_invocation(invocation); end
1599
1631
 
1600
- # source://mocha//lib/mocha/expectation_list.rb#24
1601
- def match_but_out_of_order(invocation); end
1632
+ # source://mocha//lib/mocha/expectation_list.rb#28
1633
+ def match_never_allowing_invocation(invocation); end
1602
1634
 
1603
1635
  # @return [Boolean]
1604
1636
  #
1605
1637
  # source://mocha//lib/mocha/expectation_list.rb#16
1606
1638
  def matches_method?(method_name); end
1607
1639
 
1640
+ # source://mocha//lib/mocha/expectation_list.rb#56
1641
+ def matching_expectations(invocation, ignoring_order: T.unsafe(nil)); end
1642
+
1608
1643
  # source://mocha//lib/mocha/expectation_list.rb#12
1609
1644
  def remove_all_matching_method(method_name); end
1610
1645
 
@@ -1618,11 +1653,6 @@ class Mocha::ExpectationList
1618
1653
  #
1619
1654
  # source://mocha//lib/mocha/expectation_list.rb#32
1620
1655
  def verified?(assertion_counter = T.unsafe(nil)); end
1621
-
1622
- private
1623
-
1624
- # source://mocha//lib/mocha/expectation_list.rb#58
1625
- def matching_expectations(invocation, ignoring_order: T.unsafe(nil)); end
1626
1656
  end
1627
1657
 
1628
1658
  # Integration hooks for test library authors.
@@ -1935,6 +1965,9 @@ end
1935
1965
  # while an +expects(:foo).at_least_once+ expectation will always be matched
1936
1966
  # against invocations.
1937
1967
  #
1968
+ # However, note that if the expectation that matches the invocation has a
1969
+ # cardinality of "never", then an unexpected invocation error is reported.
1970
+ #
1938
1971
  # This scheme allows you to:
1939
1972
  #
1940
1973
  # - Set up default stubs in your the +setup+ method of your test class and
@@ -1974,17 +2007,17 @@ end
1974
2007
  # object.expected_method # => 2
1975
2008
  # object.expected_method # => raises exception of class Exception1
1976
2009
  #
1977
- # source://mocha//lib/mocha/mock.rb#75
2010
+ # source://mocha//lib/mocha/mock.rb#79
1978
2011
  class Mocha::Mock
1979
2012
  # @private
1980
2013
  # @return [Mock] a new instance of Mock
1981
2014
  #
1982
- # source://mocha//lib/mocha/mock.rb#275
2015
+ # source://mocha//lib/mocha/mock.rb#279
1983
2016
  def initialize(mockery, name = T.unsafe(nil), receiver = T.unsafe(nil)); end
1984
2017
 
1985
2018
  # @private
1986
2019
  #
1987
- # source://mocha//lib/mocha/mock.rb#299
2020
+ # source://mocha//lib/mocha/mock.rb#303
1988
2021
  def __expectations__; end
1989
2022
 
1990
2023
  # Adds an expectation that the specified method must be called exactly once with any parameters.
@@ -2015,12 +2048,12 @@ class Mocha::Mock
2015
2048
  # @overload expects
2016
2049
  # @return [Expectation] last-built expectation which can be further modified by methods on {Expectation}.
2017
2050
  #
2018
- # source://mocha//lib/mocha/mock.rb#110
2051
+ # source://mocha//lib/mocha/mock.rb#114
2019
2052
  def __expects__(method_name_or_hash, backtrace = T.unsafe(nil)); end
2020
2053
 
2021
2054
  # @private
2022
2055
  #
2023
- # source://mocha//lib/mocha/mock.rb#346
2056
+ # source://mocha//lib/mocha/mock.rb#363
2024
2057
  def __expire__(origin); end
2025
2058
 
2026
2059
  def __singleton_class__; end
@@ -2046,34 +2079,34 @@ class Mocha::Mock
2046
2079
  # @overload stubs
2047
2080
  # @return [Expectation] last-built expectation which can be further modified by methods on {Expectation}.
2048
2081
  #
2049
- # source://mocha//lib/mocha/mock.rb#149
2082
+ # source://mocha//lib/mocha/mock.rb#153
2050
2083
  def __stubs__(method_name_or_hash, backtrace = T.unsafe(nil)); end
2051
2084
 
2052
2085
  # @private
2053
2086
  # @return [Boolean]
2054
2087
  #
2055
- # source://mocha//lib/mocha/mock.rb#341
2088
+ # source://mocha//lib/mocha/mock.rb#358
2056
2089
  def __verified__?(assertion_counter = T.unsafe(nil)); end
2057
2090
 
2058
2091
  # @private
2059
2092
  #
2060
- # source://mocha//lib/mocha/mock.rb#309
2093
+ # source://mocha//lib/mocha/mock.rb#313
2061
2094
  def all_expectations; end
2062
2095
 
2063
2096
  # @private
2064
2097
  # @return [Boolean]
2065
2098
  #
2066
- # source://mocha//lib/mocha/mock.rb#366
2099
+ # source://mocha//lib/mocha/mock.rb#383
2067
2100
  def any_expectations?; end
2068
2101
 
2069
2102
  # @private
2070
2103
  #
2071
- # source://mocha//lib/mocha/mock.rb#361
2104
+ # source://mocha//lib/mocha/mock.rb#378
2072
2105
  def ensure_method_not_already_defined(method_name); end
2073
2106
 
2074
2107
  # @private
2075
2108
  #
2076
- # source://mocha//lib/mocha/mock.rb#287
2109
+ # source://mocha//lib/mocha/mock.rb#291
2077
2110
  def everything_stubbed; end
2078
2111
 
2079
2112
  # Adds an expectation that the specified method must be called exactly once with any parameters.
@@ -2104,27 +2137,27 @@ class Mocha::Mock
2104
2137
  # @overload expects
2105
2138
  # @return [Expectation] last-built expectation which can be further modified by methods on {Expectation}.
2106
2139
  #
2107
- # source://mocha//lib/mocha/mock.rb#110
2140
+ # source://mocha//lib/mocha/mock.rb#114
2108
2141
  def expects(method_name_or_hash, backtrace = T.unsafe(nil)); end
2109
2142
 
2110
2143
  # @private
2111
2144
  #
2112
- # source://mocha//lib/mocha/mock.rb#320
2145
+ # source://mocha//lib/mocha/mock.rb#324
2113
2146
  def handle_method_call(symbol, arguments, block); end
2114
2147
 
2115
2148
  # @private
2116
2149
  #
2117
- # source://mocha//lib/mocha/mock.rb#356
2150
+ # source://mocha//lib/mocha/mock.rb#373
2118
2151
  def inspect; end
2119
2152
 
2120
2153
  # @private
2121
2154
  #
2122
- # source://mocha//lib/mocha/mock.rb#314
2155
+ # source://mocha//lib/mocha/mock.rb#318
2123
2156
  def method_missing(symbol, *arguments, **_arg2, &block); end
2124
2157
 
2125
2158
  # @private
2126
2159
  #
2127
- # source://mocha//lib/mocha/mock.rb#351
2160
+ # source://mocha//lib/mocha/mock.rb#368
2128
2161
  def mocha_inspect; end
2129
2162
 
2130
2163
  # Constrains the {Mock} instance so that it can only expect or stub methods to which +responder+ responds publicly. The constraint is only applied at method invocation time.
@@ -2174,7 +2207,7 @@ class Mocha::Mock
2174
2207
  # @return [Mock] the same {Mock} instance, thereby allowing invocations of other {Mock} methods to be chained.
2175
2208
  # @see #responds_like_instance_of
2176
2209
  #
2177
- # source://mocha//lib/mocha/mock.rb#237
2210
+ # source://mocha//lib/mocha/mock.rb#241
2178
2211
  def quacks_like(responder); end
2179
2212
 
2180
2213
  # Constrains the {Mock} instance so that it can only expect or stub methods to which an instance of the +responder_class+ responds publicly. The constraint is only applied at method invocation time. Note that the responder instance is instantiated using +Class#allocate+.
@@ -2205,7 +2238,7 @@ class Mocha::Mock
2205
2238
  # @return [Mock] the same {Mock} instance, thereby allowing invocations of other {Mock} methods to be chained.
2206
2239
  # @see #responds_like
2207
2240
  #
2208
- # source://mocha//lib/mocha/mock.rb#270
2241
+ # source://mocha//lib/mocha/mock.rb#274
2209
2242
  def quacks_like_instance_of(responder_class); end
2210
2243
 
2211
2244
  # Constrains the {Mock} instance so that it can only expect or stub methods to which +responder+ responds publicly. The constraint is only applied at method invocation time.
@@ -2255,7 +2288,7 @@ class Mocha::Mock
2255
2288
  # @return [Mock] the same {Mock} instance, thereby allowing invocations of other {Mock} methods to be chained.
2256
2289
  # @see #responds_like_instance_of
2257
2290
  #
2258
- # source://mocha//lib/mocha/mock.rb#237
2291
+ # source://mocha//lib/mocha/mock.rb#241
2259
2292
  def responds_like(responder); end
2260
2293
 
2261
2294
  # Constrains the {Mock} instance so that it can only expect or stub methods to which an instance of the +responder_class+ responds publicly. The constraint is only applied at method invocation time. Note that the responder instance is instantiated using +Class#allocate+.
@@ -2286,12 +2319,12 @@ class Mocha::Mock
2286
2319
  # @return [Mock] the same {Mock} instance, thereby allowing invocations of other {Mock} methods to be chained.
2287
2320
  # @see #responds_like
2288
2321
  #
2289
- # source://mocha//lib/mocha/mock.rb#270
2322
+ # source://mocha//lib/mocha/mock.rb#274
2290
2323
  def responds_like_instance_of(responder_class); end
2291
2324
 
2292
2325
  # @private
2293
2326
  #
2294
- # source://mocha//lib/mocha/mock.rb#304
2327
+ # source://mocha//lib/mocha/mock.rb#308
2295
2328
  def stub_everything; end
2296
2329
 
2297
2330
  # Adds an expectation that the specified method may be called any number of times with any parameters.
@@ -2315,7 +2348,7 @@ class Mocha::Mock
2315
2348
  # @overload stubs
2316
2349
  # @return [Expectation] last-built expectation which can be further modified by methods on {Expectation}.
2317
2350
  #
2318
- # source://mocha//lib/mocha/mock.rb#149
2351
+ # source://mocha//lib/mocha/mock.rb#153
2319
2352
  def stubs(method_name_or_hash, backtrace = T.unsafe(nil)); end
2320
2353
 
2321
2354
  # Removes the specified stubbed methods (added by calls to {#expects} or {#stubs}) and all expectations associated with them.
@@ -2335,26 +2368,26 @@ class Mocha::Mock
2335
2368
  # multiplier.unstub(:triple)
2336
2369
  # @param method_names [Array<Symbol>] names of methods to unstub.
2337
2370
  #
2338
- # source://mocha//lib/mocha/mock.rb#182
2371
+ # source://mocha//lib/mocha/mock.rb#186
2339
2372
  def unstub(*method_names); end
2340
2373
 
2341
2374
  private
2342
2375
 
2343
2376
  # @raise [StubbingError]
2344
2377
  #
2345
- # source://mocha//lib/mocha/mock.rb#393
2378
+ # source://mocha//lib/mocha/mock.rb#410
2346
2379
  def check_expiry; end
2347
2380
 
2348
- # source://mocha//lib/mocha/mock.rb#387
2381
+ # source://mocha//lib/mocha/mock.rb#404
2349
2382
  def check_responder_responds_to(symbol); end
2350
2383
 
2351
- # source://mocha//lib/mocha/mock.rb#372
2384
+ # source://mocha//lib/mocha/mock.rb#389
2352
2385
  def raise_unexpected_invocation_error(invocation, matching_expectation); end
2353
2386
 
2354
2387
  # @private
2355
2388
  # @return [Boolean]
2356
2389
  #
2357
- # source://mocha//lib/mocha/mock.rb#332
2390
+ # source://mocha//lib/mocha/mock.rb#349
2358
2391
  def respond_to_missing?(symbol, _include_all); end
2359
2392
  end
2360
2393
 
@@ -3616,7 +3649,7 @@ class Mocha::ParametersMatcher
3616
3649
  # source://mocha//lib/mocha/parameters_matcher.rb#12
3617
3650
  def match?(actual_parameters = T.unsafe(nil)); end
3618
3651
 
3619
- # source://mocha//lib/mocha/parameters_matcher.rb#30
3652
+ # source://mocha//lib/mocha/parameters_matcher.rb#34
3620
3653
  def matchers; end
3621
3654
 
3622
3655
  # source://mocha//lib/mocha/parameters_matcher.rb#24
@@ -3631,6 +3664,9 @@ end
3631
3664
  # source://mocha//lib/mocha/ruby_version.rb#2
3632
3665
  Mocha::RUBY_V27_PLUS = T.let(T.unsafe(nil), TrueClass)
3633
3666
 
3667
+ # source://mocha//lib/mocha/ruby_version.rb#3
3668
+ Mocha::RUBY_V34_PLUS = T.let(T.unsafe(nil), FalseClass)
3669
+
3634
3670
  # source://mocha//lib/mocha/raised_exception.rb#2
3635
3671
  class Mocha::RaisedException
3636
3672
  # @return [RaisedException] a new instance of RaisedException