hiredis-client 0.17.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: 5f00ae853d9b2f85a0031597d6fefbeb1cd6eab72b38df20fd37a4810fcba84f
4
- data.tar.gz: b55245f4e437e6cc807d41d900fb9752e3b57f45378d6f349c62ad67e0cbf6e9
3
+ metadata.gz: c3710622a3a4b7a5baec44aea272b78dfcc65fa8ead5e16a725e6b3eb549cfa8
4
+ data.tar.gz: d137328e429ec69356a581f7c81c378420cbb9020697f1f10211b2f0007ee003
5
5
  SHA512:
6
- metadata.gz: 1770093cc22605990b73fecda7bbb6bacac109a2cc340d7cbd42b9c10efae98b726ac62162601ea9aa456ac1beb705dafdf00f94d5f5259ae4a9cf7e329555ca
7
- data.tar.gz: cefe26240fde162df9a530178f89dce344e106d55057647a42c3accaaac7d8e028e0a52ac112bbdfcaeba221d6c31e7a5a73fef5d913fb9baf93f08fc128350f
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.17.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-09-06 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.17.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.17.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