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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa87187b7f75ecaa025e9e1a7afc160673b527b630bf571b42d8c6b29c786c22
4
- data.tar.gz: 734ab18ac3379b7a6f3dbde3c2827a8fac2bb8f3b820fed95a2f3cfe7610dbc1
3
+ metadata.gz: 9ab84d97925b9d089338d41c18a234c0bb6b3b7da154f98e0949237a5b7e82a6
4
+ data.tar.gz: 9c96788f38ca60c61962f117f638c7d06c48d9503fd91b8f50b71a99f619ccf4
5
5
  SHA512:
6
- metadata.gz: e706e542d5f4d766ed2db98c4c52ec38f9bf084b93f3f68e326dc227d1f18829b9dbfd50d92fb85a3706baea014d4f176d2c76218009414e6c39da28ae39ec6d
7
- data.tar.gz: 0fd6b5602395ca1d1f5d376d5019eb437426711c44d9b0d5f11f1c3d2f3076ccea82b0aefe092caef1f3177bbbe7c94497ce6f0032ce52df848ffc16f477327e
6
+ metadata.gz: 1bc8887275aa3fab6016c46b88a4df400c273998502cf4c459a96d61c93cedcca7f97e4a01d41631b7c0a57841478a5026f2b5c1cad03fef0840e00b82c06c79
7
+ data.tar.gz: d7fc5e62f49961a3095e186434fe8e53e6cd3b9410bb5153443b59437254e506e301913bbec37bcac9bd508a390e0d37254264ef0263f0a7fe22e7bc9e7d0af3
@@ -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
- @_descriptor.method_fields << method
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 = {})
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Panko
3
- VERSION = "0.3.7"
3
+ VERSION = "0.3.9"
4
4
  end
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.7
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-16 00:00:00.000000000 Z
11
+ date: 2018-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler