zaikio-loom 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/zaikio/loom/event_serializer.rb +5 -3
- data/lib/zaikio/loom/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: 5ec2697f1050c963fe99c522c105ce3543c76b2ef60bdf4c3083c357ad71c57f
|
4
|
+
data.tar.gz: 7f978e19c8cf577a417084dfa10b984172a3d012372aa334573ec092ac242fe7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d72fe92f72f0230fe26cdbc4a46a556f8ef8001e32ec0b08a1ab6120d13414fd35a4ed5a7e8e41f7e30f17c0f4138a1725220a7b0399994bef984ab0099f2dd4
|
7
|
+
data.tar.gz: 0eb3cb77f32d721658959daaedf3a699e19bd6024d5d63768f8fad7f0e6be118d497afeb7c6f06180439b93b2a1ddaffb6c850da04d16900c5b58e9b731f1544
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -6,12 +6,14 @@ module Zaikio
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def serialize(event)
|
9
|
-
super(event.to_h)
|
9
|
+
super(event.to_h.stringify_keys)
|
10
10
|
end
|
11
11
|
|
12
12
|
def deserialize(hash)
|
13
|
-
name = hash.delete('name')
|
14
|
-
|
13
|
+
name = hash.delete('name').split('.').last
|
14
|
+
timestamp = DateTime.parse(hash.delete('timestamp'))
|
15
|
+
hash.delete('_aj_serialized')
|
16
|
+
Event.new(name, hash.symbolize_keys.merge(timestamp: timestamp))
|
15
17
|
end
|
16
18
|
end
|
17
19
|
end
|
data/lib/zaikio/loom/version.rb
CHANGED