avromatic 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/avromatic/model/raw_serialization.rb +3 -2
- data/lib/avromatic/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec3be03a36bfa3eb911f59ef61ec499387fad51f
|
4
|
+
data.tar.gz: cd4997f556b8dd539fd849ca452fc6e6925d75f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c11d4e10cfbda4df37dab80e220adfbe6d7107d318789f3201fb2a31ae6d01742ee2bdd5032584a4de6b2644b2d71898e2ad1307153ef4472cc6ff468707e7b
|
7
|
+
data.tar.gz: 9b3310a1b1823bcae9e12eae47f40c560de6a3df272f127b9533cf79baa102fb94c7d5637c1b69dc84e524e87cef6b36f10abaf90dc978a99c7293329a600acb
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'avromatic/model/passthrough_serializer'
|
2
|
-
require 'active_support/core_ext/hash/transform_values'
|
3
2
|
|
4
3
|
module Avromatic
|
5
4
|
module Model
|
@@ -50,7 +49,9 @@ module Avromatic
|
|
50
49
|
elsif array_of_models?(key)
|
51
50
|
value.map(&:value_attributes_for_avro)
|
52
51
|
elsif hash_of_models?(key)
|
53
|
-
value.
|
52
|
+
value.each_with_object({}) do |(k, v), hash|
|
53
|
+
hash[k] = v.value_attributes_for_avro
|
54
|
+
end
|
54
55
|
else
|
55
56
|
avro_serializer[key].call(value)
|
56
57
|
end
|
data/lib/avromatic/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avromatic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Salsify Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avro
|