cache_store_redis 0.3.1 → 0.3.2

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: c2087b0c219ed59794b593652c47b8122b29b37d
4
- data.tar.gz: e43bae4813128f1a0965c68cc383ea15ec62275d
3
+ metadata.gz: f084e13e3602325ec84cb76fe89d5598813e0a53
4
+ data.tar.gz: e70ac165ec4185dcbdbe197ac6bd891dd1d0de4c
5
5
  SHA512:
6
- metadata.gz: 27d2a8e145cf28b8385f0b02122848c24698f09e4752ce8e4638349591a4f864d4a088d6137abefc9762910af98d3bc3381c4b460917ba0524a58a330ad3d58e
7
- data.tar.gz: a7df8a0baa0b0b9c4502a6add6b01037ee1286400e06437a3fbae04fdc854498eb87bbe98d441ff8e65deb1b46eb8a00388731af97611358ac7e169f15ff2c8d
6
+ metadata.gz: eda1b6abe1ca2bd749b2a20706107b69fba9b0e74d31269bb80ac07e5af129599fa9cb6d925a514ef90147856026a6a83435a94ee200eff3786b280856ada891
7
+ data.tar.gz: ffb71b410f449b18af67372f203fe02c55e1b8b5cab2e53fbab1f2174c10c2d29505cee9f34bdfdb22041199c5bcb9fcffd6d237172ecfc86169267d31d90af1
@@ -1,3 +1,3 @@
1
1
  module CacheStoreRedis
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
@@ -7,6 +7,7 @@ require 'securerandom'
7
7
  class RedisCacheStore
8
8
 
9
9
  def initialize(namespace = nil, config = nil)
10
+
10
11
  if RUBY_PLATFORM != 'java'
11
12
  require 'oj'
12
13
  end
@@ -109,17 +110,17 @@ class RedisCacheStore
109
110
 
110
111
  def serialize(object)
111
112
  if RUBY_PLATFORM == 'java'
112
- Marshal::dump(value)
113
+ Marshal::dump(object)
113
114
  else
114
- OJ.dump(value)
115
+ Oj.dump(object)
115
116
  end
116
117
  end
117
118
 
118
119
  def deserialize(object)
119
120
  if RUBY_PLATFORM == 'java'
120
- Marshal::load(value)
121
+ Marshal::load(object)
121
122
  else
122
- OJ.load(value)
123
+ Oj.load(object)
123
124
  end
124
125
  end
125
126
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cache_store_redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaughanbrittonsage