hiredis-client 0.17.0 → 0.18.0

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: 75375fb66a9a9bc66b60fcb3c6e3a4236c4906b766d6b94cc493bf6eb052ecf8
4
+ data.tar.gz: d691dd864136a1b9dc6973272f58e6d505437ac2949404888b317e66979fd77a
5
5
  SHA512:
6
- metadata.gz: 1770093cc22605990b73fecda7bbb6bacac109a2cc340d7cbd42b9c10efae98b726ac62162601ea9aa456ac1beb705dafdf00f94d5f5259ae4a9cf7e329555ca
7
- data.tar.gz: cefe26240fde162df9a530178f89dce344e106d55057647a42c3accaaac7d8e028e0a52ac112bbdfcaeba221d6c31e7a5a73fef5d913fb9baf93f08fc128350f
6
+ metadata.gz: 7e02442df806f1650ebaf94e75b3e98115387351923802ae13d23f7a2b3e1430cf6fe77a930c64962ddf04c8ce9d914d2ab0d1b01005e10ef0de95d4ddeeb392
7
+ data.tar.gz: 2857d4e50cf39ed14dd18f4ce25219056479db8e0f140ce995811e49d24c1021f30dcd5411ef9dd0f52b79ee06a9f8e0f59c204bb1447fb08e1cab85ff9134f1
@@ -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.18.0
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-26 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.18.0
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.18.0
27
27
  description:
28
28
  email:
29
29
  - jean.boussier@gmail.com