flexmock 3.0.1 → 3.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0f97dabc8c9afa58ef46d4ac17b2e3fa8295f6d20446dc1638291042e41e5d8
4
- data.tar.gz: 2bd6a9f043efac740a59f4864da6d668809a30d71ffd97c72efc0c246aaca43f
3
+ metadata.gz: 7bd133d2e4c2f636524d70ce2595251d6fa11413b18526f04c0ecd0f66b58a2a
4
+ data.tar.gz: ad6cfe9674e08c8a958dabdb6c4c0d5de353e8f219bb4bbf8aa18368bce5c833
5
5
  SHA512:
6
- metadata.gz: 6f06e6198573d73ee08d793ff8f90147a873403a8427e677afdc7301fc06701975f711ebceb51ac5f32c280a29d1c1411a6265095e8bcfa1c362eedd8194a054
7
- data.tar.gz: 19325f609dc6e084ce7d0748e0142368d9ca9caf1706733d23287d5001c0f36c9dd25d7194b0a3e5389601628b63aa987a351eb7e6568eb38662a9245cbc8b65
6
+ metadata.gz: ecdde48b9793cb1537cff918e82af9fc2e27130247e85fc4c894e6cc50051c073bafca68ff11fde3164d821b6b1ff8736094c66fc019e2e383deda464d2f67a3
7
+ data.tar.gz: e4f4c84691cba58bb779457f95407a1f9f57e2e56b067174193f6a167885d4102a38620ea79c00374f3dcb79ec7034807547b1e15b8c649e971de01c3af47394
@@ -3,7 +3,8 @@ class FlexMock
3
3
  # A composite expectation allows several expectations to be grouped into a
4
4
  # single composite and then apply the same constraints to all expectations
5
5
  # in the group.
6
- class CompositeExpectation
6
+ class CompositeExpectation < BasicObject
7
+ attr_reader :expectations
7
8
 
8
9
  # Initialize the composite expectation.
9
10
  def initialize
@@ -34,7 +34,7 @@ class FlexMock
34
34
  def apply(mock)
35
35
  obj = mock
36
36
  @expectations.each do |sym, args, kw, block|
37
- obj = obj.send(sym, *args, **kw, &block)
37
+ obj = obj.__send__(sym, *args, **kw, &block)
38
38
  end
39
39
  end
40
40
  end
@@ -1,3 +1,3 @@
1
1
  class FlexMock
2
- VERSION = "3.0.1"
2
+ VERSION = "3.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flexmock
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Weirich
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-09-09 00:00:00.000000000 Z
12
+ date: 2025-08-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest