redis-store 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of redis-store might be problematic. Click here for more details.
- data/lib/redis/store/namespace.rb +2 -2
- data/lib/redis/store/version.rb +1 -1
- data/test/redis/store/namespace_test.rb +9 -3
- data/test/redis/store/version_test.rb +2 -2
- metadata +121 -125
@@ -30,11 +30,11 @@ class Redis
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def del(*keys)
|
33
|
-
super *keys.map {|key| interpolate(key) }
|
33
|
+
super *keys.map {|key| interpolate(key) } if keys.any?
|
34
34
|
end
|
35
35
|
|
36
36
|
def mget(*keys)
|
37
|
-
super *keys.map {|key| interpolate(key) }
|
37
|
+
super *keys.map {|key| interpolate(key) } if keys.any?
|
38
38
|
end
|
39
39
|
|
40
40
|
def to_s
|
data/lib/redis/store/version.rb
CHANGED
@@ -23,9 +23,9 @@ describe "Redis::Store::Namespace" do
|
|
23
23
|
@store.send(:interpolate, "#{@namespace}:rabbit").must_equal("#{@namespace}:rabbit")
|
24
24
|
end
|
25
25
|
|
26
|
-
it "should
|
26
|
+
it "should only delete namespaced keys" do
|
27
27
|
other_store = Redis::Store.new
|
28
|
-
|
28
|
+
|
29
29
|
other_store.set 'abc', 'cba'
|
30
30
|
@store.set 'def', 'fed'
|
31
31
|
|
@@ -34,6 +34,12 @@ describe "Redis::Store::Namespace" do
|
|
34
34
|
other_store.get('abc').must_equal('cba')
|
35
35
|
end
|
36
36
|
|
37
|
+
it "should not try to delete missing namespaced keys" do
|
38
|
+
empty_store = Redis::Store.new :namespace => 'empty'
|
39
|
+
empty_store.flushdb
|
40
|
+
empty_store.keys.must_be_empty
|
41
|
+
end
|
42
|
+
|
37
43
|
it "namespaces get"
|
38
44
|
it "namespaces set"
|
39
45
|
it "namespaces setnx"
|
@@ -44,7 +50,7 @@ describe "Redis::Store::Namespace" do
|
|
44
50
|
it "namespaces incrby"
|
45
51
|
it "namespaces decrby"
|
46
52
|
it "namespaces mget"
|
47
|
-
|
53
|
+
|
48
54
|
# it "should namespace get" do
|
49
55
|
# @client.expects(:call).with([:get, "#{@namespace}:rabbit"]).once
|
50
56
|
# @store.get("rabbit")
|
metadata
CHANGED
@@ -1,144 +1,137 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-store
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.3
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 1
|
9
|
-
- 2
|
10
|
-
version: 1.1.2
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Luca Guidi
|
14
9
|
- Matt Horan
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
type: :runtime
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
13
|
+
date: 2012-10-06 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: redis
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
25
18
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 7
|
30
|
-
segments:
|
31
|
-
- 2
|
32
|
-
- 2
|
33
|
-
- 0
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
34
22
|
version: 2.2.0
|
35
|
-
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
23
|
+
type: :runtime
|
38
24
|
prerelease: false
|
39
|
-
|
40
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
26
|
none: false
|
42
|
-
requirements:
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 2.2.0
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: rake
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
35
|
+
requirements:
|
43
36
|
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
hash: 63
|
46
|
-
segments:
|
47
|
-
- 0
|
48
|
-
- 9
|
49
|
-
- 2
|
37
|
+
- !ruby/object:Gem::Version
|
50
38
|
version: 0.9.2
|
51
|
-
name: rake
|
52
|
-
version_requirements: *id002
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
|
-
prerelease: false
|
55
39
|
type: :development
|
56
|
-
|
40
|
+
prerelease: false
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
42
|
none: false
|
58
|
-
requirements:
|
43
|
+
requirements:
|
59
44
|
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
|
62
|
-
|
63
|
-
- 1
|
64
|
-
- 1
|
65
|
-
version: "1.1"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.9.2
|
47
|
+
- !ruby/object:Gem::Dependency
|
66
48
|
name: bundler
|
67
|
-
|
68
|
-
|
69
|
-
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.1'
|
70
55
|
type: :development
|
71
|
-
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
58
|
none: false
|
73
|
-
requirements:
|
59
|
+
requirements:
|
74
60
|
- - ~>
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
|
77
|
-
|
78
|
-
- 0
|
79
|
-
- 10
|
80
|
-
- 0
|
81
|
-
version: 0.10.0
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '1.1'
|
63
|
+
- !ruby/object:Gem::Dependency
|
82
64
|
name: mocha
|
83
|
-
|
84
|
-
|
85
|
-
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ~>
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 0.10.0
|
86
71
|
type: :development
|
87
|
-
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
88
74
|
none: false
|
89
|
-
requirements:
|
75
|
+
requirements:
|
90
76
|
- - ~>
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
|
93
|
-
|
94
|
-
- 2
|
95
|
-
- 8
|
96
|
-
- 0
|
97
|
-
version: 2.8.0
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 0.10.0
|
79
|
+
- !ruby/object:Gem::Dependency
|
98
80
|
name: minitest
|
99
|
-
|
100
|
-
|
101
|
-
|
81
|
+
requirement: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ~>
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 2.8.0
|
102
87
|
type: :development
|
103
|
-
|
88
|
+
prerelease: false
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
104
90
|
none: false
|
105
|
-
requirements:
|
91
|
+
requirements:
|
106
92
|
- - ~>
|
107
|
-
- !ruby/object:Gem::Version
|
108
|
-
|
109
|
-
|
110
|
-
- 1
|
111
|
-
- 0
|
112
|
-
- 0
|
113
|
-
version: 1.0.0
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 2.8.0
|
95
|
+
- !ruby/object:Gem::Dependency
|
114
96
|
name: purdytest
|
115
|
-
|
116
|
-
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
99
|
+
requirements:
|
100
|
+
- - ~>
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 1.0.0
|
103
|
+
type: :development
|
117
104
|
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 1.0.0
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: git
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
115
|
+
requirements:
|
116
|
+
- - ~>
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: 1.2.5
|
118
119
|
type: :development
|
119
|
-
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
120
122
|
none: false
|
121
|
-
requirements:
|
123
|
+
requirements:
|
122
124
|
- - ~>
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
hash: 21
|
125
|
-
segments:
|
126
|
-
- 1
|
127
|
-
- 2
|
128
|
-
- 5
|
125
|
+
- !ruby/object:Gem::Version
|
129
126
|
version: 1.2.5
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
email:
|
127
|
+
description: Namespaced Rack::Session, Rack::Cache, I18n and cache Redis stores for
|
128
|
+
Ruby web frameworks.
|
129
|
+
email:
|
134
130
|
- me@lucaguidi.com
|
135
131
|
executables: []
|
136
|
-
|
137
132
|
extensions: []
|
138
|
-
|
139
133
|
extra_rdoc_files: []
|
140
|
-
|
141
|
-
files:
|
134
|
+
files:
|
142
135
|
- Gemfile
|
143
136
|
- MIT-LICENSE
|
144
137
|
- README.md
|
@@ -168,36 +161,39 @@ files:
|
|
168
161
|
- test/test_helper.rb
|
169
162
|
homepage: http://jodosha.github.com/redis-store
|
170
163
|
licenses: []
|
171
|
-
|
172
164
|
post_install_message:
|
173
165
|
rdoc_options: []
|
174
|
-
|
175
|
-
require_paths:
|
166
|
+
require_paths:
|
176
167
|
- lib
|
177
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
168
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
178
169
|
none: false
|
179
|
-
requirements:
|
180
|
-
- -
|
181
|
-
- !ruby/object:Gem::Version
|
182
|
-
|
183
|
-
|
184
|
-
- 0
|
185
|
-
version: "0"
|
186
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
175
|
none: false
|
188
|
-
requirements:
|
189
|
-
- -
|
190
|
-
- !ruby/object:Gem::Version
|
191
|
-
|
192
|
-
segments:
|
193
|
-
- 0
|
194
|
-
version: "0"
|
176
|
+
requirements:
|
177
|
+
- - ! '>='
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0'
|
195
180
|
requirements: []
|
196
|
-
|
197
181
|
rubyforge_project: redis-store
|
198
|
-
rubygems_version: 1.8.
|
182
|
+
rubygems_version: 1.8.24
|
199
183
|
signing_key:
|
200
184
|
specification_version: 3
|
201
185
|
summary: Redis stores for Ruby frameworks
|
202
|
-
test_files:
|
203
|
-
|
186
|
+
test_files:
|
187
|
+
- test/config/node-one.conf
|
188
|
+
- test/config/node-two.conf
|
189
|
+
- test/config/redis.conf
|
190
|
+
- test/redis/distributed_store_test.rb
|
191
|
+
- test/redis/factory_test.rb
|
192
|
+
- test/redis/store/interface_test.rb
|
193
|
+
- test/redis/store/marshalling_test.rb
|
194
|
+
- test/redis/store/namespace_test.rb
|
195
|
+
- test/redis/store/ttl_test.rb
|
196
|
+
- test/redis/store/version_test.rb
|
197
|
+
- test/redis/store_test.rb
|
198
|
+
- test/test_helper.rb
|
199
|
+
has_rdoc:
|