clientele 0.3.6 → 0.3.7
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 +4 -4
- data/lib/clientele/resource.rb +2 -2
- data/lib/clientele/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 87bc7d61e47a39881cd03d0d2e1f4bb023bc6a77
|
|
4
|
+
data.tar.gz: ecf6d0bc7f9273140438fe915f7485bca663f489
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fcd2499a0aa2d47f34b52129cc3db141be7012ef5c9607ed96c482b2f4a2a81e74518668beae10e771e6ac5c5981a05338b3c92ecfee3e081c7f2a286545ba15
|
|
7
|
+
data.tar.gz: 4eb4de1043f19967b2197df9e13977122f0ef1a0ed2bbba374925c288e8b760f825d747090a7384bcacc1b1971e087c6d96ea45a033afdf9f093f81918975a15
|
data/lib/clientele/resource.rb
CHANGED
|
@@ -72,9 +72,9 @@ module Clientele
|
|
|
72
72
|
build dataset, client: client
|
|
73
73
|
end
|
|
74
74
|
elsif (klass or data).kind_of? Hash and data.keys.map(&:to_s).include? result_key.to_s
|
|
75
|
-
build data.send
|
|
75
|
+
build data.send result_key, client: client
|
|
76
76
|
elsif (klass or data).kind_of? Hash and data.keys.map(&:to_s).include? plural_key.to_s
|
|
77
|
-
build data.send
|
|
77
|
+
build data.send plural_key, client: client
|
|
78
78
|
else
|
|
79
79
|
new(data).tap do |instance|
|
|
80
80
|
instance.instance_variable_set :@client, client if client
|
data/lib/clientele/version.rb
CHANGED