evt-entity_projection-fixtures 1.0.0.0 → 1.0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/entity_projection/fixtures/projection.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d04ba6cfe5feb6662464db0a0d6844766c27d106b5823e952c7bdd4ec9562ca
|
4
|
+
data.tar.gz: cb201c89ce5bfaa8ddc5646e7a15aa081c862e4cdabcdff35ed054951530d48c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 835149cfaff1b6f25b240ab1679f714c3fdd79eaa30477007c27bf7ecca38c64c6dad571538722c6e5f841e31167248f0516648d38dbd8e10d3eb25903be4c39
|
7
|
+
data.tar.gz: e3b206e8fa657c55b09578a34786381aa803c88e54925b233ec2248885d6aa9ab3d2a9e24076efd58c8a4b2bd48b192798273097c03c0ad0b9a1741f96d0f1ad
|
@@ -12,13 +12,13 @@ module EntityProjection
|
|
12
12
|
event.class
|
13
13
|
end
|
14
14
|
|
15
|
-
initializer :projection, :control_entity, :entity, :event, :
|
15
|
+
initializer :projection, :control_entity, :entity, :event, :test_block
|
16
16
|
|
17
|
-
def self.build(projection, event, &
|
17
|
+
def self.build(projection, event, &test_block)
|
18
18
|
entity = projection.entity
|
19
19
|
control_entity = entity.clone
|
20
20
|
|
21
|
-
new(projection, control_entity, entity, event,
|
21
|
+
new(projection, control_entity, entity, event, test_block)
|
22
22
|
end
|
23
23
|
|
24
24
|
def call
|
@@ -35,8 +35,8 @@ module EntityProjection
|
|
35
35
|
|
36
36
|
projection.(event)
|
37
37
|
|
38
|
-
if not
|
39
|
-
|
38
|
+
if not test_block.nil?
|
39
|
+
test_block.call(self)
|
40
40
|
end
|
41
41
|
end
|
42
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-entity_projection-fixtures
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-entity_projection
|