lunchmoney 1.2.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 (63) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/build_and_publish_yard_docs.yml +1 -1
  3. data/.github/workflows/check_pipeline.yml +2 -2
  4. data/.github/workflows/ci.yml +1 -1
  5. data/.github/workflows/{dependabot-rbi-updater.yml → rbi-updater.yml} +2 -3
  6. data/.simplecov +1 -2
  7. data/Gemfile +2 -3
  8. data/Gemfile.lock +70 -75
  9. data/lib/lunchmoney/objects/transaction.rb +9 -1
  10. data/lib/lunchmoney/objects/user.rb +4 -1
  11. data/lib/lunchmoney/version.rb +1 -1
  12. data/sorbet/rbi/annotations/activesupport.rbi +31 -0
  13. data/sorbet/rbi/annotations/minitest.rbi +119 -0
  14. data/sorbet/rbi/dsl/active_support/callbacks.rbi +1 -0
  15. data/sorbet/rbi/gems/{activesupport@7.1.3.2.rbi → activesupport@7.2.1.rbi} +1345 -1253
  16. data/sorbet/rbi/gems/{addressable@2.8.6.rbi → addressable@2.8.7.rbi} +2 -1
  17. data/sorbet/rbi/gems/{bigdecimal@3.1.7.rbi → bigdecimal@3.1.8.rbi} +1 -0
  18. data/sorbet/rbi/gems/{chef-utils@18.4.2.rbi → chef-utils@18.5.0.rbi} +1 -0
  19. data/sorbet/rbi/gems/{concurrent-ruby@1.2.3.rbi → concurrent-ruby@1.3.4.rbi} +64 -9
  20. data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +1 -0
  21. data/sorbet/rbi/gems/{dotenv@3.1.0.rbi → dotenv@3.1.2.rbi} +20 -17
  22. data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.0.rbi} +20 -15
  23. data/sorbet/rbi/gems/{faraday-net_http@3.1.0.rbi → faraday-net_http@3.1.1.rbi} +36 -35
  24. data/sorbet/rbi/gems/{faraday@2.9.0.rbi → faraday@2.10.1.rbi} +79 -33
  25. data/sorbet/rbi/gems/{hashdiff@1.1.0.rbi → hashdiff@1.1.1.rbi} +3 -2
  26. data/sorbet/rbi/gems/{i18n@1.14.4.rbi → i18n@1.14.5.rbi} +43 -14
  27. data/sorbet/rbi/gems/{json@2.7.1.rbi → json@2.7.2.rbi} +72 -72
  28. data/sorbet/rbi/gems/logger@1.6.0.rbi +903 -0
  29. data/sorbet/rbi/gems/{minitest@5.22.3.rbi → minitest@5.25.1.rbi} +245 -235
  30. data/sorbet/rbi/gems/{mixlib-shellout@3.2.7.rbi → mixlib-shellout@3.2.8.rbi} +1 -0
  31. data/sorbet/rbi/gems/{mocha@2.1.0.rbi → mocha@2.4.5.rbi} +169 -144
  32. data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.26.3.rbi} +32 -21
  33. data/sorbet/rbi/gems/{parser@3.3.0.5.rbi → parser@3.3.4.2.rbi} +233 -186
  34. data/sorbet/rbi/gems/{prism@0.24.0.rbi → prism@0.30.0.rbi} +20933 -12761
  35. data/sorbet/rbi/gems/{public_suffix@5.0.4.rbi → public_suffix@6.0.1.rbi} +1 -0
  36. data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.rbi} +34 -33
  37. data/sorbet/rbi/gems/{rack@3.0.10.rbi → rack@3.1.7.rbi} +694 -987
  38. data/sorbet/rbi/gems/{rake@13.1.0.rbi → rake@13.2.1.rbi} +56 -55
  39. data/sorbet/rbi/gems/{rbi@0.1.9.rbi → rbi@0.1.14.rbi} +904 -622
  40. data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.9.2.rbi} +3 -2
  41. data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.3.6.rbi} +383 -245
  42. data/sorbet/rbi/gems/{rubocop-ast@1.31.2.rbi → rubocop-ast@1.32.1.rbi} +393 -349
  43. data/sorbet/rbi/gems/{rubocop-minitest@0.35.0.rbi → rubocop-minitest@0.35.1.rbi} +11 -8
  44. data/sorbet/rbi/gems/{rubocop-rails@2.24.1.rbi → rubocop-rails@2.26.0.rbi} +604 -275
  45. data/sorbet/rbi/gems/{rubocop-sorbet@0.8.0.rbi → rubocop-sorbet@0.8.5.rbi} +253 -127
  46. data/sorbet/rbi/gems/{rubocop@1.62.1.rbi → rubocop@1.65.1.rbi} +2334 -1779
  47. data/sorbet/rbi/gems/securerandom@0.3.1.rbi +73 -0
  48. data/sorbet/rbi/gems/{spoom@1.2.4.rbi → spoom@1.4.2.rbi} +2003 -848
  49. data/sorbet/rbi/gems/strscan@3.1.0.rbi +9 -0
  50. data/sorbet/rbi/gems/{tapioca@0.13.1.rbi → tapioca@0.16.1.rbi} +294 -259
  51. data/sorbet/rbi/gems/{toys-core@0.15.5.rbi → toys-core@0.15.6.rbi} +1 -0
  52. data/sorbet/rbi/gems/{toys@0.15.5.rbi → toys@0.15.6.rbi} +4 -3
  53. data/sorbet/rbi/gems/{vcr@6.2.0.rbi → vcr@6.3.1.rbi} +72 -68
  54. data/sorbet/rbi/gems/{webmock@3.23.0.rbi → webmock@3.23.1.rbi} +1 -0
  55. data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
  56. metadata +46 -49
  57. data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -3426
  58. data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -272
  59. data/sorbet/rbi/gems/mutex_m@0.2.0.rbi +0 -93
  60. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
  61. data/sorbet/rbi/gems/pry-sorbet@0.2.1.rbi +0 -966
  62. data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -10077
  63. data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +0 -23136
@@ -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,30 +15,23 @@ 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
37
31
  include ::Mocha::ParameterMatchers
38
32
  include ::Mocha::Hooks
39
33
  include ::Mocha::API
40
- include ::Mocha::Integration::MiniTest::Adapter
34
+ include ::Mocha::Integration::Minitest::Adapter
41
35
  end
42
36
 
43
37
  # source://mocha//lib/mocha/version.rb#1
@@ -66,7 +60,7 @@ module Mocha
66
60
  end
67
61
  end
68
62
 
69
- # Methods added to +Test::Unit::TestCase+, +MiniTest::Unit::TestCase+ or equivalent.
63
+ # Methods added to +Test::Unit::TestCase+, +Minitest::Unit::TestCase+ or equivalent.
70
64
  # The mock creation methods are {#mock}, {#stub} and {#stub_everything}, all of which return a #{Mock}
71
65
  # which can be further modified by {Mock#responds_like} and {Mock#responds_like_instance_of} methods,
72
66
  # both of which return a {Mock}, too, and can therefore, be chained to the original creation methods.
@@ -100,7 +94,7 @@ module Mocha::API
100
94
  #
101
95
  # @example Using expected_methods_vs_return_values Hash to setup expectations.
102
96
  # def test_motor_starts_and_stops
103
- # motor = mock('motor', :start => true, :stop => true)
97
+ # motor = mock('motor', start: true, stop: true)
104
98
  # assert motor.start
105
99
  # assert motor.stop
106
100
  # # an error will be raised unless both Motor#start and Motor#stop have been called
@@ -115,7 +109,8 @@ module Mocha::API
115
109
 
116
110
  # Builds a new sequence which can be used to constrain the order in which expectations can occur.
117
111
  #
118
- # Specify that an expected invocation must occur within a named {Sequence} by using {Expectation#in_sequence}.
112
+ # Specify that an expected invocation must occur within a named {Sequence} by calling {Expectation#in_sequence}
113
+ # on each expectation or by passing a block within which all expectations should be constrained by the {Sequence}.
119
114
  #
120
115
  # @example Ensure methods on egg are invoked in correct order.
121
116
  # breakfast = sequence('breakfast')
@@ -135,10 +130,19 @@ module Mocha::API
135
130
  #
136
131
  # task_one.execute
137
132
  # task_two.execute
133
+ # @example Ensure methods on egg are invoked in the correct order using a block.
134
+ # egg = mock('egg')
135
+ # sequence('breakfast') do
136
+ # egg.expects(:crack)
137
+ # egg.expects(:fry)
138
+ # egg.expects(:eat)
139
+ # end
140
+ # @param name [String] name of sequence
138
141
  # @return [Sequence] a new sequence
139
142
  # @see Expectation#in_sequence
143
+ # @yield optional block within which expectations should be constrained by the sequence
140
144
  #
141
- # source://mocha//lib/mocha/api.rb#159
145
+ # source://mocha//lib/mocha/api.rb#170
142
146
  def sequence(name); end
143
147
 
144
148
  # Builds a new state machine which can be used to constrain the order in which expectations can occur.
@@ -161,19 +165,20 @@ module Mocha::API
161
165
  # radio.expects(:select_channel).with('BBC World Service').when(power.is('on'))
162
166
  # radio.expects(:adjust_volume).with(-5).when(power.is('on'))
163
167
  # radio.expects(:switch_off).then(power.is('off'))
168
+ # @param name [String] name of state machine
164
169
  # @return [StateMachine] a new state machine
165
170
  # @see Expectation#then
166
171
  # @see Expectation#when
167
172
  # @see StateMachine
168
173
  #
169
- # source://mocha//lib/mocha/api.rb#188
174
+ # source://mocha//lib/mocha/api.rb#207
170
175
  def states(name); end
171
176
 
172
177
  # Builds a new mock object
173
178
  #
174
179
  # @example Using stubbed_methods_vs_return_values Hash to setup stubbed methods.
175
180
  # def test_motor_starts_and_stops
176
- # motor = stub('motor', :start => true, :stop => true)
181
+ # motor = stub('motor', start: true, stop: true)
177
182
  # assert motor.start
178
183
  # assert motor.stop
179
184
  # # an error will not be raised even if either Motor#start or Motor#stop has not been called
@@ -190,7 +195,7 @@ module Mocha::API
190
195
  #
191
196
  # @example Ignore invocations of irrelevant methods.
192
197
  # def test_motor_stops
193
- # motor = stub_everything('motor', :stop => true)
198
+ # motor = stub_everything('motor', stop: true)
194
199
  # assert_nil motor.irrelevant_method_1 # => no error raised
195
200
  # assert_nil motor.irrelevant_method_2 # => no error raised
196
201
  # assert motor.stop
@@ -873,16 +878,16 @@ class Mocha::Deprecation
873
878
  end
874
879
  end
875
880
 
876
- # source://mocha//lib/mocha/detection/mini_test.rb#2
881
+ # source://mocha//lib/mocha/detection/minitest.rb#2
877
882
  module Mocha::Detection; end
878
883
 
879
- # source://mocha//lib/mocha/detection/mini_test.rb#3
880
- module Mocha::Detection::MiniTest
884
+ # source://mocha//lib/mocha/detection/minitest.rb#3
885
+ module Mocha::Detection::Minitest
881
886
  class << self
882
- # source://mocha//lib/mocha/detection/mini_test.rb#4
887
+ # source://mocha//lib/mocha/detection/minitest.rb#4
883
888
  def testcase; end
884
889
 
885
- # source://mocha//lib/mocha/detection/mini_test.rb#12
890
+ # source://mocha//lib/mocha/detection/minitest.rb#12
886
891
  def version; end
887
892
  end
888
893
  end
@@ -1010,7 +1015,7 @@ class Mocha::Expectation
1010
1015
 
1011
1016
  # @private
1012
1017
  #
1013
- # source://mocha//lib/mocha/expectation.rb#698
1018
+ # source://mocha//lib/mocha/expectation.rb#704
1014
1019
  def definition_location; end
1015
1020
 
1016
1021
  # @private
@@ -1046,40 +1051,40 @@ class Mocha::Expectation
1046
1051
 
1047
1052
  # @private
1048
1053
  #
1049
- # source://mocha//lib/mocha/expectation.rb#674
1054
+ # source://mocha//lib/mocha/expectation.rb#680
1050
1055
  def inspect; end
1051
1056
 
1052
1057
  # @private
1053
1058
  # @return [Boolean]
1054
1059
  #
1055
- # source://mocha//lib/mocha/expectation.rb#646
1060
+ # source://mocha//lib/mocha/expectation.rb#652
1056
1061
  def invocations_allowed?; end
1057
1062
 
1058
1063
  # @private
1059
1064
  #
1060
- # source://mocha//lib/mocha/expectation.rb#656
1065
+ # source://mocha//lib/mocha/expectation.rb#662
1061
1066
  def invoke(invocation); end
1062
1067
 
1063
1068
  # @private
1064
1069
  # @return [Boolean]
1065
1070
  #
1066
- # source://mocha//lib/mocha/expectation.rb#641
1067
- def match?(invocation); end
1071
+ # source://mocha//lib/mocha/expectation.rb#646
1072
+ def match?(invocation, ignoring_order: T.unsafe(nil)); end
1068
1073
 
1069
1074
  # @private
1070
1075
  # @return [Boolean]
1071
1076
  #
1072
- # source://mocha//lib/mocha/expectation.rb#636
1077
+ # source://mocha//lib/mocha/expectation.rb#641
1073
1078
  def matches_method?(method_name); end
1074
1079
 
1075
1080
  # @private
1076
1081
  #
1077
- # source://mocha//lib/mocha/expectation.rb#691
1082
+ # source://mocha//lib/mocha/expectation.rb#697
1078
1083
  def method_signature; end
1079
1084
 
1080
1085
  # @private
1081
1086
  #
1082
- # source://mocha//lib/mocha/expectation.rb#681
1087
+ # source://mocha//lib/mocha/expectation.rb#687
1083
1088
  def mocha_inspect; end
1084
1089
 
1085
1090
  # Modifies expectation so that when the expected method is called, it yields multiple times per invocation with the specified +parameter_groups+.
@@ -1146,6 +1151,11 @@ class Mocha::Expectation
1146
1151
  # source://mocha//lib/mocha/expectation.rb#97
1147
1152
  def once; end
1148
1153
 
1154
+ # @private
1155
+ #
1156
+ # source://mocha//lib/mocha/expectation.rb#636
1157
+ def ordering_constraints_not_allowing_invocation_now; end
1158
+
1149
1159
  # @private
1150
1160
  #
1151
1161
  # source://mocha//lib/mocha/expectation.rb#626
@@ -1225,7 +1235,7 @@ class Mocha::Expectation
1225
1235
  # @private
1226
1236
  # @return [Boolean]
1227
1237
  #
1228
- # source://mocha//lib/mocha/expectation.rb#651
1238
+ # source://mocha//lib/mocha/expectation.rb#657
1229
1239
  def satisfied?; end
1230
1240
 
1231
1241
  # @example Using {#then} as syntactic sugar when specifying values to be returned and exceptions to be raised on consecutive invocations of the expected method.
@@ -1339,13 +1349,13 @@ class Mocha::Expectation
1339
1349
  # @private
1340
1350
  # @return [Boolean]
1341
1351
  #
1342
- # source://mocha//lib/mocha/expectation.rb#669
1352
+ # source://mocha//lib/mocha/expectation.rb#675
1343
1353
  def used?; end
1344
1354
 
1345
1355
  # @private
1346
1356
  # @return [Boolean]
1347
1357
  #
1348
- # source://mocha//lib/mocha/expectation.rb#663
1358
+ # source://mocha//lib/mocha/expectation.rb#669
1349
1359
  def verified?(assertion_counter = T.unsafe(nil)); end
1350
1360
 
1351
1361
  # Constrains the expectation to occur only when the +state_machine+ is in the state specified by +state_predicate+.
@@ -1527,9 +1537,9 @@ class Mocha::ExpectationError < ::Exception; end
1527
1537
  #
1528
1538
  # This class should only be used by authors of test libraries and not by typical "users" of Mocha.
1529
1539
  #
1530
- # For example, it is used by +Mocha::Integration::MiniTest::Adapter+ in order to have Mocha raise a +MiniTest::Assertion+ which can then be sensibly handled by +MiniTest::Unit::TestCase+.
1540
+ # For example, it is used by +Mocha::Integration::Minitest::Adapter+ in order to have Mocha raise a +Minitest::Assertion+ which can then be sensibly handled by +Minitest::Unit::TestCase+.
1531
1541
  #
1532
- # @see Mocha::Integration::MiniTest::Adapter
1542
+ # @see Mocha::Integration::Minitest::Adapter
1533
1543
  #
1534
1544
  # source://mocha//lib/mocha/expectation_error_factory.rb#12
1535
1545
  class Mocha::ExpectationErrorFactory
@@ -1567,7 +1577,7 @@ class Mocha::ExpectationList
1567
1577
  # source://mocha//lib/mocha/expectation_list.rb#3
1568
1578
  def initialize(expectations = T.unsafe(nil)); end
1569
1579
 
1570
- # source://mocha//lib/mocha/expectation_list.rb#48
1580
+ # source://mocha//lib/mocha/expectation_list.rb#52
1571
1581
  def +(other); end
1572
1582
 
1573
1583
  # source://mocha//lib/mocha/expectation_list.rb#7
@@ -1575,18 +1585,21 @@ class Mocha::ExpectationList
1575
1585
 
1576
1586
  # @return [Boolean]
1577
1587
  #
1578
- # source://mocha//lib/mocha/expectation_list.rb#44
1588
+ # source://mocha//lib/mocha/expectation_list.rb#48
1579
1589
  def any?; end
1580
1590
 
1581
- # source://mocha//lib/mocha/expectation_list.rb#40
1591
+ # source://mocha//lib/mocha/expectation_list.rb#44
1582
1592
  def length; end
1583
1593
 
1584
1594
  # source://mocha//lib/mocha/expectation_list.rb#20
1585
- def match(invocation); end
1595
+ def match(invocation, ignoring_order: T.unsafe(nil)); end
1586
1596
 
1587
- # source://mocha//lib/mocha/expectation_list.rb#24
1597
+ # source://mocha//lib/mocha/expectation_list.rb#28
1588
1598
  def match_allowing_invocation(invocation); end
1589
1599
 
1600
+ # source://mocha//lib/mocha/expectation_list.rb#24
1601
+ def match_but_out_of_order(invocation); end
1602
+
1590
1603
  # @return [Boolean]
1591
1604
  #
1592
1605
  # source://mocha//lib/mocha/expectation_list.rb#16
@@ -1595,21 +1608,21 @@ class Mocha::ExpectationList
1595
1608
  # source://mocha//lib/mocha/expectation_list.rb#12
1596
1609
  def remove_all_matching_method(method_name); end
1597
1610
 
1598
- # source://mocha//lib/mocha/expectation_list.rb#32
1611
+ # source://mocha//lib/mocha/expectation_list.rb#36
1599
1612
  def to_a; end
1600
1613
 
1601
- # source://mocha//lib/mocha/expectation_list.rb#36
1614
+ # source://mocha//lib/mocha/expectation_list.rb#40
1602
1615
  def to_set; end
1603
1616
 
1604
1617
  # @return [Boolean]
1605
1618
  #
1606
- # source://mocha//lib/mocha/expectation_list.rb#28
1619
+ # source://mocha//lib/mocha/expectation_list.rb#32
1607
1620
  def verified?(assertion_counter = T.unsafe(nil)); end
1608
1621
 
1609
1622
  private
1610
1623
 
