evt-entity_projection 0.3.0.6 → 0.3.0.7
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/entity_projection.rb +8 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c97071e13d658ef465aa341b745f791a94263ca47c0e4b4ac85080ef2754c8c4
|
4
|
+
data.tar.gz: 7d3ff90486daa788a2a9f3ff01004a6e8a505ca6d870906ebb13759d79c3f468
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 925471dfb2b5e72d23d23f5bd6fdb409b57b672ae83567abf263d83cd3aa30c0e5a663ae78c9e64a164323b568a49ed304ce817d15f2f6900b2da728e910199f
|
7
|
+
data.tar.gz: b2ea73e08bd274dc03399ea1692622342d65fb52169fe95d0aae8a0b76adfcfc1e26cf0d710101c03058e71faf40479ca4b4761c68f74289772e1b35bb94d43b
|
@@ -125,8 +125,8 @@ module EntityProjection
|
|
125
125
|
end
|
126
126
|
|
127
127
|
def apply_event(event)
|
128
|
-
logger.trace(
|
129
|
-
logger.trace(tags: [:data, :message
|
128
|
+
logger.trace(tag: :apply) { "Applying event (Event class: #{event.class.name})" }
|
129
|
+
logger.trace(tags: [:data, :message]) { event.pretty_inspect }
|
130
130
|
|
131
131
|
handler = self.class.handler(event)
|
132
132
|
|
@@ -134,15 +134,15 @@ module EntityProjection
|
|
134
134
|
public_send(handler, event)
|
135
135
|
end
|
136
136
|
|
137
|
-
logger.info(
|
138
|
-
logger.trace(tags: [:data, :message
|
137
|
+
logger.info(tag: :apply) { "Applied event (Event class: #{event.class.name})" }
|
138
|
+
logger.trace(tags: [:data, :message]) { event.pretty_inspect }
|
139
139
|
|
140
140
|
event
|
141
141
|
end
|
142
142
|
|
143
143
|
def apply_event_data(event_data)
|
144
|
-
logger.trace(
|
145
|
-
logger.trace(tags: [:data, :
|
144
|
+
logger.trace(tag: :apply) { "Applying event data (Type: #{event_data.type})" }
|
145
|
+
logger.trace(tags: [:data, :message_data]) { event_data.pretty_inspect }
|
146
146
|
|
147
147
|
res = nil
|
148
148
|
|
@@ -159,8 +159,8 @@ module EntityProjection
|
|
159
159
|
end
|
160
160
|
end
|
161
161
|
|
162
|
-
logger.info(
|
163
|
-
logger.info(tags: [:data, :
|
162
|
+
logger.info(tag: :apply) { "Applied event data (Type: #{event_data.type})" }
|
163
|
+
logger.info(tags: [:data, :message_data]) { event_data.pretty_inspect }
|
164
164
|
|
165
165
|
res
|
166
166
|
end
|