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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9c8ba9dd84cfb14ff267ee892bb04520e35040a
4
- data.tar.gz: b1409149a06107891b63e6fc6e5f0658d9eb6efd
3
+ metadata.gz: ec3be03a36bfa3eb911f59ef61ec499387fad51f
4
+ data.tar.gz: cd4997f556b8dd539fd849ca452fc6e6925d75f5
5
5
  SHA512:
6
- metadata.gz: 85b08d69e19609620f4775330e1291a4839d3fa4f4e8ee0fbf4b9fd0654128b006e3c0abe891b830842c7694670881c81bfa147b82f7b7ecd1d44d64cf7ac244
7
- data.tar.gz: d9b64dbc85139e8d9f0ca5f6645e5f0ae6077c2c82fc080c4ee76060f20f3de5209805cab2b8954722569c11c48b9ac5fb0377f321b8bf80a33edd42353fb299
6
+ metadata.gz: 2c11d4e10cfbda4df37dab80e220adfbe6d7107d318789f3201fb2a31ae6d01742ee2bdd5032584a4de6b2644b2d71898e2ad1307153ef4472cc6ff468707e7b
7
+ data.tar.gz: 9b3310a1b1823bcae9e12eae47f40c560de6a3df272f127b9533cf79baa102fb94c7d5637c1b69dc84e524e87cef6b36f10abaf90dc978a99c7293329a600acb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # avromatic changelog
2
2
 
3
+ ## v0.6.2
4
+ - Remove dependency on `Hash#transform_values` from `ActiveSupport` v4.2.
5
+
3
6
  ## v0.6.1
4
7
  - Fix serialization of array and map types that contain nested models.
5
8
 
@@ -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.transform_values(&:value_attributes_for_avro)
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
@@ -1,3 +1,3 @@
1
1
  module Avromatic
2
- VERSION = '0.6.1'.freeze
2
+ VERSION = '0.6.2'.freeze
3
3
  end
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.1
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-12 00:00:00.000000000 Z
11
+ date: 2016-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avro