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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aec0417d9b2a90cc855def42ae747ec06675958c6cede4b29fff0b279973fa53
4
- data.tar.gz: 104fb79779ebd573f2df23f2e472a4454208490ff2368dd47a99278194107b08
3
+ metadata.gz: e7f650b0d5270783dbe5d6f9e9b9483fd193cde21d3f84f7c9c772fc1721f622
4
+ data.tar.gz: d4cef13aa2345fb3fd4f808222a495eaded5efc3b5c147f261eae2fff36a41f0
5
5
  SHA512:
6
- metadata.gz: 8be4642ccdd230743c5a919e0d845de8c564f8d84d75afd19ab6ffa986cf83840ae7069ab58c068b15ad1b2e151e0d035cbd72268d0591ac87ab8544fcbe0182
7
- data.tar.gz: c33bf5910ab22e6db9ea98715c2ac68207dd17b0af711d2ba196fadd85db05c8e7f8edde3e3f32f533d0ce149a0aefdf03d60ca557fe0e8dc81b46a009279b12
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)[resource]
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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LucidShopify
4
- class Resource
5
- VERSION = '0.4.3'
4
+ module Resource
5
+ VERSION = '0.4.4'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lucid_shopify-resource
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelsey Judson