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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba60e75acf78441a3ee79cc33c7dd02be25481a229e6c3a697f6595864da50f5
4
- data.tar.gz: 8e850b60219abce73e320a42b610fadfec522ab0f926c429a98f6c51dcfd862f
3
+ metadata.gz: 286ad27da9361c9baf1a456bef0e050f546ea5abdc17212fe950edde9484a649
4
+ data.tar.gz: 42521f8e29bc42abae7da9ba1a05dad385d623861708a37ea3b9d4a5d41c5284
5
5
  SHA512:
6
- metadata.gz: 86f117da17118c442f127d11eec64d9dea91fb3da1070a111e2be1611815056e4443bcc2904d8e709bd3a4095e1704f9c32a47fb6a09688670c9f4d9221f4635
7
- data.tar.gz: fa1896db0cf13d0d33ad812659f381968de920e1516fc05aa1467e1c302fd958b3fbfa9919171f6bdaff63a44e8d21c13de9fb8efd1b56524d6f84d1961d865a
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, id_add, id_new;
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(rb_eRuntimeError, "[BUG] not connected");
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.0
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.0
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.0
26
+ version: 0.6.1
27
27
  description:
28
28
  email:
29
29
  - jean.boussier@gmail.com