cyrax 0.5.12 → 0.5.13

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b9e7ee4eddd3653789dd875597d62305a654ce6
4
- data.tar.gz: 993fb849adabe31de43bf04eca916c361cb0fe3e
3
+ metadata.gz: 4a305051a8e89e95a2fccd98ef8c2ac05679189c
4
+ data.tar.gz: f9f3cb1822a1f850ff9a55e1f0d492579ff73ad8
5
5
  SHA512:
6
- metadata.gz: af20afd5e17a2916dd893b13c40ed75e51677bb04b4371e22d423c94243b7526263203438cc90e156f0ce50a9607c2160d15a7803213d97d3c91bed05f038d06
7
- data.tar.gz: 5c401788d50e2d21cd96438871628cfd5e6942dad11a5ec601354dd0b1dffa54fc03546b6f1b6c13dba7b27f7c3907095d0fdea04e31ef40d3a636d725864577
6
+ metadata.gz: d8e50444c96e653ab43c86463816cc5d7ab4593ef7f27c08b211c1193a87fb2e773ba620ff26d60c91c6e297857f76ea2e8d8d8631626660b7f77f57e4dbfea2
7
+ data.tar.gz: dcbfc8d93cfdd24c5a4d080be8a4db16776e9e49bc45524f74fe5dce820473c744f29513479296b304ebe7b80f08a7880126d2215f67899d234319b3974666a2
@@ -69,7 +69,8 @@ module Cyrax::Serializers
69
69
  result[attribute] = scope.serialize(value, options)
70
70
  end
71
71
  @assigned_attrs.map do |attribute, scope|
72
- value = options[:assignments][attribute]
72
+ assignments = options[:assignments] || {}
73
+ value = assignments[attribute]
73
74
  result[attribute] = scope.serialize(value, options)
74
75
  end
75
76
  @namespace_attrs.map do |attribute, scope|
@@ -1,3 +1,3 @@
1
1
  module Cyrax
2
- VERSION = "0.5.12"
2
+ VERSION = "0.5.13"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cyrax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.12
4
+ version: 0.5.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Droidlabs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-03 00:00:00.000000000 Z
11
+ date: 2016-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  version: '0'
152
152
  requirements: []
153
153
  rubyforge_project:
154
- rubygems_version: 2.2.2
154
+ rubygems_version: 2.4.3
155
155
  signing_key:
156
156
  specification_version: 4
157
157
  summary: Small library for adding service layer to Rails projects