1611
- # source://mocha//lib/mocha/expectation_list.rb#54
1612
- def matching_expectations(invocation); end
1624
+ # source://mocha//lib/mocha/expectation_list.rb#58
1625
+ def matching_expectations(invocation, ignoring_order: T.unsafe(nil)); end
1613
1626
  end
1614
1627
 
1615
1628
  # Integration hooks for test library authors.
@@ -1618,12 +1631,12 @@ end
1618
1631
  #
1619
1632
  # This module is provided as part of the +Mocha::API+ module and is therefore part of the public API, but should only be used by authors of test libraries and not by typical "users" of Mocha.
1620
1633
  #
1621
- # Integration with Test::Unit and MiniTest are provided as part of Mocha, because they are (or were once) part of the Ruby standard library. Integration with other test libraries is not provided as *part* of Mocha, but is supported by means of the methods in this module.
1634
+ # Integration with Test::Unit and Minitest are provided as part of Mocha, because they are (or were once) part of the Ruby standard library. Integration with other test libraries is not provided as *part* of Mocha, but is supported by means of the methods in this module.
1622
1635
  #
1623
1636
  # See the code in the +Adapter+ modules for examples of how to use the methods in this module. +Mocha::ExpectationErrorFactory+ may be used if you want +Mocha+ to raise a different type of exception.
1624
1637
  #
1625
1638
  # @see Mocha::Integration::TestUnit::Adapter
1626
- # @see Mocha::Integration::MiniTest::Adapter
1639
+ # @see Mocha::Integration::Minitest::Adapter
1627
1640
  # @see Mocha::ExpectationErrorFactory
1628
1641
  # @see Mocha::API
1629
1642
  #
@@ -1641,7 +1654,13 @@ module Mocha::Hooks
1641
1654
  # This method should be called after each individual test has finished (including after any "teardown" code).
1642
1655
  #
1643
1656
  # source://mocha//lib/mocha/hooks.rb#38
1644
- def mocha_teardown; end
1657
+ def mocha_teardown(origin = T.unsafe(nil)); end
1658
+
1659
+ # Returns a string representing the unit test name, to be included in some Mocha
1660
+ # to help track down potential bugs.
1661
+ #
1662
+ # source://mocha//lib/mocha/hooks.rb#44
1663
+ def mocha_test_name; end
1645
1664
 
1646
1665
  # Verifies that all mock expectations have been met (only for use by authors of test libraries).
1647
1666
  #
@@ -1700,9 +1719,9 @@ module Mocha::Inspect::ArrayMethods
1700
1719
  def mocha_inspect(wrapped = T.unsafe(nil)); end
1701
1720
  end
1702
1721
 
1703
- # source://mocha//lib/mocha/inspect.rb#33
1722
+ # source://mocha//lib/mocha/inspect.rb#44
1704
1723
  module Mocha::Inspect::DateMethods
1705
- # source://mocha//lib/mocha/inspect.rb#34
1724
+ # source://mocha//lib/mocha/inspect.rb#45
1706
1725
  def mocha_inspect; end
1707
1726
  end
1708
1727
 
@@ -1718,9 +1737,9 @@ module Mocha::Inspect::ObjectMethods
1718
1737
  def mocha_inspect; end
1719
1738
  end
1720
1739
 
1721
- # source://mocha//lib/mocha/inspect.rb#27
1740
+ # source://mocha//lib/mocha/inspect.rb#38
1722
1741
  module Mocha::Inspect::TimeMethods
1723
- # source://mocha//lib/mocha/inspect.rb#28
1742
+ # source://mocha//lib/mocha/inspect.rb#39
1724
1743
  def mocha_inspect; end
1725
1744
  end
1726
1745
 
@@ -1752,55 +1771,60 @@ class Mocha::Integration::AssertionCounter
1752
1771
  def increment; end
1753
1772
  end
1754
1773
 
1755
- # source://mocha//lib/mocha/integration/mini_test/adapter.rb#7
1756
- module Mocha::Integration::MiniTest
1774
+ # source://mocha//lib/mocha/integration/minitest/adapter.rb#7
1775
+ module Mocha::Integration::Minitest
1757
1776
  class << self
1758
- # source://mocha//lib/mocha/integration/mini_test.rb#8
1777
+ # source://mocha//lib/mocha/integration/minitest.rb#8
1759
1778
  def activate; end
1760
1779
  end
1761
1780
  end
1762
1781
 
1763
- # Integrates Mocha into recent versions of MiniTest.
1782
+ # Integrates Mocha into recent versions of Minitest.
1764
1783
  #
1765
1784
  # See the source code for an example of how to integrate Mocha into a test library.
1766
1785
  #
1767
- # source://mocha//lib/mocha/integration/mini_test/adapter.rb#11
1768
- module Mocha::Integration::MiniTest::Adapter
1786
+ # source://mocha//lib/mocha/integration/minitest/adapter.rb#11
1787
+ module Mocha::Integration::Minitest::Adapter
1769
1788
  include ::Mocha::ParameterMatchers
1770
1789
  include ::Mocha::Hooks
1771
1790
  include ::Mocha::API
1772
1791
 
1773
1792
  # @private
1774
1793
  #
1775
- # source://mocha//lib/mocha/integration/mini_test/adapter.rb#45
1794
+ # source://mocha//lib/mocha/integration/minitest/adapter.rb#45
1776
1795
  def after_teardown; end
1777
1796
 
1778
1797
  # @private
1779
1798
  #
1780
- # source://mocha//lib/mocha/integration/mini_test/adapter.rb#30
1799
+ # source://mocha//lib/mocha/integration/minitest/adapter.rb#30
1781
1800
  def before_setup; end
1782
1801
 
1783
1802
  # @private
1784
1803
  #
1785
- # source://mocha//lib/mocha/integration/mini_test/adapter.rb#36
1804
+ # source://mocha//lib/mocha/integration/minitest/adapter.rb#36
1786
1805
  def before_teardown; end
1787
1806
 
1807
+ # @private
1808
+ #
1809
+ # source://mocha//lib/mocha/integration/minitest/adapter.rb#51
1810
+ def mocha_test_name; end
1811
+
1788
1812
  class << self
1789
1813
  # @private
1790
1814
  # @return [Boolean]
1791
1815
  #
1792
- # source://mocha//lib/mocha/integration/mini_test/adapter.rb#15
1793
- def applicable_to?(mini_test_version); end
1816
+ # source://mocha//lib/mocha/integration/minitest/adapter.rb#15
1817
+ def applicable_to?(minitest_version); end
1794
1818
 
1795
1819
  # @private
1796
1820
  #
1797
- # source://mocha//lib/mocha/integration/mini_test/adapter.rb#20
1821
+ # source://mocha//lib/mocha/integration/minitest/adapter.rb#20
1798
1822
  def description; end
1799
1823
 
1800
1824
  # @private
1801
1825
  # @private
1802
1826
  #
1803
- # source://mocha//lib/mocha/integration/mini_test/adapter.rb#25
1827
+ # source://mocha//lib/mocha/integration/minitest/adapter.rb#25
1804
1828
  def included(_mod); end
1805
1829
  end
1806
1830
  end
@@ -1955,12 +1979,12 @@ class Mocha::Mock
1955
1979
  # @private
1956
1980
  # @return [Mock] a new instance of Mock
1957
1981
  #
1958
- # source://mocha//lib/mocha/mock.rb#273
1982
+ # source://mocha//lib/mocha/mock.rb#275
1959
1983
  def initialize(mockery, name = T.unsafe(nil), receiver = T.unsafe(nil)); end
1960
1984
 
1961
1985
  # @private
1962
1986
  #
1963
- # source://mocha//lib/mocha/mock.rb#297
1987
+ # source://mocha//lib/mocha/mock.rb#299
1964
1988
  def __expectations__; end
1965
1989
 
1966
1990
  # Adds an expectation that the specified method must be called exactly once with any parameters.
@@ -1980,7 +2004,7 @@ class Mocha::Mock
1980
2004
  # object.expected_method # => error raised when expected method invoked second time
1981
2005
  # @example Setup multiple expectations using +expected_methods_vs_return_values+.
1982
2006
  # object = mock()
1983
- # object.expects(:expected_method_one => :result_one, :expected_method_two => :result_two)
2007
+ # object.expects(expected_method_one: :result_one, expected_method_two: :result_two)
1984
2008
  #
1985
2009
  # # is exactly equivalent to
1986
2010
  #
@@ -1997,7 +2021,7 @@ class Mocha::Mock
1997
2021
  # @private
1998
2022
  #
1999
2023
  # source://mocha//lib/mocha/mock.rb#346
2000
- def __expire__; end
2024
+ def __expire__(origin); end
2001
2025
 
2002
2026
  def __singleton_class__; end
2003
2027
 
@@ -2011,7 +2035,7 @@ class Mocha::Mock
2011
2035
  # # no error raised
2012
2036
  # @example Setup multiple expectations using +stubbed_methods_vs_return_values+.
2013
2037
  # object = mock()
2014
- # object.stubs(:stubbed_method_one => :result_one, :stubbed_method_two => :result_two)
2038
+ # object.stubs(stubbed_method_one: :result_one, stubbed_method_two: :result_two)
2015
2039
  #
2016
2040
  # # is exactly equivalent to
2017
2041
  #
@@ -2022,7 +2046,7 @@ class Mocha::Mock
2022
2046
  # @overload stubs
2023
2047
  # @return [Expectation] last-built expectation which can be further modified by methods on {Expectation}.
2024
2048
  #
2025
- # source://mocha//lib/mocha/mock.rb#148
2049
+ # source://mocha//lib/mocha/mock.rb#149
2026
2050
  def __stubs__(method_name_or_hash, backtrace = T.unsafe(nil)); end
2027
2051
 
2028
2052
  # @private
@@ -2033,7 +2057,7 @@ class Mocha::Mock
2033
2057
 
2034
2058
  # @private
2035
2059
  #
2036
- # source://mocha//lib/mocha/mock.rb#307
2060
+ # source://mocha//lib/mocha/mock.rb#309
2037
2061
  def all_expectations; end
2038
2062
 
2039
2063
  # @private
@@ -2049,7 +2073,7 @@ class Mocha::Mock
2049
2073
 
2050
2074
  # @private
2051
2075
  #
2052
- # source://mocha//lib/mocha/mock.rb#285
2076
+ # source://mocha//lib/mocha/mock.rb#287
2053
2077
  def everything_stubbed; end
2054
2078
 
2055
2079
  # Adds an expectation that the specified method must be called exactly once with any parameters.
@@ -2069,7 +2093,7 @@ class Mocha::Mock
2069
2093
  # object.expected_method # => error raised when expected method invoked second time
2070
2094
  # @example Setup multiple expectations using +expected_methods_vs_return_values+.
2071
2095
  # object = mock()
2072
- # object.expects(:expected_method_one => :result_one, :expected_method_two => :result_two)
2096
+ # object.expects(expected_method_one: :result_one, expected_method_two: :result_two)
2073
2097
  #
2074
2098
  # # is exactly equivalent to
2075
2099
  #
@@ -2095,7 +2119,7 @@ class Mocha::Mock
2095
2119
 
2096
2120
  # @private
2097
2121
  #
2098
- # source://mocha//lib/mocha/mock.rb#313
2122
+ # source://mocha//lib/mocha/mock.rb#314
2099
2123
  def method_missing(symbol, *arguments, **_arg2, &block); end
2100
2124
 
2101
2125
  # @private
@@ -2150,7 +2174,7 @@ class Mocha::Mock
2150
2174
  # @return [Mock] the same {Mock} instance, thereby allowing invocations of other {Mock} methods to be chained.
2151
2175
  # @see #responds_like_instance_of
2152
2176
  #
2153
- # source://mocha//lib/mocha/mock.rb#235
2177
+ # source://mocha//lib/mocha/mock.rb#237
2154
2178
  def quacks_like(responder); end
2155
2179
 
2156
2180
  # 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+.
@@ -2181,7 +2205,7 @@ class Mocha::Mock
2181
2205
  # @return [Mock] the same {Mock} instance, thereby allowing invocations of other {Mock} methods to be chained.
2182
2206
  # @see #responds_like
2183
2207
  #
2184
- # source://mocha//lib/mocha/mock.rb#268
2208
+ # source://mocha//lib/mocha/mock.rb#270
2185
2209
  def quacks_like_instance_of(responder_class); end
2186
2210
 
2187
2211
  # 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.
@@ -2231,7 +2255,7 @@ class Mocha::Mock
2231
2255
  # @return [Mock] the same {Mock} instance, thereby allowing invocations of other {Mock} methods to be chained.
2232
2256
  # @see #responds_like_instance_of
2233
2257
  #
2234
- # source://mocha//lib/mocha/mock.rb#235
2258
+ # source://mocha//lib/mocha/mock.rb#237
2235
2259
  def responds_like(responder); end
2236
2260
 
2237
2261
  # 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+.
@@ -2262,12 +2286,12 @@ class Mocha::Mock
2262
2286
  # @return [Mock] the same {Mock} instance, thereby allowing invocations of other {Mock} methods to be chained.
