lucid_shopify-resource 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lucid_shopify/resource/read.rb +2 -2
- data/lib/lucid_shopify/resource/version.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7f650b0d5270783dbe5d6f9e9b9483fd193cde21d3f84f7c9c772fc1721f622
|
4
|
+
data.tar.gz: d4cef13aa2345fb3fd4f808222a495eaded5efc3b5c147f261eae2fff36a41f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a83f0b31e7e6c628d843c3093060aecd186b815f0c93db6d6fd03362fcdd9076d6208088029028890043c17618cd398a27415e84c4bfe85b3e9353f1d3424b25
|
7
|
+
data.tar.gz: 365373a5bc2a4b5f066f6798c21b2d1215fc05eb22ed67a5f22355451cb8f0d7f94f2985a5a129d6b2c96af88a754fe9d1240896b6588242a627febcd37a4ecc
|
@@ -69,7 +69,7 @@ module LucidShopify
|
|
69
69
|
def find(credentials, id, params = {})
|
70
70
|
params = finalize_params(params)
|
71
71
|
|
72
|
-
client.get(credentials, "#{resource}/#{id}", params)
|
72
|
+
client.get(credentials, "#{resource}/#{id}", params).values.first
|
73
73
|
end
|
74
74
|
|
75
75
|
#
|
@@ -98,7 +98,7 @@ module LucidShopify
|
|
98
98
|
since_id = 1
|
99
99
|
|
100
100
|
loop do
|
101
|
-
results = throttled_client.get(credentials, resource, params.merge(since_id: since_id))
|
101
|
+
results = throttled_client.get(credentials, resource, params.merge(since_id: since_id)).values.first
|
102
102
|
results.each do |result|
|
103
103
|
yield result
|
104
104
|
end
|