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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7116806b8e6e82be413f8f163f7b5b8c785c9218e8a03a7e9f798d76032b2eab
4
- data.tar.gz: e5d303f87cb2dd1ee94823f8ae61f6b4ebf2eff0cf130121f885e541b5d58668
3
+ metadata.gz: 5ec2697f1050c963fe99c522c105ce3543c76b2ef60bdf4c3083c357ad71c57f
4
+ data.tar.gz: 7f978e19c8cf577a417084dfa10b984172a3d012372aa334573ec092ac242fe7
5
5
  SHA512:
6
- metadata.gz: 0351fa33b725e6198a3685a3135098586348cdeb14729d0227ccee426ea70ee4c3909c92fed543799b092f7b6533ff5f268ddb5fc0295c9686681b30e9b9ee6c
7
- data.tar.gz: 2af0e36488855e2098bd950b5284d35505d06709f2c3dde8e30903f48e0b0627b0435c0d1dc29fd468266f80d4a85f3c1d5d88ea6a837fdb419734a331de19f0
6
+ metadata.gz: d72fe92f72f0230fe26cdbc4a46a556f8ef8001e32ec0b08a1ab6120d13414fd35a4ed5a7e8e41f7e30f17c0f4138a1725220a7b0399994bef984ab0099f2dd4
7
+ data.tar.gz: 0eb3cb77f32d721658959daaedf3a699e19bd6024d5d63768f8fad7f0e6be118d497afeb7c6f06180439b93b2a1ddaffb6c850da04d16900c5b58e9b731f1544
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Zaikio Loom Ruby Gem Changelog
2
2
 
3
+ ## 0.2.1 - 2020-03-30
4
+
5
+ - Fix bug with event serialization
6
+
3
7
  ## 0.2.0 - 2020-03-30
4
8
 
5
9
  - Events are now fired in background with ActiveJob.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zaikio-loom (0.2.0)
4
+ zaikio-loom (0.2.1)
5
5
  oj
6
6
  rails (~> 6.0, >= 6.0.2.2)
7
7
 
@@ -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
- Event.new(name, hash)
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
@@ -1,5 +1,5 @@
1
1
  module Zaikio
2
2
  module Loom
3
- VERSION = "0.2.0".freeze
3
+ VERSION = "0.2.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zaikio-loom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - crispymtn