lucid_shopify-cache 0.5.0 → 0.6.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e8a2976b3d4207a1c5dd5e393071fd97cd3a8265906d48469af618649cf1aa5
4
- data.tar.gz: 9476cd5a66d300c85306471a1a73c1f0c7bbe84e31c22a35f158e8c5552b4695
3
+ metadata.gz: fd0bbadc60e5c16a9fde38f2f19cc3224c80b75509b19d792987dcc3ff271413
4
+ data.tar.gz: fc5c2a7401efb2096153ad9eb6a58467b7b4924add3f39ab4a6165946faa86f5
5
5
  SHA512:
6
- metadata.gz: 5c0d92174ebb9bf20104f390d447c26b46e47dca4b8d76d4ba3ce45e989a1e2b39a18a5c16fe6e200e27a69ccd38ac2fc16907de1eec512b321f1684667365e2
7
- data.tar.gz: d7ce8d6622b4d8c34657ea78168e3d76e13c36850a942ac2b450041c3ee5c08558d9a0b69a0cfb62b8e12fcbb37643a093d833029ce22c3fe24f7783fe6b85e5
6
+ metadata.gz: aa25e1e0093ff5d0871345bc39e5e5e74f45258ddcf358489ea0cbdcb2d375cc86deb3a78687d59c0d2925a7043bbbbd2b505ce7fa6e926a678708ed29e8c7f3
7
+ data.tar.gz: 9bbc55f8582ecac48e8a2b2ee55daf57a859200f106163ee75d3fb7f5cb94eabf7dc8e690de1654c820c1112a2d8629274ba4ac0f80548ec22a9ade47b5dec2c
@@ -2,6 +2,6 @@
2
2
 
3
3
  module LucidShopify
4
4
  class Cache
5
- VERSION = '0.5.0'
5
+ VERSION = '0.6.0'
6
6
  end
7
7
  end
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'digest'
3
4
  require 'net/http'
4
5
  require 'uri'
5
6
 
@@ -38,11 +39,11 @@ module LucidShopify
38
39
  # @see {LucidShopify::Client#get}
39
40
  #
40
41
  private def key(credentials, path, params = {})
41
- [
42
+ Digest::MD5.hexdigest([
42
43
  credentials.myshopify_domain,
43
44
  path,
44
45
  params,
45
- ].join(':')
46
+ ].join("\x1f")) # ASCII unit separator
46
47
  end
47
48
  end
48
49
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lucid_shopify-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelsey Judson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-09 00:00:00.000000000 Z
11
+ date: 2018-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec