cyrax 0.7.7 → 0.7.8

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: 043a9c1603e71223e2afbbd9154f56e6b5fcddbe
4
- data.tar.gz: 0c96ab2707143c9eaff37bf9458dc6926b5d3f49
3
+ metadata.gz: eff1fd9535d9a82b63c71132ec9040edddb69288
4
+ data.tar.gz: f377af1ac353f61b1119c071cfb8c5e421667dd4
5
5
  SHA512:
6
- metadata.gz: b9aa5a859dfbd6529352cc731cfa95da99fac22285fdac709c7c006628767704e3e659c9ff41781996b4fdf363a91648edae1f8d1e5670683ff42a4e48e87bbd
7
- data.tar.gz: 7cb5f606fe2a9df4c09a63ff9336a42be73ba1460f35b8e4e987d4118cec9ad19a42758cc14891b8175452419d4fe1fee1e34bf7467c23d4d6ecbfaadcdcf76c
6
+ metadata.gz: 83123a1f12c82ca5d7cfaf0601ed58cc8fc43e31b9f690f649d10579db146ef742bbc73bc7b55f6386e46ee92593b676897c30013d9f617096fda3fa57c11711
7
+ data.tar.gz: f666cfddc2d0e38c72132b4a5390c076f8b2510f0cf484a909640e195a80acb2b575dac3b13b5eec6c7c294af382efdf4af68b87cd0bb491110751a35328a881
data/README.md CHANGED
@@ -1,6 +1,4 @@
1
- # Cyrax [![Build Status](https://travis-ci.org/droidlabs/cyrax.png)](https://travis-ci.org/droidlabs/cyrax) [![Code Climate](https://codeclimate.com/github/droidlabs/cyrax.png)](https://codeclimate.com/github/droidlabs/cyrax) [![Roadchange](http://roadchange.com/droidlabs/cyrax/badge.png)](http://roadchange.com/droidlabs/cyrax)
2
- ![Cyrax](http://images2.wikia.nocookie.net/__cb20121118042055/mk/images/thumb/4/44/CyraxMK9Render.png/322px-CyraxMK9Render.png)
3
- > Safeties disabled; combat mode engaged.
1
+ # Cyrax [![Build Status](https://travis-ci.org/droidlabs/cyrax.png)](https://travis-ci.org/droidlabs/cyrax) [![Code Climate](https://codeclimate.com/github/droidlabs/cyrax.png)](https://codeclimate.com/github/droidlabs/cyrax)
4
2
 
5
3
  Cyrax is microframework to build layered architecture, one of the core concepts of Domain Driven Design
6
4
 
@@ -72,7 +72,8 @@ module Cyrax::Serializers
72
72
  result[attribute] = scope.serialize(resource, options)
73
73
  end
74
74
  @assigned_attrs.map do |attribute, scope|
75
- value = options[:assignments][attribute]
75
+ assignments = options[:assignments] || {}
76
+ value = assignments[attribute]
76
77
  result[attribute] = scope.serialize(value, options)
77
78
  end
78
79
  @attrs.map do |attribute, options|
@@ -1,3 +1,3 @@
1
1
  module Cyrax
2
- VERSION = "0.7.7"
2
+ VERSION = "0.7.8"
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.7.7
4
+ version: 0.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Droidlabs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-23 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