2263
2287
  # @see #responds_like
2264
2288
  #
2265
- # source://mocha//lib/mocha/mock.rb#268
2289
+ # source://mocha//lib/mocha/mock.rb#270
2266
2290
  def responds_like_instance_of(responder_class); end
2267
2291
 
2268
2292
  # @private
2269
2293
  #
2270
- # source://mocha//lib/mocha/mock.rb#302
2294
+ # source://mocha//lib/mocha/mock.rb#304
2271
2295
  def stub_everything; end
2272
2296
 
2273
2297
  # Adds an expectation that the specified method may be called any number of times with any parameters.
@@ -2280,7 +2304,7 @@ class Mocha::Mock
2280
2304
  # # no error raised
2281
2305
  # @example Setup multiple expectations using +stubbed_methods_vs_return_values+.
2282
2306
  # object = mock()
2283
- # object.stubs(:stubbed_method_one => :result_one, :stubbed_method_two => :result_two)
2307
+ # object.stubs(stubbed_method_one: :result_one, stubbed_method_two: :result_two)
2284
2308
  #
2285
2309
  # # is exactly equivalent to
2286
2310
  #
@@ -2291,7 +2315,7 @@ class Mocha::Mock
2291
2315
  # @overload stubs
2292
2316
  # @return [Expectation] last-built expectation which can be further modified by methods on {Expectation}.
2293
2317
  #
2294
- # source://mocha//lib/mocha/mock.rb#148
2318
+ # source://mocha//lib/mocha/mock.rb#149
2295
2319
  def stubs(method_name_or_hash, backtrace = T.unsafe(nil)); end
2296
2320
 
2297
2321
  # Removes the specified stubbed methods (added by calls to {#expects} or {#stubs}) and all expectations associated with them.
@@ -2311,17 +2335,17 @@ class Mocha::Mock
2311
2335
  # multiplier.unstub(:triple)
2312
2336
  # @param method_names [Array<Symbol>] names of methods to unstub.
2313
2337
  #
2314
- # source://mocha//lib/mocha/mock.rb#180
2338
+ # source://mocha//lib/mocha/mock.rb#182
2315
2339
  def unstub(*method_names); end
2316
2340
 
2317
2341
  private
2318
2342
 
2319
2343
  # @raise [StubbingError]
2320
2344
  #
2321
- # source://mocha//lib/mocha/mock.rb#389
2345
+ # source://mocha//lib/mocha/mock.rb#393
2322
2346
  def check_expiry; end
2323
2347
 
2324
- # source://mocha//lib/mocha/mock.rb#383
2348
+ # source://mocha//lib/mocha/mock.rb#387
2325
2349
  def check_responder_responds_to(symbol); end
2326
2350
 
2327
2351
  # source://mocha//lib/mocha/mock.rb#372
@@ -2336,17 +2360,17 @@ end
2336
2360
 
2337
2361
  # source://mocha//lib/mocha/mockery.rb#13
2338
2362
  class Mocha::Mockery
2339
- # source://mocha//lib/mocha/mockery.rb#134
2363
+ # source://mocha//lib/mocha/mockery.rb#138
2340
2364
  def logger; end
2341
2365
 
2342
2366
  # Sets the attribute logger
2343
2367
  #
2344
2368
  # @param value the value to set the attribute logger to.
2345
2369
  #
2346
- # source://mocha//lib/mocha/mockery.rb#132
2370
+ # source://mocha//lib/mocha/mockery.rb#136
2347
2371
  def logger=(_arg0); end
2348
2372
 
2349
- # source://mocha//lib/mocha/mockery.rb#112
2373
+ # source://mocha//lib/mocha/mockery.rb#116
2350
2374
  def mocha_inspect; end
2351
2375
 
2352
2376
  # source://mocha//lib/mocha/mockery.rb#66
@@ -2364,9 +2388,12 @@ class Mocha::Mockery
2364
2388
  # source://mocha//lib/mocha/mockery.rb#74
2365
2389
  def new_state_machine(name); end
2366
2390
 
2367
- # source://mocha//lib/mocha/mockery.rb#120
2391
+ # source://mocha//lib/mocha/mockery.rb#124
2368
2392
  def on_stubbing(object, method); end
2369
2393
 
2394
+ # source://mocha//lib/mocha/mockery.rb#112
2395
+ def sequences; end
2396
+
2370
2397
  # source://mocha//lib/mocha/mockery.rb#108
2371
2398
  def state_machines; end
2372
2399
 
@@ -2374,7 +2401,7 @@ class Mocha::Mockery
2374
2401
  def stubba; end
2375
2402
 
2376
2403
  # source://mocha//lib/mocha/mockery.rb#94
2377
- def teardown; end
2404
+ def teardown(origin = T.unsafe(nil)); end
2378
2405
 
2379
2406
  # source://mocha//lib/mocha/mockery.rb#62
2380
2407
  def unnamed_mock; end
@@ -2384,27 +2411,27 @@ class Mocha::Mockery
2384
2411
 
2385
2412
  private
2386
2413
 
2387
- # source://mocha//lib/mocha/mockery.rb#161
2414
+ # source://mocha//lib/mocha/mockery.rb#165
2388
2415
  def add_mock(mock); end
2389
2416
 
2390
- # source://mocha//lib/mocha/mockery.rb#166
2417
+ # source://mocha//lib/mocha/mockery.rb#170
2391
2418
  def add_state_machine(state_machine); end
2392
2419
 
2393
2420
  # @raise [StubbingError]
2394
2421
  #
2395
- # source://mocha//lib/mocha/mockery.rb#140
2422
+ # source://mocha//lib/mocha/mockery.rb#144
2396
2423
  def check(action, description, signature_proc, backtrace = T.unsafe(nil)); end
2397
2424
 
2398
- # source://mocha//lib/mocha/mockery.rb#149
2425
+ # source://mocha//lib/mocha/mockery.rb#153
2399
2426
  def expectations; end
2400
2427
 
2401
- # source://mocha//lib/mocha/mockery.rb#171
2428
+ # source://mocha//lib/mocha/mockery.rb#175
2402
2429
  def reset; end
2403
2430
 
2404
- # source://mocha//lib/mocha/mockery.rb#157
2431
+ # source://mocha//lib/mocha/mockery.rb#161
2405
2432
  def satisfied_expectations; end
2406
2433
 
2407
- # source://mocha//lib/mocha/mockery.rb#153
2434
+ # source://mocha//lib/mocha/mockery.rb#157
2408
2435
  def unsatisfied_expectations; end
2409
2436
 
2410
2437
  class << self
@@ -2415,7 +2442,7 @@ class Mocha::Mockery
2415
2442
  def setup; end
2416
2443
 
2417
2444
  # source://mocha//lib/mocha/mockery.rb#51
2418
- def teardown; end
2445
+ def teardown(origin = T.unsafe(nil)); end
2419
2446
 
2420
2447
  # source://mocha//lib/mocha/mockery.rb#47
2421
2448
  def verify(*args); end
@@ -2477,7 +2504,7 @@ module Mocha::ObjectMethods
2477
2504
  # assert_equal true, product.save
2478
2505
  # @example Setting up multiple expectations on a non-mock object.
2479
2506
  # product = Product.new
2480
- # product.expects(:valid? => true, :save => true)
2507
+ # product.expects(valid?: true, save: true)
2481
2508
  #
2482
2509
  # # exactly equivalent to
2483
2510
  #
@@ -2528,7 +2555,7 @@ module Mocha::ObjectMethods
2528
2555
  # assert_equal true, product.save
2529
2556
  # @example Setting up multiple stubbed methods on a non-mock object.
2530
2557
  # product = Product.new
2531
- # product.stubs(:valid? => true, :save => true)
2558
+ # product.stubs(valid?: true, save: true)
2532
2559
  #
2533
2560
  # # exactly equivalent to
2534
2561
  #
@@ -2840,7 +2867,7 @@ module Mocha::ParameterMatchers
2840
2867
  # @example Actual parameter includes item which matches nested matcher.
2841
2868
  # object = mock()
2842
2869
  # object.expects(:method_1).with(includes(has_key(:key)))
2843
- # object.method_1(['foo', 'bar', {:key => 'baz'}])
2870
+ # object.method_1(['foo', 'bar', {key: 'baz'}])
2844
2871
  # # no error raised
2845
2872
  # @example Actual parameter does not include item matching nested matcher.
2846
2873
  # object.method_1(['foo', 'bar', {:other_key => 'baz'}])
@@ -2856,10 +2883,10 @@ module Mocha::ParameterMatchers
2856
2883
  # @example Actual parameter is a Hash including the given key.
2857
2884
  # object = mock()
2858
2885
  # object.expects(:method_1).with(includes(:bar))
2859
- # object.method_1({:foo => 1, :bar => 2})
2886
+ # object.method_1({foo: 1, bar: 2})
2860
2887
  # # no error raised
2861
2888
  # @example Actual parameter is a Hash without the given key.
2862
- # object.method_1({:foo => 1, :baz => 2})
2889
+ # object.method_1({foo: 1, baz: 2})
2863
2890
  # # error raised, because hash does not include key 'bar'
2864
2891
  # @example Actual parameter is a Hash with a key matching the given matcher.
2865
2892
  # object = mock()
@@ -2985,8 +3012,6 @@ module Mocha::ParameterMatchers
2985
3012
  # source://mocha//lib/mocha/parameter_matchers/regexp_matches.rb#24
2986
3013
  def regexp_matches(regexp); end
2987
3014
 
2988
- # Matches any object that responds to +message+ with +result+. To put it another way, it tests the quack, not the duck.
2989
- #
2990
3015
  # @example Actual parameter responds with "FOO" when :upcase is invoked.
2991
3016
  # object = mock()
2992
3017
  # object.expects(:method_1).with(responds_with(:upcase, "FOO"))
@@ -2997,13 +3022,18 @@ module Mocha::ParameterMatchers
2997
3022
  # object.expects(:method_1).with(responds_with(:upcase, "BAR"))
2998
3023
  # object.method_1("foo")
2999
3024
  # # error raised, because "foo".upcase != "BAR"
3000
- # @param message [Symbol] method to invoke.
3001
- # @param result [Object] expected result of sending +message+.
3025
+ # @example Actual parameter responds with "FOO" when :upcase is invoked and "oof" when :reverse is invoked.
3026
+ # object = mock()
3027
+ # object.expects(:method_1).with(responds_with(upcase: "FOO", reverse: "oof"))
3028
+ # object.method_1("foo")
3029
+ # # no error raised, because "foo".upcase == "FOO" and "foo".reverse == "oof"
3030
+ # @overload responds_with
3031
+ # @overload responds_with
3002
3032
  # @return [RespondsWith] parameter matcher.
3003
3033
  # @see Expectation#with
3004
3034
  #
3005
- # source://mocha//lib/mocha/parameter_matchers/responds_with.rb#25
3006
- def responds_with(message, result); end
3035
+ # source://mocha//lib/mocha/parameter_matchers/responds_with.rb#37
3036
+ def responds_with(*options); end
3007
3037
 
3008
3038
  # Matches any YAML that represents the specified +object+
3009
3039
  #
@@ -3121,24 +3151,19 @@ class Mocha::ParameterMatchers::Base
3121
3151
  # @example Alternative ways to combine matchers with a logical AND.
3122
3152
  # object = mock()
3123
3153
  # object.expects(:run).with(all_of(has_key(:foo), has_key(:bar)))
3124
- # object.run(:foo => 'foovalue', :bar => 'barvalue')
3154
+ # object.run(foo: 'foovalue', bar: 'barvalue')
3125
3155
  #
3126
3156
  # # is exactly equivalent to
3127
3157
  #
3128
3158
  # object.expects(:run).with(has_key(:foo) & has_key(:bar))
3129
- # object.run(:foo => 'foovalue', :bar => 'barvalue)
3159
+ # object.run(foo: 'foovalue', bar: 'barvalue)
3130
3160
  # @param other [Base] parameter matcher.
3131
3161
  # @return [AllOf] parameter matcher.
3132
3162
  # @see Expectation#with
3133
3163
  #
3134
- # source://mocha//lib/mocha/parameter_matchers/base.rb#30
3164
+ # source://mocha//lib/mocha/parameter_matchers/base.rb#25
3135
3165
  def &(other); end
3136
3166
 
3137
- # @private
3138
- #
3139
- # source://mocha//lib/mocha/parameter_matchers/base.rb#6
3140
- def to_matcher(_expectation = T.unsafe(nil)); end
3141
-
3142
3167
  # A shorthand way of combining two matchers when at least one must match.
3143
3168
  #
3144
3169
  # Returns a new +AnyOf+ parameter matcher combining two matchers using a logical OR.
@@ -3148,12 +3173,12 @@ class Mocha::ParameterMatchers::Base
3148
3173
  # @example Alternative ways to combine matchers with a logical OR.
3149
3174
  # object = mock()
3150
3175
  # object.expects(:run).with(any_of(has_key(:foo), has_key(:bar)))
3151
- # object.run(:foo => 'foovalue')
3176
+ # object.run(foo: 'foovalue')
3152
3177
  #
