redis-store 1.8.0 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +29 -1
- data/lib/redis/store/namespace.rb +12 -0
- data/lib/redis/store/version.rb +1 -1
- data/test/redis/store/namespace_test.rb +15 -0
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c7510ed2d846ec08694d4ef31126f610a3f2f92c9b99f9a220150636988bef20
|
4
|
+
data.tar.gz: 0c5b86eeb4f8443cbde092921a9a232e8f899a0885b6337b4f4c4a4e96b29432
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e03ef35978174cd3347a6e14ba086d8f7cfd02fb231cfdc6f82e400d75b1947fe8a70f51ac763ffa735d2a30e07509bd0e816bd84ef2534c67fd8928925e91c4
|
7
|
+
data.tar.gz: 65718c4f68167d77a5abedad10ff783fd41e1ca8e256845db992a210fbea0d8f9d45494f34632c28e41cc0b68ca9e652bab1d6382025264c68fe6fc316940b4c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,33 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.8.1
|
4
|
+
|
5
|
+
Breaking Changes
|
6
|
+
|
7
|
+
* None
|
8
|
+
|
9
|
+
Added
|
10
|
+
|
11
|
+
* None
|
12
|
+
|
13
|
+
Fixed
|
14
|
+
|
15
|
+
* [Add namespace to remaining hash methods](https://github.com/redis-store/redis-store/pull/321)
|
16
|
+
|
17
|
+
## 1.8.0
|
18
|
+
|
19
|
+
Breaking Changes
|
20
|
+
|
21
|
+
* None
|
22
|
+
|
23
|
+
Added
|
24
|
+
|
25
|
+
* [Redis Cluster Support](https://github.com/redis-store/redis-store/pull/318)
|
26
|
+
|
27
|
+
Fixed
|
28
|
+
|
29
|
+
* None
|
30
|
+
|
3
31
|
## 1.6.0
|
4
32
|
|
5
33
|
Breaking Changes
|
@@ -59,7 +87,7 @@ Added
|
|
59
87
|
|
60
88
|
Fixed
|
61
89
|
|
62
|
-
* Conventional `Marshal.dump` usage allowing potential security vulnerability (CVE-2017-1000248)
|
90
|
+
* Conventional `Marshal.dump` usage allowing potential security vulnerability (CVE-2017-1000248)
|
63
91
|
|
64
92
|
## 1.3.0
|
65
93
|
|
@@ -90,6 +90,18 @@ class Redis
|
|
90
90
|
namespace(key) { |k| super(k, ttl) }
|
91
91
|
end
|
92
92
|
|
93
|
+
def hscan(key, cursor, options = {})
|
94
|
+
namespace(key) { |k| super(k, cursor, options) }
|
95
|
+
end
|
96
|
+
|
97
|
+
def hdel(key, *fields)
|
98
|
+
namespace(key) { |k| super(k, fields) }
|
99
|
+
end
|
100
|
+
|
101
|
+
def hlen(key)
|
102
|
+
namespace(key) { |k| super(k) }
|
103
|
+
end
|
104
|
+
|
93
105
|
def to_s
|
94
106
|
if namespace_str
|
95
107
|
"#{super} with namespace #{namespace_str}"
|
data/lib/redis/store/version.rb
CHANGED
@@ -208,5 +208,20 @@ describe "Redis::Store::Namespace" do
|
|
208
208
|
client.expects(:call).with([:hset, "#{@namespace}:rabbit", "key", @rabbit])
|
209
209
|
store.hset("rabbit", "key", @rabbit)
|
210
210
|
end
|
211
|
+
|
212
|
+
it "should namespace hscan" do
|
213
|
+
client.expects(:call).with([:hscan, "#{@namespace}:rabbit", 0])
|
214
|
+
store.hscan("rabbit", 0)
|
215
|
+
end
|
216
|
+
|
217
|
+
it "should namespace hdel" do
|
218
|
+
client.expects(:call).with([:hdel, "#{@namespace}:rabbit", %w(field)])
|
219
|
+
store.hdel("rabbit", "field")
|
220
|
+
end
|
221
|
+
|
222
|
+
it "should namespace hlen" do
|
223
|
+
client.expects(:call).with([:hlen, "#{@namespace}:rabbit"])
|
224
|
+
store.hlen("rabbit")
|
225
|
+
end
|
211
226
|
end
|
212
227
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|
@@ -232,8 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
232
232
|
- !ruby/object:Gem::Version
|
233
233
|
version: '0'
|
234
234
|
requirements: []
|
235
|
-
|
236
|
-
rubygems_version: 2.6.14
|
235
|
+
rubygems_version: 3.0.3
|
237
236
|
signing_key:
|
238
237
|
specification_version: 4
|
239
238
|
summary: Redis stores for Ruby frameworks
|