evt-entity_projection-fixtures 1.0.0.0 → 1.0.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b5bb6af847178f211a5ce0c03c1f429775ba6ed3fa5a901322b4fe6b90d76a8
|
4
|
+
data.tar.gz: 37c73f6050a7a9c7dabe38301807847117e01649fef6f7acc93ce969d09de0dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2a800fdebbfdcdd40f245fdbee1053a695ed2daad68114ab507c9ee5e48e7658b0c72c11a1acc2a295a6927f2a2139fdd6dcce7825c6d435641a5c8a706f3df
|
7
|
+
data.tar.gz: 7452a9844812f778bb46b0c1f287080e7b4bc105c3d09db2cc66d5ea1d70372e4138233511105c9dd9d3a49db180196920bdfdf0ad2e9bcd830644ce93b506ce
|
@@ -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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-entity_projection
|
@@ -70,7 +70,7 @@ homepage: https://github.com/eventide-project/entity-projection-fixtures
|
|
70
70
|
licenses:
|
71
71
|
- MIT
|
72
72
|
metadata: {}
|
73
|
-
post_install_message:
|
73
|
+
post_install_message:
|
74
74
|
rdoc_options: []
|
75
75
|
require_paths:
|
76
76
|
- lib
|
@@ -85,8 +85,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: '0'
|
87
87
|
requirements: []
|
88
|
-
rubygems_version: 3.
|
89
|
-
signing_key:
|
88
|
+
rubygems_version: 3.5.9
|
89
|
+
signing_key:
|
90
90
|
specification_version: 4
|
91
91
|
summary: TestBench fixtures for EntityProjection implementations
|
92
92
|
test_files: []
|