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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e4c83976dd73945a021cc5c23a22c16e6654771e
4
- data.tar.gz: 60b7fedbe8db7abb295d2e67b29c5d80b0e3f32b
3
+ metadata.gz: 31ffd757e8f11b29d680b9f463c248323d8cd1c7
4
+ data.tar.gz: 7a024b4bdd522ded1325e491ae3b76e68be9b148
5
5
  SHA512:
6
- metadata.gz: ce7746c74b41b9b5ad7ca8441a77313d5ca6f72877d9e5ad75b98b0dec68a94cead40d0fc094d958e119e26355f56bbd5df99467632efd890ac2de0d73fc009f
7
- data.tar.gz: af8df99f8ee8eb5d14af40058dfc4d43db1bf50cc15ccf6613c81114029b9409a1e81ea49a9722dd1163ad2e262dba288895b52b96c85dd03275cffb7abd4f18
6
+ metadata.gz: 10cca761c35c884d94497f41aff93c629b315d8924b125271c236a200aab247fd7f61038308f398e01d06b095c7b5242b6055e5ad44cc39c04a45ae622338955
7
+ data.tar.gz: f650215c5359218e2012b3cc365006e33d4c44b54431802c306c0695e5623fb77eb070083bdbb5613e7a392338535e475b7c959b8d2a1ed828224ef6ecca99fe
@@ -1,3 +1,3 @@
1
1
  module Greencache
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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: 2015-09-08 00:00:00.000000000 Z
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.4.5.1
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