funes-rails 0.2.4 → 0.2.5
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 +4 -4
- data/app/projections/funes/projection.rb +2 -2
- data/lib/funes/unknown_event.rb +2 -2
- data/lib/funes/version.rb +1 -1
- 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: 80126eb5004573c77d1afaf99180039d61ed7492ea1d956bbfe29f49ddceb578
|
|
4
|
+
data.tar.gz: 8d57b3d190b7eca6ea60139d9502b20adaaa2e17e7610b6a79853f1053ab5418
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a8f37f4883b7f09018caa2658bc4eed31d32fd838bfc0d1ffe23ed690ff972e5f92505387800bf3ac450f848339f6f4e679b1e023c9ccf68a2aee9ead78469d0
|
|
7
|
+
data.tar.gz: 00f7eefbb42e827ed063d075bd1f199063e7c581a0aa9ea09830db7e1930de4e41c028b1adf9dc35c5c22c59bf32f7f76814a09bdb07a73871c9db956e128675
|
data/lib/funes/unknown_event.rb
CHANGED
|
@@ -2,12 +2,12 @@ module Funes
|
|
|
2
2
|
# Raised when a projection encounters an event type it doesn't know how to interpret.
|
|
3
3
|
#
|
|
4
4
|
# By default, projections silently ignore unknown events. This error is only raised when
|
|
5
|
-
# a projection is configured with `
|
|
5
|
+
# a projection is configured with `strict_mode!`, which enforces strict event
|
|
6
6
|
# handling to catch missing interpretation blocks during development.
|
|
7
7
|
#
|
|
8
8
|
# @example Configure a projection to raise on unknown events
|
|
9
9
|
# class StrictProjection < Funes::Projection
|
|
10
|
-
#
|
|
10
|
+
# strict_mode!
|
|
11
11
|
#
|
|
12
12
|
# interpretation_for OrderPlaced do |state, event, _at|
|
|
13
13
|
# # ...
|
data/lib/funes/version.rb
CHANGED