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 +4 -4
- data/lib/lucid_shopify/redis_throttled_strategy.rb +5 -1
- data/lib/lucid_shopify/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29a0dd707c4402958de18f3a0adf75baf8e94163d69fbdab3e4550b58acb1cda
|
4
|
+
data.tar.gz: c77c717043f40e654442470ca118db7c667594ffa23b1f8561ea0884938fd67e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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,
|
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.
|
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-
|
11
|
+
date: 2019-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|