redis-store 1.3.0 → 1.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 +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +0 -1
- data/CHANGELOG +56 -3
- data/README.md +12 -4
- data/lib/redis-store.rb +0 -12
- data/lib/redis/store.rb +26 -2
- data/lib/redis/store/factory.rb +9 -2
- data/lib/redis/store/namespace.rb +2 -2
- data/lib/redis/store/{marshalling.rb → serialization.rb} +3 -3
- data/lib/redis/store/version.rb +1 -1
- data/redis-store.gemspec +4 -3
- data/test/redis/store/factory_test.rb +62 -3
- data/test/redis/store/namespace_test.rb +4 -4
- data/test/redis/store/{marshalling_test.rb → serialization_test.rb} +2 -2
- data/test/test_helper.rb +1 -0
- metadata +58 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fcf8af10e3ba000726fa40f3633c0bd725f3c1f1
|
4
|
+
data.tar.gz: c51a300a95250fb34af534d1d3f427122baf919a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7f5e7c2b314d06103bc76a14cb203bf23815d9b98c2d828d9dad75b7fcaf59761f171daca30ca5e6d780d8bf83107fbd78a8796cdd5215fba0e5f88b8c30133
|
7
|
+
data.tar.gz: e849f9d018d464eb359d0bb17c10e1adbecae028e64eb7e99b81d995373d58f25a35980513eaf9c5177e9a47fa1b426e131b59f546e5acb2e421854cee6f440c
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG
CHANGED
@@ -1,3 +1,56 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## 1.3.0
|
4
|
+
|
5
|
+
Breaking Changes
|
6
|
+
|
7
|
+
* None
|
8
|
+
|
9
|
+
Added
|
10
|
+
|
11
|
+
* Add support for marshalling mset
|
12
|
+
|
13
|
+
Fixed
|
14
|
+
|
15
|
+
* Set :raw => true if marshalling
|
16
|
+
* Forward new Hash, not nil, when options are unset
|
17
|
+
|
18
|
+
## 1.2.0
|
19
|
+
|
20
|
+
Breaking Changes
|
21
|
+
|
22
|
+
* None
|
23
|
+
|
24
|
+
Added
|
25
|
+
|
26
|
+
* Allow changing namespaces on the fly
|
27
|
+
* Begin testing against ruby 2.3.0
|
28
|
+
|
29
|
+
Fixed
|
30
|
+
|
31
|
+
* Use batched deletes for flushdb with a namespace
|
32
|
+
* pass set command options to redis
|
33
|
+
* bump rbx 2
|
34
|
+
* fix setex marshalling for distributed store
|
35
|
+
* changes to new url
|
36
|
+
* :warning: shadowing outer local variable - key, pattern, value
|
37
|
+
* :warning: `*' interpreted as argument prefix
|
38
|
+
* Removed duplicated method ttl
|
39
|
+
|
40
|
+
## 1.1.7
|
41
|
+
|
42
|
+
Breaking Changes
|
43
|
+
|
44
|
+
* None
|
45
|
+
|
46
|
+
Added
|
47
|
+
|
48
|
+
* Added redis_version and supports_redis_version? methods to Store and DistributedStore
|
49
|
+
|
50
|
+
Fixed
|
51
|
+
|
52
|
+
* Handle minor and patch version correctly as they may be multiple digits
|
53
|
+
|
1
54
|
*1.1.6 (July 16, 2015)*
|
2
55
|
|
3
56
|
https://github.com/redis-store/redis-store/compare/v1.1.5...v1.1.6
|
@@ -95,7 +148,7 @@ https://github.com/redis-store/redis-store/compare/v1.1.4...v1.1.5
|
|
95
148
|
- redis-i18n 0.6.0.rc2
|
96
149
|
- redis-rack-cache 1.1.rc3
|
97
150
|
- redis-rails 3.1.3.rc4
|
98
|
-
- redis-sinatra 1.3.1.rc2
|
151
|
+
- redis-sinatra 1.3.1.rc2
|
99
152
|
* Remove redis-actionpack dependency on redis-rack-cache [Matt Horan]
|
100
153
|
|
101
154
|
*1.1.0 [rc2] (February 3, 2012)*
|
@@ -144,7 +197,7 @@ https://github.com/redis-store/redis-store/compare/v1.1.4...v1.1.5
|
|
144
197
|
* Use strict dependencies.
|
145
198
|
* READMEs and Licenses
|
146
199
|
* redis-actionpack now depends on redis-rack-cache
|
147
|
-
* Redis::Factory.convert_to_redis_client_options => Redis::Factory.resolve.
|
200
|
+
* Redis::Factory.convert_to_redis_client_options => Redis::Factory.resolve.
|
148
201
|
* Don't use autoload
|
149
202
|
* Make redis-rack-cache tests to pass again
|
150
203
|
* Target Rack::Cache 1.1 for redis-rack-cache
|
@@ -172,7 +225,7 @@ https://github.com/redis-store/redis-store/compare/v1.1.4...v1.1.5
|
|
172
225
|
* Moved Rake test tasks into lib/tasks/redis.tasks.rb, in order to DRY Rake
|
173
226
|
* Testing: Use relative paths when referring to pid files
|
174
227
|
* Autoload modules
|
175
|
-
* Moved Rake test tasks under lib/ in order to make them accessible to all
|
228
|
+
* Moved Rake test tasks under lib/ in order to make them accessible to all
|
176
229
|
* Let the Redis::DistributedStore test to pass
|
177
230
|
* Let Redis Rake tasks to work again
|
178
231
|
* Run tests without dtach
|
data/README.md
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
# Redis stores for Ruby frameworks
|
2
2
|
|
3
|
-
[](https://travis-ci.org/redis-store/redis-store)
|
4
|
-
|
5
3
|
__Redis Store__ provides a full set of stores (*Cache*, *I18n*, *Session*, *HTTP Cache*) for modern Ruby frameworks like: __Ruby on Rails__, __Sinatra__, __Rack__, __Rack::Cache__ and __I18n__. It supports object marshalling, timeouts, single or multiple nodes, and namespaces.
|
6
4
|
|
7
5
|
Please check the *README* file of each gem for usage and installation guidelines.
|
@@ -33,7 +31,17 @@ If you are on **Snow Leopard** you have to run `env ARCHFLAGS="-arch x86_64" rub
|
|
33
31
|
|
34
32
|
## Contributors
|
35
33
|
|
36
|
-
|
34
|
+
https://github.com/redis-store/redis-store/graphs/contributors
|
35
|
+
|
36
|
+
## Versioning
|
37
|
+
|
38
|
+
The **redis-store** family of gems uses [Semantic Versioning](http://semver.org), meaning gems depending on **redis-store**
|
39
|
+
can be reliably inclusive of any version between the current and the next major. We recommend the following dependency
|
40
|
+
in your library's gemspec:
|
41
|
+
|
42
|
+
```ruby
|
43
|
+
s.add_dependency 'redis-store', '>= 1.4', '< 2'
|
44
|
+
```
|
37
45
|
|
38
46
|
## Status
|
39
47
|
|
@@ -43,4 +51,4 @@ If you are on **Snow Leopard** you have to run `env ARCHFLAGS="-arch x86_64" rub
|
|
43
51
|
|
44
52
|
## Copyright
|
45
53
|
|
46
|
-
2009 - 2013 Luca Guidi - [http://lucaguidi.com](http://lucaguidi.com), released under the MIT license
|
54
|
+
2009 - 2013 Luca Guidi - [http://lucaguidi.com](http://lucaguidi.com), released under the MIT license.
|
data/lib/redis-store.rb
CHANGED
@@ -1,13 +1 @@
|
|
1
|
-
require 'redis'
|
2
1
|
require 'redis/store'
|
3
|
-
require 'redis/store/factory'
|
4
|
-
require 'redis/distributed_store'
|
5
|
-
require 'redis/store/namespace'
|
6
|
-
require 'redis/store/marshalling'
|
7
|
-
require 'redis/store/version'
|
8
|
-
require 'redis/store/redis_version'
|
9
|
-
|
10
|
-
class Redis
|
11
|
-
class Store < self
|
12
|
-
end
|
13
|
-
end
|
data/lib/redis/store.rb
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
require 'redis'
|
2
|
+
require 'redis/store/factory'
|
3
|
+
require 'redis/distributed_store'
|
4
|
+
require 'redis/store/namespace'
|
5
|
+
require 'redis/store/serialization'
|
6
|
+
require 'redis/store/version'
|
7
|
+
require 'redis/store/redis_version'
|
1
8
|
require 'redis/store/ttl'
|
2
9
|
require 'redis/store/interface'
|
3
10
|
require 'redis/store/redis_version'
|
@@ -8,6 +15,24 @@ class Redis
|
|
8
15
|
|
9
16
|
def initialize(options = { })
|
10
17
|
super
|
18
|
+
|
19
|
+
unless options[:marshalling].nil?
|
20
|
+
puts %(
|
21
|
+
DEPRECATED: You are passing the :marshalling option, which has been
|
22
|
+
replaced with `serializer: Marshal` to support pluggable serialization
|
23
|
+
backends. To disable serialization (much like disabling marshalling),
|
24
|
+
pass `serializer: nil` in your configuration.
|
25
|
+
|
26
|
+
The :marshalling option will be removed for redis-store 2.0.
|
27
|
+
)
|
28
|
+
end
|
29
|
+
|
30
|
+
@serializer = options.key?(:serializer) ? options[:serializer] : Marshal
|
31
|
+
|
32
|
+
unless options[:marshalling].nil?
|
33
|
+
@serializer = options[:marshalling] ? Marshal : nil
|
34
|
+
end
|
35
|
+
|
11
36
|
_extend_marshalling options
|
12
37
|
_extend_namespace options
|
13
38
|
end
|
@@ -23,8 +48,7 @@ class Redis
|
|
23
48
|
|
24
49
|
private
|
25
50
|
def _extend_marshalling(options)
|
26
|
-
|
27
|
-
extend Marshalling if @marshalling
|
51
|
+
extend Serialization unless @serializer.nil?
|
28
52
|
end
|
29
53
|
|
30
54
|
def _extend_namespace(options)
|
data/lib/redis/store/factory.rb
CHANGED
@@ -50,7 +50,14 @@ class Redis
|
|
50
50
|
if options.key?(:key_prefix) && !options.key?(:namespace)
|
51
51
|
options[:namespace] = options.delete(:key_prefix) # RailsSessionStore
|
52
52
|
end
|
53
|
-
options[:raw] =
|
53
|
+
options[:raw] = case
|
54
|
+
when options.key?(:serializer)
|
55
|
+
options[:serializer].nil?
|
56
|
+
when options.key?(:marshalling)
|
57
|
+
!options[:marshalling]
|
58
|
+
else
|
59
|
+
false
|
60
|
+
end
|
54
61
|
options
|
55
62
|
end
|
56
63
|
|
@@ -71,7 +78,7 @@ class Redis
|
|
71
78
|
options = {
|
72
79
|
:host => uri.hostname,
|
73
80
|
:port => uri.port || DEFAULT_PORT,
|
74
|
-
:password => uri.password
|
81
|
+
:password => uri.password.nil? ? nil : CGI::unescape(uri.password.to_s)
|
75
82
|
}
|
76
83
|
|
77
84
|
options[:db] = db.to_i if db
|
@@ -46,8 +46,8 @@ class Redis
|
|
46
46
|
def mget(*keys)
|
47
47
|
options = (keys.pop if keys.last.is_a? Hash) || {}
|
48
48
|
if keys.any?
|
49
|
-
#
|
50
|
-
if singleton_class.ancestors.include?
|
49
|
+
# Serialization gets extended before Namespace does, so we need to pass options further
|
50
|
+
if singleton_class.ancestors.include? Serialization
|
51
51
|
super(*keys.map {|key| interpolate(key) }, options)
|
52
52
|
else
|
53
53
|
super(*keys.map {|key| interpolate(key) })
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class Redis
|
2
2
|
class Store < self
|
3
|
-
module
|
3
|
+
module Serialization
|
4
4
|
def set(key, value, options = nil)
|
5
5
|
_marshal(value, options) { |v| super encode(key), encode(v), options }
|
6
6
|
end
|
@@ -36,11 +36,11 @@ class Redis
|
|
36
36
|
|
37
37
|
private
|
38
38
|
def _marshal(val, options)
|
39
|
-
yield marshal?(options) ?
|
39
|
+
yield marshal?(options) ? @serializer.dump(val) : val
|
40
40
|
end
|
41
41
|
|
42
42
|
def _unmarshal(val, options)
|
43
|
-
unmarshal?(val, options) ?
|
43
|
+
unmarshal?(val, options) ? @serializer.load(val) : val
|
44
44
|
end
|
45
45
|
|
46
46
|
def marshal?(options)
|
data/lib/redis/store/version.rb
CHANGED
data/redis-store.gemspec
CHANGED
@@ -19,13 +19,14 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
s.license = 'MIT'
|
21
21
|
|
22
|
-
s.add_dependency 'redis', '>= 2.2'
|
22
|
+
s.add_dependency 'redis', '>= 2.2', '< 4'
|
23
23
|
|
24
24
|
s.add_development_dependency 'rake', '~> 10'
|
25
25
|
s.add_development_dependency 'bundler', '~> 1.3'
|
26
26
|
s.add_development_dependency 'mocha', '~> 0.14.0'
|
27
27
|
s.add_development_dependency 'minitest', '~> 5'
|
28
28
|
s.add_development_dependency 'git', '~> 1.2'
|
29
|
+
s.add_development_dependency 'pry-nav', '~> 0.2.4'
|
30
|
+
s.add_development_dependency 'pry', '~> 0.10.4'
|
29
31
|
s.add_development_dependency 'redis-store-testing'
|
30
|
-
end
|
31
|
-
|
32
|
+
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'test_helper'
|
2
|
+
require 'json'
|
2
3
|
|
3
4
|
describe "Redis::Store::Factory" do
|
4
5
|
describe ".create" do
|
@@ -41,12 +42,55 @@ describe "Redis::Store::Factory" do
|
|
41
42
|
store.instance_variable_get(:@client).password.must_equal("secret")
|
42
43
|
end
|
43
44
|
|
44
|
-
it
|
45
|
-
store = Redis::Store::Factory.create :
|
46
|
-
store.instance_variable_get(:@
|
45
|
+
it 'uses empty password' do
|
46
|
+
store = Redis::Store::Factory.create :password => ''
|
47
|
+
store.instance_variable_get(:@client).password.must_equal('')
|
48
|
+
end
|
49
|
+
|
50
|
+
it 'uses nil password' do
|
51
|
+
store = Redis::Store::Factory.create :password => nil
|
52
|
+
assert_nil(store.instance_variable_get(:@client).password)
|
53
|
+
end
|
54
|
+
|
55
|
+
it "disables serialization" do
|
56
|
+
store = Redis::Store::Factory.create :serializer => nil
|
57
|
+
store.instance_variable_get(:@serializer).must_be_nil
|
47
58
|
store.instance_variable_get(:@options)[:raw].must_equal(true)
|
48
59
|
end
|
49
60
|
|
61
|
+
it "configures pluggable serialization backend" do
|
62
|
+
store = Redis::Store::Factory.create :serializer => JSON
|
63
|
+
store.instance_variable_get(:@serializer).must_equal(JSON)
|
64
|
+
store.instance_variable_get(:@options)[:raw].must_equal(false)
|
65
|
+
end
|
66
|
+
|
67
|
+
describe 'with stdout disabled' do
|
68
|
+
before do
|
69
|
+
@original_stderr = $stderr
|
70
|
+
@original_stdout = $stdout
|
71
|
+
|
72
|
+
$stderr = Tempfile.new('stderr')
|
73
|
+
$stdout = Tempfile.new('stdout')
|
74
|
+
end
|
75
|
+
|
76
|
+
it "disables marshalling and provides deprecation warning" do
|
77
|
+
store = Redis::Store::Factory.create :marshalling => false
|
78
|
+
store.instance_variable_get(:@serializer).must_be_nil
|
79
|
+
store.instance_variable_get(:@options)[:raw].must_equal(true)
|
80
|
+
end
|
81
|
+
|
82
|
+
it "enables marshalling but provides warning to use :serializer instead" do
|
83
|
+
store = Redis::Store::Factory.create :marshalling => true
|
84
|
+
store.instance_variable_get(:@serializer).must_equal(Marshal)
|
85
|
+
store.instance_variable_get(:@options)[:raw].must_equal(false)
|
86
|
+
end
|
87
|
+
|
88
|
+
after do
|
89
|
+
$stderr = @original_stderr
|
90
|
+
$stdout = @original_stdout
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
50
94
|
it "should instantiate a Redis::DistributedStore store" do
|
51
95
|
store = Redis::Store::Factory.create(
|
52
96
|
{:host => "localhost", :port => 6379},
|
@@ -86,6 +130,21 @@ describe "Redis::Store::Factory" do
|
|
86
130
|
store.instance_variable_get(:@client).password.must_equal("secret")
|
87
131
|
end
|
88
132
|
|
133
|
+
it 'uses specified password with special characters' do
|
134
|
+
store = Redis::Store::Factory.create 'redis://:pwd%40123@127.0.0.1:6379/0/theplaylist'
|
135
|
+
store.instance_variable_get(:@client).password.must_equal('pwd@123')
|
136
|
+
end
|
137
|
+
|
138
|
+
it 'uses empty password' do
|
139
|
+
store = Redis::Store::Factory.create 'redis://:@127.0.0.1:6379/0/theplaylist'
|
140
|
+
store.instance_variable_get(:@client).password.must_equal('')
|
141
|
+
end
|
142
|
+
|
143
|
+
it 'uses nil password' do
|
144
|
+
store = Redis::Store::Factory.create 'redis://127.0.0.1:6379/0/theplaylist'
|
145
|
+
assert_nil(store.instance_variable_get(:@client).password)
|
146
|
+
end
|
147
|
+
|
89
148
|
it "correctly uses specified ipv6 host" do
|
90
149
|
store = Redis::Store::Factory.create "redis://[::1]:6380"
|
91
150
|
store.to_s.must_equal("Redis Client connected to [::1]:6380 against DB 0")
|
@@ -3,7 +3,7 @@ require 'test_helper'
|
|
3
3
|
describe "Redis::Store::Namespace" do
|
4
4
|
def setup
|
5
5
|
@namespace = "theplaylist"
|
6
|
-
@store = Redis::Store.new :namespace => @namespace, :
|
6
|
+
@store = Redis::Store.new :namespace => @namespace, :serializer => nil
|
7
7
|
@client = @store.instance_variable_get(:@client)
|
8
8
|
@rabbit = "bunny"
|
9
9
|
@default_store = Redis::Store.new
|
@@ -38,7 +38,7 @@ describe "Redis::Store::Namespace" do
|
|
38
38
|
@store.set 'def', 'fed'
|
39
39
|
|
40
40
|
@store.flushdb
|
41
|
-
@store.get('def').
|
41
|
+
@store.get('def').must_be_nil
|
42
42
|
@default_store.get('abc').must_equal('cba')
|
43
43
|
end
|
44
44
|
|
@@ -74,7 +74,7 @@ describe "Redis::Store::Namespace" do
|
|
74
74
|
r2 = dyn_store.get 'key'
|
75
75
|
$ns = "ns1"
|
76
76
|
r1 = dyn_store.get 'key'
|
77
|
-
r1.must_equal('x') && r2.must_equal('y') && r3.
|
77
|
+
r1.must_equal('x') && r2.must_equal('y') && r3.must_be_nil
|
78
78
|
end
|
79
79
|
|
80
80
|
it "namespaces setex and ttl" do
|
@@ -90,7 +90,7 @@ describe "Redis::Store::Namespace" do
|
|
90
90
|
end
|
91
91
|
|
92
92
|
describe 'method calls' do
|
93
|
-
let(:store){Redis::Store.new :namespace => @namespace, :
|
93
|
+
let(:store){Redis::Store.new :namespace => @namespace, :serializer => nil}
|
94
94
|
let(:client){store.instance_variable_get(:@client)}
|
95
95
|
|
96
96
|
it "should namespace get" do
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
|
3
|
-
describe "Redis::
|
3
|
+
describe "Redis::Serialization" do
|
4
4
|
def setup
|
5
|
-
@store = Redis::Store.new :
|
5
|
+
@store = Redis::Store.new serializer: Marshal
|
6
6
|
@rabbit = OpenStruct.new :name => "bunny"
|
7
7
|
@white_rabbit = OpenStruct.new :color => "white"
|
8
8
|
@store.set "rabbit", @rabbit
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,111 +1,145 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '2.2'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '4'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- -
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '2.2'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '4'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: rake
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
|
-
- - ~>
|
37
|
+
- - "~>"
|
32
38
|
- !ruby/object:Gem::Version
|
33
39
|
version: '10'
|
34
40
|
type: :development
|
35
41
|
prerelease: false
|
36
42
|
version_requirements: !ruby/object:Gem::Requirement
|
37
43
|
requirements:
|
38
|
-
- - ~>
|
44
|
+
- - "~>"
|
39
45
|
- !ruby/object:Gem::Version
|
40
46
|
version: '10'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: bundler
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
|
-
- - ~>
|
51
|
+
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
53
|
version: '1.3'
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
|
-
- - ~>
|
58
|
+
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
60
|
version: '1.3'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: mocha
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
|
-
- - ~>
|
65
|
+
- - "~>"
|
60
66
|
- !ruby/object:Gem::Version
|
61
67
|
version: 0.14.0
|
62
68
|
type: :development
|
63
69
|
prerelease: false
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
65
71
|
requirements:
|
66
|
-
- - ~>
|
72
|
+
- - "~>"
|
67
73
|
- !ruby/object:Gem::Version
|
68
74
|
version: 0.14.0
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: minitest
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
72
78
|
requirements:
|
73
|
-
- - ~>
|
79
|
+
- - "~>"
|
74
80
|
- !ruby/object:Gem::Version
|
75
81
|
version: '5'
|
76
82
|
type: :development
|
77
83
|
prerelease: false
|
78
84
|
version_requirements: !ruby/object:Gem::Requirement
|
79
85
|
requirements:
|
80
|
-
- - ~>
|
86
|
+
- - "~>"
|
81
87
|
- !ruby/object:Gem::Version
|
82
88
|
version: '5'
|
83
89
|
- !ruby/object:Gem::Dependency
|
84
90
|
name: git
|
85
91
|
requirement: !ruby/object:Gem::Requirement
|
86
92
|
requirements:
|
87
|
-
- - ~>
|
93
|
+
- - "~>"
|
88
94
|
- !ruby/object:Gem::Version
|
89
95
|
version: '1.2'
|
90
96
|
type: :development
|
91
97
|
prerelease: false
|
92
98
|
version_requirements: !ruby/object:Gem::Requirement
|
93
99
|
requirements:
|
94
|
-
- - ~>
|
100
|
+
- - "~>"
|
95
101
|
- !ruby/object:Gem::Version
|
96
102
|
version: '1.2'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: pry-nav
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 0.2.4
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: 0.2.4
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: pry
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 0.10.4
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: 0.10.4
|
97
131
|
- !ruby/object:Gem::Dependency
|
98
132
|
name: redis-store-testing
|
99
133
|
requirement: !ruby/object:Gem::Requirement
|
100
134
|
requirements:
|
101
|
-
- -
|
135
|
+
- - ">="
|
102
136
|
- !ruby/object:Gem::Version
|
103
137
|
version: '0'
|
104
138
|
type: :development
|
105
139
|
prerelease: false
|
106
140
|
version_requirements: !ruby/object:Gem::Requirement
|
107
141
|
requirements:
|
108
|
-
- -
|
142
|
+
- - ">="
|
109
143
|
- !ruby/object:Gem::Version
|
110
144
|
version: '0'
|
111
145
|
description: Namespaced Rack::Session, Rack::Cache, I18n and cache Redis stores for
|
@@ -116,8 +150,8 @@ executables: []
|
|
116
150
|
extensions: []
|
117
151
|
extra_rdoc_files: []
|
118
152
|
files:
|
119
|
-
- .gitignore
|
120
|
-
- .travis.yml
|
153
|
+
- ".gitignore"
|
154
|
+
- ".travis.yml"
|
121
155
|
- CHANGELOG
|
122
156
|
- Gemfile
|
123
157
|
- MIT-LICENSE
|
@@ -128,18 +162,18 @@ files:
|
|
128
162
|
- lib/redis/store.rb
|
129
163
|
- lib/redis/store/factory.rb
|
130
164
|
- lib/redis/store/interface.rb
|
131
|
-
- lib/redis/store/marshalling.rb
|
132
165
|
- lib/redis/store/namespace.rb
|
133
166
|
- lib/redis/store/redis_version.rb
|
167
|
+
- lib/redis/store/serialization.rb
|
134
168
|
- lib/redis/store/ttl.rb
|
135
169
|
- lib/redis/store/version.rb
|
136
170
|
- redis-store.gemspec
|
137
171
|
- test/redis/distributed_store_test.rb
|
138
172
|
- test/redis/store/factory_test.rb
|
139
173
|
- test/redis/store/interface_test.rb
|
140
|
-
- test/redis/store/marshalling_test.rb
|
141
174
|
- test/redis/store/namespace_test.rb
|
142
175
|
- test/redis/store/redis_version_test.rb
|
176
|
+
- test/redis/store/serialization_test.rb
|
143
177
|
- test/redis/store/ttl_test.rb
|
144
178
|
- test/redis/store/version_test.rb
|
145
179
|
- test/redis/store_test.rb
|
@@ -154,17 +188,17 @@ require_paths:
|
|
154
188
|
- lib
|
155
189
|
required_ruby_version: !ruby/object:Gem::Requirement
|
156
190
|
requirements:
|
157
|
-
- -
|
191
|
+
- - ">="
|
158
192
|
- !ruby/object:Gem::Version
|
159
193
|
version: '0'
|
160
194
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
195
|
requirements:
|
162
|
-
- -
|
196
|
+
- - ">="
|
163
197
|
- !ruby/object:Gem::Version
|
164
198
|
version: '0'
|
165
199
|
requirements: []
|
166
200
|
rubyforge_project: redis-store
|
167
|
-
rubygems_version: 2.
|
201
|
+
rubygems_version: 2.6.11
|
168
202
|
signing_key:
|
169
203
|
specification_version: 4
|
170
204
|
summary: Redis stores for Ruby frameworks
|
@@ -172,9 +206,9 @@ test_files:
|
|
172
206
|
- test/redis/distributed_store_test.rb
|
173
207
|
- test/redis/store/factory_test.rb
|
174
208
|
- test/redis/store/interface_test.rb
|
175
|
-
- test/redis/store/marshalling_test.rb
|
176
209
|
- test/redis/store/namespace_test.rb
|
177
210
|
- test/redis/store/redis_version_test.rb
|
211
|
+
- test/redis/store/serialization_test.rb
|
178
212
|
- test/redis/store/ttl_test.rb
|
179
213
|
- test/redis/store/version_test.rb
|
180
214
|
- test/redis/store_test.rb
|