redis-client 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/lib/redis_client/version.rb +1 -1
- data/lib/redis_client.rb +8 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b23930fc431afe23313aca3ef90ba49f219a6ed1a50f8153075a09b4c43678c0
|
4
|
+
data.tar.gz: 502388c79068a1dfe166543a6eb91cead665f42e404f679a598f5a8e2844ee82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f6d4422b8c3e6608a5a8c53a55335ad0c44c034bc2cf26c7b5aace8dfdbe799409dd9783bd5928da3453d60ed28579594676f95c951a6a4dfff5e04dd09d28d
|
7
|
+
data.tar.gz: 3ee257ab6d509606c959079a16886389d76bfe232876aba9de1ae8922031746ad2576224fc5b0fae44a09ef13ba4d14ea862098860f923f432f63454499c1677
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Unreleased
|
2
2
|
|
3
|
+
# 0.5.1
|
4
|
+
|
5
|
+
- Fix a regression in the `scan` familly of methods, they would raise with `ArgumentError: can't issue an empty redis command`. Fix: #24
|
6
|
+
|
7
|
+
# 0.5.0
|
8
|
+
|
3
9
|
- Fix handling of connection URLs with empty passwords (`redis://:pass@example.com`).
|
4
10
|
- Handle URLs with IPv6 hosts.
|
5
11
|
- Add `RedisClient::Config#server_url` as a quick way to identify which server the client is pointing to.
|
data/Gemfile.lock
CHANGED
data/lib/redis_client/version.rb
CHANGED
data/lib/redis_client.rb
CHANGED
@@ -233,8 +233,8 @@ class RedisClient
|
|
233
233
|
return to_enum(__callee__, *args, **kwargs)
|
234
234
|
end
|
235
235
|
|
236
|
-
args = @command_builder.generate!(args, kwargs)
|
237
|
-
scan_list(1,
|
236
|
+
args = @command_builder.generate!(["SCAN", 0] + args, kwargs)
|
237
|
+
scan_list(1, args, &block)
|
238
238
|
end
|
239
239
|
|
240
240
|
def sscan(key, *args, **kwargs, &block)
|
@@ -242,8 +242,8 @@ class RedisClient
|
|
242
242
|
return to_enum(__callee__, key, *args, **kwargs)
|
243
243
|
end
|
244
244
|
|
245
|
-
args = @command_builder.generate!(args, kwargs)
|
246
|
-
scan_list(2,
|
245
|
+
args = @command_builder.generate!(["SSCAN", key, 0] + args, kwargs)
|
246
|
+
scan_list(2, args, &block)
|
247
247
|
end
|
248
248
|
|
249
249
|
def hscan(key, *args, **kwargs, &block)
|
@@ -251,8 +251,8 @@ class RedisClient
|
|
251
251
|
return to_enum(__callee__, key, *args, **kwargs)
|
252
252
|
end
|
253
253
|
|
254
|
-
args = @command_builder.generate!(args, kwargs)
|
255
|
-
scan_pairs(2,
|
254
|
+
args = @command_builder.generate!(["HSCAN", key, 0] + args, kwargs)
|
255
|
+
scan_pairs(2, args, &block)
|
256
256
|
end
|
257
257
|
|
258
258
|
def zscan(key, *args, **kwargs, &block)
|
@@ -260,8 +260,8 @@ class RedisClient
|
|
260
260
|
return to_enum(__callee__, key, *args, **kwargs)
|
261
261
|
end
|
262
262
|
|
263
|
-
args = @command_builder.generate!(args, kwargs)
|
264
|
-
scan_pairs(2,
|
263
|
+
args = @command_builder.generate!(["ZSCAN", key, 0] + args, kwargs)
|
264
|
+
scan_pairs(2, args, &block)
|
265
265
|
end
|
266
266
|
|
267
267
|
def connected?
|