lucid_shopify-cache 0.3.3 → 0.4.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: 94bc5f6a3481309c490aaec02fcdf54b24c1b7f570c74302fc7ba36304f97d33
4
- data.tar.gz: c42250da6aa86f98e1b6101fbc0bec9b4dae29544bc7ffb89c58b8f7dbbd5d1b
3
+ metadata.gz: 33ccb44651bdc4464a44ce9e5a44734914cabe49d3c86298bc834effa2387ce2
4
+ data.tar.gz: 8b40495498e48193aeb1bdd8b676a1bef6d0b15ec12e9f635411c1d726864479
5
5
  SHA512:
6
- metadata.gz: e02cf5e5c40aa82f6ab2964d3cc64e8fd39bffcd1366d64a5db79dff7146c5bf90962555ca5a696532820a205e3942adf901b507fd67dcfef248fb15d69863f3
7
- data.tar.gz: 92d36c693812094df63b614239e3aac0bcb95253159e17b712721b6af415380b0b32d9b4392e86fa4396c24544180148a5feccac23569aff3e32b99c604000b9
6
+ metadata.gz: f7e4b8225b4e512918e7d85bec0b56207a8a256de4f8ee9e18fbd94eead36cb9bd5bd6738b6f804be61a71e8e0bb8e577a86bd61d159292a5dce28e5294c5abf
7
+ data.tar.gz: aff5239aa196acb2803f1c7cfac9c837963a0282a6359959763ea1137e259764ff5a022021b461ef42408b42aa295d3c14d3cbbb40bdf27632d50af46b192204
data/README.md CHANGED
@@ -41,7 +41,7 @@ You might want to set the TTL to a high value and clear it only
41
41
  when shop data actually changes. In this case, set up a ‘shop/update’
42
42
  webhook which calls:
43
43
 
44
- cached_get.clear(*args).(*args)['shop']
44
+ cached_get.clear(*args).(*args)
45
45
 
46
46
 
47
47
  ### TTL
@@ -2,6 +2,6 @@
2
2
 
3
3
  module LucidShopify
4
4
  class Cache
5
- VERSION = '0.3.3'
5
+ VERSION = '0.4.0'
6
6
  end
7
7
  end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'json'
4
+ require 'redis'
4
5
 
5
6
  module LucidShopify
6
7
  class Cache
@@ -11,7 +12,7 @@ module LucidShopify
11
12
  # @return [String]
12
13
  param :namespace, default: proc { 'lucid_shopify-cache' }
13
14
  # @return [Redis]
14
- option :redis_client, default: proc { defined?(Redis) && Redis.current }
15
+ option :redis_client, default: proc { Redis.current }
15
16
 
16
17
  #
17
18
  # Create a new instance with a new namespace appended to the current one.
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.3.3
4
+ version: 0.4.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-03-02 00:00:00.000000000 Z
11
+ date: 2018-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.5'
69
+ - !ruby/object:Gem::Dependency
70
+ name: redis
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '4.0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '4.0'
69
83
  description:
70
84
  email: kelsey@lucid.nz
71
85
  executables: []