killbill-client 0.20.0 → 0.21.0

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: 24a9cefd8fc392a9c9873bb18d836780e610b473
4
- data.tar.gz: 16b90d26bc0be07caf516fd5f4e9c98671234a58
3
+ metadata.gz: c6ba172b6c3e28884c9939ef560379b58a773af2
4
+ data.tar.gz: 5803a7af74f703770e0310e6c2d36e9b71408db3
5
5
  SHA512:
6
- metadata.gz: 15c6ca721a7a034f2779e0236fa501ffbd0f5fc89a1f5f2124ec1b764aa130774b4a6cc8d4b73d09493dc61b3c9e5b62fe0ade3e445c2aa49652a2e1d825d1ab
7
- data.tar.gz: 6805b2984556a842ee0848121103453e6a94f64b2643996f556961db8c1741ebd9f18aad0212bf4d028b012daac51d0a31ac6ed14fd43cd5cd867264e22b65e2
6
+ metadata.gz: cea82d0386f1b297b0b2cdc9bac0f417b26bdb818970dcf118e7051ed93c1b78658890a666e324f4291fd8f20303bb770962fcdd00a4cc1cc437fd7c96ab3cf0
7
+ data.tar.gz: 79b7fb7cb89280568a3cbaa4fc09970675116951fcbf62712e5846b93b1693fafcabc7cd79c7c24f335ef357faf5b6d18a1d6ca25ccb87c779fac8f824562ad2
@@ -131,13 +131,14 @@ module KillBillClient
131
131
  def instantiate_record_from_json(resource_class, data)
132
132
  record = resource_class.send :new
133
133
 
134
+ kb_ancestors = resource_class.ancestors.select { |ancestor| !@@attribute_names[ancestor.name].nil? }
134
135
  data.each do |name, value|
135
136
  name = Utils.underscore name
136
137
  attr_desc = nil
137
138
 
138
- # Allow for inheritance. TODO What's the performance hit?
139
- resource_class.ancestors.each do |ancestor|
140
- attr_desc = @@attribute_names[ancestor.name][name.to_sym] rescue nil
139
+ # Allow for inheritance
140
+ kb_ancestors.each do |ancestor|
141
+ attr_desc = @@attribute_names[ancestor.name][name.to_sym]
141
142
  break unless attr_desc.nil?
142
143
  end
143
144
 
@@ -1,7 +1,7 @@
1
1
  module KillBillClient
2
2
  module Version
3
3
  MAJOR = 0
4
- MINOR = 20
4
+ MINOR = 21
5
5
  PATCH = 0
6
6
  PRE = nil
7
7
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Killbill core team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-05 00:00:00.000000000 Z
11
+ date: 2015-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json