zookeeper 1.5.1 → 1.5.3

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: 1859e0ff25785785fb0257d9d7be7c11215a79c405287beadfd5f4e2091221cd
4
- data.tar.gz: cb1d9a65beffead45c02175b18f600db656bb4fe48c8e3bf333e2e516c15bbe7
3
+ metadata.gz: b98186b48e9c47529ac6e321dde55dc4a911b46b8ebfbbd9e8889f2808019cfc
4
+ data.tar.gz: '099a5d5a645518f173f06a9d6d340fd48d3117f20bfab11780c87bc0027b7bde'
5
5
  SHA512:
6
- metadata.gz: 42d31d2e89ebd0b3708a4045c322a33f79081f9f5db2b86796dbf41b494fcc7516e28e971975eb7f5c500dea491216a9418e6f7cd5609293afb93bef8dbdb36f
7
- data.tar.gz: 8d3ce742cc7b3ee86688510c2d2b39d6f5aae3bed947421703e2104ceb52d7d78f9dcb460d00e76ade3577a2371f4a6211aa3755cb1a3becde0340fa9366c033
6
+ metadata.gz: b2458ab8902282ae69d7f173aebbd19e0488c3c99896ac99d1ba75bab086af003b967b6ab11ac8adf305a26e21f24a7617ade4f5e5ecdc5f78f14452abff1619
7
+ data.tar.gz: d1fd0124565f9e62b783c7448c24422ebf615b370308e9e46d72930ba431a56b42b171e7dbfdc47ca61530eee421358f8e722bead38dfe7129d5ae47e4077d7c
@@ -17,11 +17,12 @@ jobs:
17
17
  - ubuntu-latest
18
18
  - macos-latest
19
19
  ruby:
20
- - 2.5
21
- - 2.6
22
- - 2.7
23
- - 3.0
24
- - jruby
20
+ - '2.5'
21
+ - '2.6'
22
+ - '2.7'
23
+ - '3.0'
24
+ - '3.1'
25
+ - 'jruby'
25
26
  gcc:
26
27
  - 7
27
28
  - latest
@@ -46,6 +47,7 @@ jobs:
46
47
  with:
47
48
  ruby-version: ${{ matrix.ruby }}
48
49
  bundler-cache: true
50
+ cache-version: 1_${{ matrix.ruby }}_${{ matrix.os }}
49
51
 
50
52
  - name: Run Tests
51
53
  env:
data/.gitmodules CHANGED
@@ -1,3 +1,3 @@
1
1
  [submodule "releaseops"]
2
2
  path = releaseops
3
- url = git://github.com/slyphon/releaseops.git
3
+ url = https://github.com/zk-ruby/releaseops.git
data/CHANGELOG CHANGED
@@ -1,3 +1,10 @@
1
+ v1.5.3
2
+ * Ruby 3.1 compatibility (h/t: @casperisfine)
3
+
4
+ v1.5.2 (YANKED)
5
+ * Ruby 3.1 compatibility and zookeeper client updates.
6
+ * This release had build issues in the wild and was yanked
7
+
1
8
  v1.5.1
2
9
  * Update config.guess to support newer environments (h/t: @malmckay)
3
10
 
data/ext/zkrb.c CHANGED
@@ -203,7 +203,6 @@ inline static int we_are_forked(zkrb_instance_data_t *zk) {
203
203
  return rv;
204
204
  }
205
205
 
206
-
207
206
  static int destroy_zkrb_instance(zkrb_instance_data_t* zk) {
208
207
  int rv = ZOK;
209
208
 
@@ -245,6 +244,11 @@ static void free_zkrb_instance_data(zkrb_instance_data_t* ptr) {
245
244
  destroy_zkrb_instance(ptr);
246
245
  }
247
246
 
247
+ VALUE alloc_zkrb_instance(VALUE klass) {
248
+ zkrb_instance_data_t* zk = ZALLOC_N(zkrb_instance_data_t, 1);
249
+ return Data_Wrap_Struct(klass, NULL, free_zkrb_instance_data, zk);
250
+ }
251
+
248
252
  static void print_zkrb_instance_data(zkrb_instance_data_t* ptr) {
249
253
  fprintf(stderr, "zkrb_instance_data (%p) {\n", ptr);
250
254
  fprintf(stderr, " zh = %p\n", ptr->zh);
@@ -1013,7 +1017,7 @@ static void zkrb_define_methods(void) {
1013
1017
  DEFINE_METHOD(close_handle, 0);
1014
1018
  DEFINE_METHOD(deterministic_conn_order, 1);
1015
1019
  DEFINE_METHOD(is_unrecoverable, 0);
1016
- DEFINE_METHOD(recv_timeout, 1);
1020
+ DEFINE_METHOD(recv_timeout, 0);
1017
1021
  DEFINE_METHOD(zkrb_state, 0);
1018
1022
  DEFINE_METHOD(sync, 2);
1019
1023
  DEFINE_METHOD(zkrb_iterate_event_loop, 0);
@@ -1063,6 +1067,7 @@ void Init_zookeeper_c() {
1063
1067
 
1064
1068
  /* initialize CZookeeper class */
1065
1069
  CZookeeper = rb_define_class_under(mZookeeper, "CZookeeper", rb_cObject);
1070
+ rb_define_alloc_func(CZookeeper, alloc_zkrb_instance);
1066
1071
  zkrb_define_methods();
1067
1072
 
1068
1073
  ZookeeperClientId = rb_define_class_under(CZookeeper, "ClientId", rb_cObject);
@@ -1,4 +1,4 @@
1
1
  module Zookeeper
2
- VERSION = '1.5.1'
2
+ VERSION = '1.5.3'
3
3
  DRIVER_VERSION = '3.4.5'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zookeeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phillip Pearson
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2021-11-16 00:00:00.000000000 Z
17
+ date: 2022-07-18 00:00:00.000000000 Z
18
18
  dependencies: []
19
19
  description: |+
20
20
  A low-level multi-Ruby wrapper around the ZooKeeper API bindings. For a
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  - !ruby/object:Gem::Version
134
134
  version: '0'
135
135
  requirements: []
136
- rubygems_version: 3.1.6
136
+ rubygems_version: 3.2.3
137
137
  signing_key:
138
138
  specification_version: 4
139
139
  summary: Apache ZooKeeper driver for Rubies