hiredis-client 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/redis_client/hiredis/hiredis_connection.c +3 -7
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 286ad27da9361c9baf1a456bef0e050f546ea5abdc17212fe950edde9484a649
|
4
|
+
data.tar.gz: 42521f8e29bc42abae7da9ba1a05dad385d623861708a37ea3b9d4a5d41c5284
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea5cdcfa944ef4df2400038bbfe3d0b6e9ad89cbbc045177af1dcd0fc4d064b689df494d7960a24e819f1f2031a69bc2eee2bd9e609813542a3c357b0acf8ef0
|
7
|
+
data.tar.gz: a4739c389f42ff072b32cec45fa12aa57d078c0a2e03aa79dee099932d6b812202bff7f68dfe20e0d84fa16b7d4fdfec40e86fdb2c4daa0d0323bac2ae7485d2
|
@@ -48,13 +48,13 @@ static inline VALUE rb_hash_new_capa(long capa)
|
|
48
48
|
|
49
49
|
static VALUE rb_eRedisClientCommandError, rb_eRedisClientConnectionError, rb_eRedisClientCannotConnectError, rb_eRedisClientProtocolError;
|
50
50
|
static VALUE rb_eRedisClientReadTimeoutError, rb_eRedisClientWriteTimeoutError;
|
51
|
-
static ID id_parse
|
51
|
+
static ID id_parse;
|
52
52
|
|
53
53
|
typedef struct {
|
54
54
|
redisSSLContext *context;
|
55
55
|
} hiredis_ssl_context_t;
|
56
56
|
|
57
|
-
#define ENSURE_CONNECTED(connection) if (!connection->context) rb_raise(
|
57
|
+
#define ENSURE_CONNECTED(connection) if (!connection->context) rb_raise(rb_eRedisClientConnectionError, "Not connected");
|
58
58
|
|
59
59
|
#define SSL_CONTEXT(from, name) \
|
60
60
|
hiredis_ssl_context_t *name = NULL; \
|
@@ -127,6 +127,7 @@ static void *reply_append(const redisReadTask *task, VALUE value) {
|
|
127
127
|
|
128
128
|
switch (task->parent->type) {
|
129
129
|
case REDIS_REPLY_ARRAY:
|
130
|
+
case REDIS_REPLY_SET:
|
130
131
|
case REDIS_REPLY_PUSH:
|
131
132
|
rb_ary_store(parent, task->idx, value);
|
132
133
|
break;
|
@@ -139,9 +140,6 @@ static void *reply_append(const redisReadTask *task, VALUE value) {
|
|
139
140
|
task->parent->privdata = (void*)value;
|
140
141
|
}
|
141
142
|
break;
|
142
|
-
case REDIS_REPLY_SET:
|
143
|
-
rb_funcall(parent, id_add, 1, value);
|
144
|
-
break;
|
145
143
|
default:
|
146
144
|
rb_bug("[hiredis] Unexpected task parent type %d", task->parent->type);
|
147
145
|
break;
|
@@ -707,8 +705,6 @@ void Init_hiredis_connection(void) {
|
|
707
705
|
redisInitOpenSSL();
|
708
706
|
|
709
707
|
id_parse = rb_intern("parse");
|
710
|
-
id_add = rb_intern("add");
|
711
|
-
id_new = rb_intern("new");
|
712
708
|
|
713
709
|
VALUE rb_cRedisClient = rb_const_get(rb_cObject, rb_intern("RedisClient"));
|
714
710
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hiredis-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean Boussier
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.6.
|
19
|
+
version: 0.6.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.6.
|
26
|
+
version: 0.6.1
|
27
27
|
description:
|
28
28
|
email:
|
29
29
|
- jean.boussier@gmail.com
|