cyrax 0.7.7 → 0.7.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -3
- data/lib/cyrax/serializers/scope.rb +2 -1
- data/lib/cyrax/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: eff1fd9535d9a82b63c71132ec9040edddb69288
|
4
|
+
data.tar.gz: f377af1ac353f61b1119c071cfb8c5e421667dd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
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
|
-
|
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|
|
data/lib/cyrax/version.rb
CHANGED
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.
|
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:
|
11
|
+
date: 2016-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|