hiredis-client 0.16.0 → 0.17.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: 61bc01f80337772a560ed39e2ee0ecf4c783f9190dba9d58d8a4a4b9508b2ec6
4
- data.tar.gz: 9ea97d9bf65cf629ca7501534faa2644dd8c8afc2e9d74b973d8d661909cd327
3
+ metadata.gz: c3710622a3a4b7a5baec44aea272b78dfcc65fa8ead5e16a725e6b3eb549cfa8
4
+ data.tar.gz: d137328e429ec69356a581f7c81c378420cbb9020697f1f10211b2f0007ee003
5
5
  SHA512:
6
- metadata.gz: e334396d8518211eda9f1c60151b140cc713049ec32b68b57de0f16977c76693b3a4de7b93c70a56dbb1ef1826717754d0e8ccc92247c7f26f01e853f8093ea0
7
- data.tar.gz: 9e3597f5cde32b9289c5d35554046b4e40bda564656eb94dafe65521e22049baa19decbda89b215343187e054a30372ed7d2c96f9297dbfb285ac9ab10e1fc2b
6
+ metadata.gz: 10a8c888547369c71fafb5d422cf499d03008d9a8f95b01e7dfca3ec4f9739a0a359c1bd08be1ae4563522bfcda4bf08aae416bcb7d36ad70d11dc3024d55394
7
+ data.tar.gz: 10b9ea3f8bce4d52e44d7a6df3dff2b5a71a2b05fc1ad965502108e10f6be39126eb369d4e9ab830aad7486429d9a9a9b2f6cf778b59242df6198357bcb17f82
@@ -762,6 +762,8 @@ static int hiredis_read_internal(hiredis_connection_t *connection, VALUE *reply)
762
762
  *reply = (VALUE)redis_reply;
763
763
  }
764
764
 
765
+ RB_GC_GUARD(reader_state.stack);
766
+
765
767
  return 0;
766
768
  }
767
769
 
@@ -303,6 +303,9 @@ static int processLineItem(redisReader *r) {
303
303
  d = INFINITY; /* Positive infinite. */
304
304
  } else if (strcasecmp(buf,",-inf") == 0) {
305
305
  d = -INFINITY; /* Negative infinite. */
306
+ } else if ((len == 3 && strcasecmp(buf,"nan") == 0) ||
307
+ (len == 4 && strcasecmp(buf, "-nan") == 0)) {
308
+ d = NAN; /* nan. */
306
309
  } else {
307
310
  d = strtod((char*)buf,&eptr);
308
311
  if (buf[0] == '\0' || eptr[0] != '\0' || isnan(d)) {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiredis-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-17 00:00:00.000000000 Z
11
+ date: 2023-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis-client
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.16.0
19
+ version: 0.17.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.16.0
26
+ version: 0.17.1
27
27
  description:
28
28
  email:
29
29
  - jean.boussier@gmail.com
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  - !ruby/object:Gem::Version
106
106
  version: '0'
107
107
  requirements: []
108
- rubygems_version: 3.4.10
108
+ rubygems_version: 3.3.7
109
109
  signing_key:
110
110
  specification_version: 4
111
111
  summary: Hiredis binding for redis-client