lucid_shopify 0.32.1 → 0.32.2

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: 61d352c33256138ed250382f29cacc3d455430d358c249479bc33b1e4b90cb24
4
- data.tar.gz: 1e97f7513da1a99c26de5459e60d5638fae8abb284e0e1e57c40ca64494473d5
3
+ metadata.gz: 29a0dd707c4402958de18f3a0adf75baf8e94163d69fbdab3e4550b58acb1cda
4
+ data.tar.gz: c77c717043f40e654442470ca118db7c667594ffa23b1f8561ea0884938fd67e
5
5
  SHA512:
6
- metadata.gz: 862d07ed6ca6f4d19c17c0c99f09fa3220447e563297795a35f96e8a0dabd1861e96a4dd549a4dc6b1386dc248a87925d9dcbeb07447945e97344e42232c894a
7
- data.tar.gz: baba78133e822837e02ed9f2193e06f7f6f30678d605e36e855eb122be7e32e00bf7c03d3e32395d555a8d0ce0a43c49c4980119c742ea9845d67be12630a87b
6
+ metadata.gz: fec990f612217fb1f82cbbfbd0df91d1259ec70f04d670820b1a8ee874de7f7d673c654b694921b59f9fcc215b728b5a206be2aff26c5ebbd1e8561f30a3737e
7
+ data.tar.gz: 51a947c3edb1b64b02c51b42e70d3866f61bdd5c54a03594b475ee62d193c3d80f9e6a4e522cd97046c2e4c094770b7909317c6e5acd94477a6c1e5e262adf60
@@ -32,7 +32,11 @@ if defined?(Redis)
32
32
  interval(interval_key)
33
33
 
34
34
  send_request.().tap do |res|
35
- cur, max = res.headers['X-Shopify-Shop-Api-Call-Limit'].split('/')
35
+ header = res.headers['X-Shopify-Shop-Api-Call-Limit']
36
+
37
+ next if header.nil?
38
+
39
+ cur, max = header.split('/')
36
40
 
37
41
  @redis_client.mapped_hmset(interval_key,
38
42
  cur: cur,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LucidShopify
4
- VERSION = '0.32.1'
4
+ VERSION = '0.32.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lucid_shopify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.32.1
4
+ version: 0.32.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelsey Judson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-31 00:00:00.000000000 Z
11
+ date: 2019-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv