greencache 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/greencache/version.rb +1 -1
- data/lib/greencache.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31ffd757e8f11b29d680b9f463c248323d8cd1c7
|
4
|
+
data.tar.gz: 7a024b4bdd522ded1325e491ae3b76e68be9b148
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10cca761c35c884d94497f41aff93c629b315d8924b125271c236a200aab247fd7f61038308f398e01d06b095c7b5242b6055e5ad44cc39c04a45ae622338955
|
7
|
+
data.tar.gz: f650215c5359218e2012b3cc365006e33d4c44b54431802c306c0695e5623fb77eb070083bdbb5613e7a392338535e475b7c959b8d2a1ed828224ef6ecca99fe
|
data/lib/greencache/version.rb
CHANGED
data/lib/greencache.rb
CHANGED
@@ -72,7 +72,7 @@ module Greencache
|
|
72
72
|
|
73
73
|
def decrypt(value, config)
|
74
74
|
return nil if value.nil?
|
75
|
-
return value unless config[:encrypt]
|
75
|
+
return MultiJson.load(value) unless config[:encrypt]
|
76
76
|
verifier = fernet.verifier(config[:secret], value)
|
77
77
|
return MultiJson.load(verifier.message) if verifier.valid?
|
78
78
|
return nil
|
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.1
|
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: 2017-07-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
version: '0'
|
155
155
|
requirements: []
|
156
156
|
rubyforge_project:
|
157
|
-
rubygems_version: 2.
|
157
|
+
rubygems_version: 2.6.8
|
158
158
|
signing_key:
|
159
159
|
specification_version: 4
|
160
160
|
summary: A gem for caching values in redis and encrypting them
|