greencache 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/greencache.rb +4 -0
- data/lib/greencache/version.rb +1 -1
- data/spec/greencache_spec.rb +5 -0
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3dff03b6a7842d910edca9c0621c2d397db6f717e8047df76024b74af6bc6a72
|
4
|
+
data.tar.gz: 24ce73bdfd300b5a99a05cbadd3d1df511a8e1272d18409eba3523ee965b6839
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1067e72923725c96a23b22b6cb710ea177e0efeae3637c8e4ad321a9aebeb71729bc091515d96e60baa56f600ef57cc1cf69bf5c4a3bfd003ef85effeb8c4b09
|
7
|
+
data.tar.gz: 8f2db04b23fccf1a756fb7f3ce4ed52e7c1d243d44c6d45200e49cae75df775a6b99fee6f0d3ae2cf4586f2c4923b78d9345d599296e79c04a39b4a5b0d4fa90
|
data/lib/greencache.rb
CHANGED
data/lib/greencache/version.rb
CHANGED
data/spec/greencache_spec.rb
CHANGED
@@ -109,4 +109,9 @@ describe Greencache do
|
|
109
109
|
expect(rc.fernet).to receive(:generate).with("foo", '"bar"'){ "abc" }
|
110
110
|
rc.encrypt("bar", {encrypt: true, secret: 'foo'})
|
111
111
|
end
|
112
|
+
|
113
|
+
it 'expires keys' do
|
114
|
+
expect(rc.redis).to receive(:del).with('cache-key-123456')
|
115
|
+
expect(rc.expire('cache-key-123456'))
|
116
|
+
end
|
112
117
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: greencache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neil Middleton
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-12-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -154,11 +154,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
version: '0'
|
155
155
|
requirements: []
|
156
156
|
rubyforge_project:
|
157
|
-
rubygems_version: 2.6
|
157
|
+
rubygems_version: 2.7.6
|
158
158
|
signing_key:
|
159
159
|
specification_version: 4
|
160
160
|
summary: A gem for caching values in redis and encrypting them
|
161
161
|
test_files:
|
162
162
|
- spec/greencache_spec.rb
|
163
163
|
- spec/spec_helper.rb
|
164
|
-
has_rdoc:
|