hiredis-client 0.23.0 → 0.23.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: 44d5aa10a6591293ac181ec3fa1c332909e3c3ac9cf7ca6b02b6ec8679979f2e
4
- data.tar.gz: 8105c8f1f67115e1f53425b0800281ea1cea1e402f212eee3ec71ae9b562b78d
3
+ metadata.gz: 119463fcaf132ff2c8f57dee7ea75253b56f7b1550c61a8d2d533655054459df
4
+ data.tar.gz: 0e0ee26428dbad181242270ffa21bbf6f1f48071737af9d5f47896ad082908bb
5
5
  SHA512:
6
- metadata.gz: 2d972fc4d85e5af707f49c1811f3c7f5d5e971733790ca6d27f73ea81aa601f84193efb1a0f11dc375ad8b6bd336ef1455ec1469078579bcb1a7f8be84373cdf
7
- data.tar.gz: 0f4e87b7fa8175cc7ee291bce633634bb69b6e23b67fa157cd3ad0a1509f44806a6e6c193fb77b1ee562d6bec172398a052f0a522de085222357af590af07d01
6
+ metadata.gz: 394d49dbed0c4479237125656b4e8c75fe6b35189fb3e28279f18cd05873e91a1cea88185834a77065be750d4edc8c0c7f071dd0daae51471f5cbacbfb666362
7
+ data.tar.gz: 9ee93b3a4815bcdf51f07991ffecb3a00c5db4bd699c620f1cf53221975fbde8b33a03c20216be2b07c3a2952176cc356db7d1618c1cc35ee1829e01bbd311af
@@ -321,6 +321,7 @@ typedef struct {
321
321
  struct timeval connect_timeout;
322
322
  struct timeval read_timeout;
323
323
  struct timeval write_timeout;
324
+ hiredis_reader_state_t reader_state;
324
325
  } hiredis_connection_t;
325
326
 
326
327
  static void hiredis_connection_free(void *ptr) {
@@ -720,16 +721,14 @@ static VALUE hiredis_flush(VALUE self) {
720
721
  static int hiredis_read_internal(hiredis_connection_t *connection, VALUE *reply) {
721
722
  void *redis_reply = NULL;
722
723
 
723
- // This struct being on the stack, the GC won't move nor collect that `stack` RArray.
724
+ // This array being on the stack, the GC won't move nor collect it.
724
725
  // We use that to avoid having to have a `mark` function with write barriers.
725
726
  // Not that it would be too hard, but if we mark the response objects, we'll likely end up
726
727
  // promoting them to the old generation which isn't desirable.
727
728
  VALUE stack = rb_ary_new();
728
- hiredis_reader_state_t reader_state = {
729
- .stack = stack,
730
- .task_index = &connection->context->reader->ridx,
731
- };
732
- connection->context->reader->privdata = &reader_state;
729
+ connection->reader_state.stack = stack;
730
+ connection->reader_state.task_index = &connection->context->reader->ridx;
731
+ connection->context->reader->privdata = &connection->reader_state;
733
732
 
734
733
  /* Try to read pending replies */
735
734
  if (redisGetReplyFromReader(connection->context, &redis_reply) == REDIS_ERR) {
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiredis-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.23.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-10 00:00:00.000000000 Z
10
+ date: 2025-01-12 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: redis-client
@@ -16,15 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - '='
18
17
  - !ruby/object:Gem::Version
19
- version: 0.23.0
18
+ version: 0.23.1
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - '='
25
24
  - !ruby/object:Gem::Version
26
- version: 0.23.0
27
- description:
25
+ version: 0.23.1
28
26
  email:
29
27
  - jean.boussier@gmail.com
30
28
  executables: []
@@ -89,7 +87,6 @@ metadata:
89
87
  homepage_uri: https://github.com/redis-rb/redis-client
90
88
  source_code_uri: https://github.com/redis-rb/redis-client
91
89
  changelog_uri: https://github.com/redis-rb/redis-client/blob/master/CHANGELOG.md
92
- post_install_message:
93
90
  rdoc_options: []
94
91
  require_paths:
95
92
  - lib
@@ -104,8 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
101
  - !ruby/object:Gem::Version
105
102
  version: '0'
106
103
  requirements: []
107
- rubygems_version: 3.0.3.1
108
- signing_key:
104
+ rubygems_version: 3.6.2
109
105
  specification_version: 4
110
106
  summary: Hiredis binding for redis-client
111
107
  test_files: []