zookeeper 1.4.8 → 1.4.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NTM5ZGVmMzE2NGE3NWI1OWI2MWIwMTI1M2QwYmJhNjUzODEzM2MyZg==
5
+ data.tar.gz: !binary |-
6
+ YjA1NTJjN2IxOTQxNDExNTdkMmI0NjY0YjFiMDAzNjI5YzIwNmUyZA==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ Yjg0ZThjYTk1YzcxYWEyMGNmMjQwZDMwODY5MjVlMTU5MWNmMGEyOGE2MDk4
10
+ ZWM5ODljZDY3ODgyNzUyNGNmYjU0NmE2ZWVkNmY5NzA3M2QwMGI0YmVkZTJl
11
+ ZWVkNzc3MWY4YjM4YWRjMGZmY2Q3YTIyZTg2ZGM4MmQwNjgxYTY=
12
+ data.tar.gz: !binary |-
13
+ N2M1MjVkZmMwYzAxYjljOTJiMGU5ODNiZTJjZmVmZjJjNmJmMGE5OGIxYTM5
14
+ MTllZjEzNTRiZGJkMjdiZTFkNTI2MzIwMzg1YmMwZjY4NDBhYzUxYWMyOTU2
15
+ MDJmZTM0MTVhZTM1NTYxNTIwNWQwNWQ5NDYxNTg4MGUzYzBmOTk=
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ v1.4.9
2
+
3
+ * Fix for build on OS-X 10.10 by @e0en
4
+
1
5
  v1.4.8
2
6
 
3
7
  * Fix deadlock related to state checks that can happen during reconnecting
