panko_serializer 0.3.7 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/panko/serializer.rb +4 -2
- data/lib/panko/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ab84d97925b9d089338d41c18a234c0bb6b3b7da154f98e0949237a5b7e82a6
|
4
|
+
data.tar.gz: 9c96788f38ca60c61962f117f638c7d06c48d9503fd91b8f50b71a99f619ccf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bc8887275aa3fab6016c46b88a4df400c273998502cf4c459a96d61c93cedcca7f97e4a01d41631b7c0a57841478a5026f2b5c1cad03fef0840e00b82c06c79
|
7
|
+
data.tar.gz: d7fc5e62f49961a3095e186434fe8e53e6cd3b9410bb5153443b59437254e506e301913bbec37bcac9bd508a390e0d37254264ef0263f0a7fe22e7bc9e7d0af3
|
data/lib/panko/serializer.rb
CHANGED
@@ -32,8 +32,10 @@ module Panko
|
|
32
32
|
|
33
33
|
def method_added(method)
|
34
34
|
return if @_descriptor.nil?
|
35
|
-
@_descriptor.attributes.delete(method)
|
36
|
-
|
35
|
+
deleted_attr = @_descriptor.attributes.delete(method)
|
36
|
+
unless deleted_attr.nil?
|
37
|
+
@_descriptor.method_fields << method
|
38
|
+
end
|
37
39
|
end
|
38
40
|
|
39
41
|
def has_one(name, options = {})
|
data/lib/panko/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: panko_serializer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yosi Attias
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|