3153
3178
  # # is exactly equivalent to
3154
3179
  #
3155
3180
  # object.expects(:run).with(has_key(:foo) | has_key(:bar))
3156
- # object.run(:foo => 'foovalue')
3181
+ # object.run(foo: 'foovalue')
3157
3182
  # @example Using an explicit {Equals} matcher in combination with {#|}.
3158
3183
  # object.expects(:run).with(equals(1) | equals(2))
3159
3184
  # object.run(1) # passes
@@ -3163,7 +3188,7 @@ class Mocha::ParameterMatchers::Base
3163
3188
  # @return [AnyOf] parameter matcher.
3164
3189
  # @see Expectation#with
3165
3190
  #
3166
- # source://mocha//lib/mocha/parameter_matchers/base.rb#60
3191
+ # source://mocha//lib/mocha/parameter_matchers/base.rb#55
3167
3192
  def |(other); end
3168
3193
  end
3169
3194
 
@@ -3226,17 +3251,17 @@ class Mocha::ParameterMatchers::HasEntries < ::Mocha::ParameterMatchers::Base
3226
3251
  # @return [HasEntries] a new instance of HasEntries
3227
3252
  #
3228
3253
  # source://mocha//lib/mocha/parameter_matchers/has_entries.rb#33
3229
- def initialize(entries); end
3254
+ def initialize(entries, exact: T.unsafe(nil)); end
3230
3255
 
3231
3256
  # @private
3232
3257
  # @return [Boolean]
3233
3258
  #
3234
- # source://mocha//lib/mocha/parameter_matchers/has_entries.rb#38
3259
+ # source://mocha//lib/mocha/parameter_matchers/has_entries.rb#39
3235
3260
  def matches?(available_parameters); end
3236
3261
 
3237
3262
  # @private
3238
3263
  #
3239
- # source://mocha//lib/mocha/parameter_matchers/has_entries.rb#45
3264
+ # source://mocha//lib/mocha/parameter_matchers/has_entries.rb#50
3240
3265
  def mocha_inspect; end
3241
3266
  end
3242
3267
 
@@ -3353,12 +3378,12 @@ end
3353
3378
 
3354
3379
  # @private
3355
3380
  #
3356
- # source://mocha//lib/mocha/parameter_matchers/instance_methods.rb#7
3381
+ # source://mocha//lib/mocha/parameter_matchers/instance_methods.rb#8
3357
3382
  module Mocha::ParameterMatchers::InstanceMethods
3358
3383
  # @private
3359
3384
  #
3360
- # source://mocha//lib/mocha/parameter_matchers/instance_methods.rb#9
3361
- 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
3362
3387
  end
3363
3388
 
3364
3389
  # Parameter matcher which matches when actual parameter is an instance of the specified class.
@@ -3473,43 +3498,43 @@ end
3473
3498
 
3474
3499
  # @private
3475
3500
  #
3476
- # 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
3477
3502
  class Mocha::ParameterMatchers::PositionalOrKeywordHash < ::Mocha::ParameterMatchers::Base
3478
3503
  # @return [PositionalOrKeywordHash] a new instance of PositionalOrKeywordHash
3479
3504
  #
3480
- # 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
3481
3506
  def initialize(value, expectation); end
3482
3507
 
3483
3508
  # @return [Boolean]
3484
3509
  #
3485
- # 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
3486
3511
  def matches?(available_parameters); end
3487
3512
 
3488
- # 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
3489
3514
  def mocha_inspect; end
3490
3515
 
3491
3516
  private
3492
3517
 
3493
- # 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
3494
3519
  def deprecation_warning(actual, expected); end
3495
3520
 
3496
- # 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
3497
3522
  def expectation_definition; end
3498
3523
 
3499
- # 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
3500
3525
  def extract_parameter(available_parameters); end
3501
3526
 
3502
- # 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
3503
3528
  def hash_type(hash); end
3504
3529
 
3505
3530
  # @return [Boolean]
3506
3531
  #
3507
- # 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
3508
3533
  def ruby2_keywords_hash?(hash); end
3509
3534
 
3510
3535
  # @return [Boolean]
3511
3536
  #
3512
- # 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
3513
3538
  def same_type_of_hash?(actual, expected); end
3514
3539
  end
3515
3540
 
@@ -3537,23 +3562,23 @@ end
3537
3562
 
3538
3563
  # Parameter matcher which matches if actual parameter returns expected result when specified method is invoked.
3539
3564
  #
3540
- # source://mocha//lib/mocha/parameter_matchers/responds_with.rb#30
3565
+ # source://mocha//lib/mocha/parameter_matchers/responds_with.rb#57
3541
3566
  class Mocha::ParameterMatchers::RespondsWith < ::Mocha::ParameterMatchers::Base
3542
3567
  # @private
3543
3568
  # @return [RespondsWith] a new instance of RespondsWith
3544
3569
  #
3545
- # source://mocha//lib/mocha/parameter_matchers/responds_with.rb#32
3570
+ # source://mocha//lib/mocha/parameter_matchers/responds_with.rb#59
3546
3571
  def initialize(message, result); end
3547
3572
 
3548
3573
  # @private
3549
3574
  # @return [Boolean]
3550
3575
  #
3551
- # source://mocha//lib/mocha/parameter_matchers/responds_with.rb#38
3576
+ # source://mocha//lib/mocha/parameter_matchers/responds_with.rb#65
3552
3577
  def matches?(available_parameters); end
3553
3578
 
3554
3579
  # @private
3555
3580
  #
3556
- # source://mocha//lib/mocha/parameter_matchers/responds_with.rb#44
3581
+ # source://mocha//lib/mocha/parameter_matchers/responds_with.rb#71
3557
3582
  def mocha_inspect; end
3558
3583
  end
3559
3584
 
@@ -3918,7 +3943,7 @@ end
3918
3943
 
3919
3944
  # @private
3920
3945
  #
3921
- # source://mocha//lib/mocha/parameter_matchers/instance_methods.rb#17
3946
+ # source://mocha//lib/mocha/parameter_matchers/instance_methods.rb#24
3922
3947
  class Object < ::BasicObject
3923
3948
  include ::Kernel
3924
3949
  include ::PP::ObjectMixin
@@ -3927,7 +3952,7 @@ class Object < ::BasicObject
3927
3952
  include ::Mocha::ObjectMethods
3928
3953
  end
3929
3954
 
3930
- # source://mocha//lib/mocha/inspect.rb#53
3955
+ # source://mocha//lib/mocha/inspect.rb#64
3931
3956
  class Time
3932
3957
  include ::Comparable
3933
3958
  include ::Mocha::Inspect::TimeMethods