@@ -0,0 +1,102 @@
1
+ diff -ur zkc-3.4.5-orig/c/include/recordio.h zkc-3.4.5/c/include/recordio.h
2
+ --- zkc-3.4.5-orig/c/include/recordio.h 2012-09-30 13:53:32.000000000 -0400
3
+ +++ zkc-3.4.5/c/include/recordio.h 2014-07-29 03:13:27.000000000 -0400
4
+ @@ -73,7 +73,7 @@
5
+ char *get_buffer(struct oarchive *);
6
+ int get_buffer_len(struct oarchive *);
7
+
8
+ -int64_t htonll(int64_t v);
9
+ +int64_t zk_htonll(int64_t v);
10
+
11
+ #ifdef __cplusplus
12
+ }
13
+ diff -ur zkc-3.4.5-orig/c/src/recordio.c zkc-3.4.5/c/src/recordio.c
14
+ --- zkc-3.4.5-orig/c/src/recordio.c 2012-09-30 13:53:32.000000000 -0400
15
+ +++ zkc-3.4.5/c/src/recordio.c 2014-07-29 03:13:35.000000000 -0400
16
+ @@ -80,7 +80,7 @@
17
+ priv->off+=sizeof(i);
18
+ return 0;
19
+ }
20
+ -int64_t htonll(int64_t v)
21
+ +int64_t zk_htonll(int64_t v)
22
+ {
23
+ int i = 0;
24
+ char *s = (char *)&v;
25
+ @@ -98,7 +98,7 @@
26
+
27
+ int oa_serialize_long(struct oarchive *oa, const char *tag, const int64_t *d)
28
+ {
29
+ - const int64_t i = htonll(*d);
30
+ + const int64_t i = zk_htonll(*d);
31
+ struct buff_struct *priv = oa->priv;
32
+ if ((priv->len - priv->off) < sizeof(i)) {
33
+ int rc = resize_buffer(priv, priv->len + sizeof(i));
34
+ @@ -207,7 +207,7 @@
35
+ }
36
+ memcpy(count, priv->buffer+priv->off, sizeof(*count));
37
+ priv->off+=sizeof(*count);
38
+ - v = htonll(*count); // htonll and ntohll do the same
39
+ + v = zk_htonll(*count); // zk_htonll and ntohll do the same
40
+ *count = v;
41
+ return 0;
42
+ }
43
+ diff -ur zkc-3.4.5-orig/c/src/zookeeper.c zkc-3.4.5/c/src/zookeeper.c
44
+ --- zkc-3.4.5-orig/c/src/zookeeper.c 2012-09-30 13:53:32.000000000 -0400
45
+ +++ zkc-3.4.5/c/src/zookeeper.c 2014-07-29 03:13:45.000000000 -0400
46
+ @@ -1408,7 +1408,7 @@
47
+ memcpy(buffer + offset, &req->protocolVersion, sizeof(req->protocolVersion));
48
+ offset = offset + sizeof(req->protocolVersion);
49
+
50
+ - req->lastZxidSeen = htonll(req->lastZxidSeen);
51
+ + req->lastZxidSeen = zk_htonll(req->lastZxidSeen);
52
+ memcpy(buffer + offset, &req->lastZxidSeen, sizeof(req->lastZxidSeen));
53
+ offset = offset + sizeof(req->lastZxidSeen);
54
+
55
+ @@ -1416,7 +1416,7 @@
56
+ memcpy(buffer + offset, &req->timeOut, sizeof(req->timeOut));
57
+ offset = offset + sizeof(req->timeOut);
58
+
59
+ - req->sessionId = htonll(req->sessionId);
60
+ + req->sessionId = zk_htonll(req->sessionId);
61
+ memcpy(buffer + offset, &req->sessionId, sizeof(req->sessionId));
62
+ offset = offset + sizeof(req->sessionId);
63
+
64
+ @@ -1447,7 +1447,7 @@
65
+ memcpy(&req->sessionId, buffer + offset, sizeof(req->sessionId));
66
+ offset = offset + sizeof(req->sessionId);
67
+
68
+ - req->sessionId = htonll(req->sessionId);
69
+ + req->sessionId = zk_htonll(req->sessionId);
70
+ memcpy(&req->passwd_len, buffer + offset, sizeof(req->passwd_len));
71
+ offset = offset + sizeof(req->passwd_len);
72
+
73
+ diff -ur zkc-3.4.5-orig/c/tests/ZKMocks.cc zkc-3.4.5/c/tests/ZKMocks.cc
74
+ --- zkc-3.4.5-orig/c/tests/ZKMocks.cc 2012-09-30 13:53:32.000000000 -0400
75
+ +++ zkc-3.4.5/c/tests/ZKMocks.cc 2014-07-29 03:13:59.000000000 -0400
76
+ @@ -41,7 +41,7 @@
77
+ int offset=sizeof(req->protocolVersion);
78
+
79
+ memcpy(&req->lastZxidSeen,buf.data()+offset,sizeof(req->lastZxidSeen));
80
+ - req->lastZxidSeen = htonll(req->lastZxidSeen);
81
+ + req->lastZxidSeen = zk_htonll(req->lastZxidSeen);
82
+ offset+=sizeof(req->lastZxidSeen);
83
+
84
+ memcpy(&req->timeOut,buf.data()+offset,sizeof(req->timeOut));
85
+ @@ -49,7 +49,7 @@
86
+ offset+=sizeof(req->timeOut);
87
+
88
+ memcpy(&req->sessionId,buf.data()+offset,sizeof(req->sessionId));
89
+ - req->sessionId = htonll(req->sessionId);
90
+ + req->sessionId = zk_htonll(req->sessionId);
91
+ offset+=sizeof(req->sessionId);
92
+
93
+ memcpy(&req->passwd_len,buf.data()+offset,sizeof(req->passwd_len));
94
+ @@ -322,7 +322,7 @@
95
+ buf.append((char*)&tmp,sizeof(tmp));
96
+ tmp=htonl(timeOut);
97
+ buf.append((char*)&tmp,sizeof(tmp));
98
+ - int64_t tmp64=htonll(sessionId);
99
+ + int64_t tmp64=zk_htonll(sessionId);
100
+ buf.append((char*)&tmp64,sizeof(sessionId));
101
+ tmp=htonl(passwd_len);
102
+ buf.append((char*)&tmp,sizeof(tmp));
@@ -1,4 +1,4 @@
1
1
  module Zookeeper
2
- VERSION = '1.4.8'
2
+ VERSION = '1.4.9'
3
3
  DRIVER_VERSION = '3.4.5'
4
4
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zookeeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.8
5
- prerelease:
4
+ version: 1.4.9
6
5
  platform: ruby
7
6
  authors:
8
7
  - Phillip Pearson
@@ -14,7 +13,7 @@ authors:
14
13
  autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
- date: 2014-01-16 00:00:00.000000000 Z
16
+ date: 2014-08-25 00:00:00.000000000 Z
18
17
  dependencies: []
19
18
  description: ! 'A low-level multi-Ruby wrapper around the ZooKeeper API bindings.
20
19
  For a
@@ -62,6 +61,7 @@ files:
62
61
  - ext/generate_gvl_code.rb
63
62
  - ext/patches/zkc-3.3.5-network.patch
64
63
  - ext/patches/zkc-3.4.5-logging.patch
64
+ - ext/patches/zkc-3.4.5-yosemite-htonl-fix.patch
65
65
  - ext/zkc-3.4.5.tar.gz
66
66
  - ext/zkrb.c
67
67
  - ext/zkrb_wrapper.c
@@ -116,28 +116,27 @@ files:
116
116
  - zoomonkey/zoomonkey.rb
117
117
  homepage: https://github.com/slyphon/zookeeper
118
118
  licenses: []
119
+ metadata: {}
119
120
  post_install_message:
120
121
  rdoc_options: []
121
122
  require_paths:
122
123
  - lib
123
124
  - ext
124
125
  required_ruby_version: !ruby/object:Gem::Requirement
125
- none: false
126
126
  requirements:
127
127
  - - ! '>='
128
128
  - !ruby/object:Gem::Version
129
129
  version: '0'
130
130
  required_rubygems_version: !ruby/object:Gem::Requirement
131
- none: false
132
131
  requirements:
133
132
  - - ! '>='
134
133
  - !ruby/object:Gem::Version
135
134
  version: '0'
136
135
  requirements: []
137
136
  rubyforge_project:
138
- rubygems_version: 1.8.25
137
+ rubygems_version: 2.2.2
139
138
  signing_key:
140
- specification_version: 3
139
+ specification_version: 4
141
140
  summary: Apache ZooKeeper driver for Rubies
142
141
  test_files:
143
142
  - spec/c_zookeeper_spec.rb