zk 1.9.4 → 1.9.5

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
+ Y2UxZTVhMDZjMGQxOTllZDc3NTQ5ZDliODA0ODkzZTM5MzM2ZGFkZg==
5
+ data.tar.gz: !binary |-
6
+ NjE0NGRmNTNjN2YxNzc2YWE5ZTY0NDE1YTkyODg1YmZjZTI2NjNiMg==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ NWMxODIyZjY4YjM2NDAwODdjZTZlOTZkNjMzNjFkYmM3YmZlYzY3NTFhOWIz
10
+ NzQ5ODJjNjg3NWE4ZDRhYmU4YjhhYjhlNjViMWJjYTVhOGQ1NjhiNjE4OGY5
11
+ MGNhNjdmMGQ3ZDE3NjEzNjM0YTJjM2YwZDEyNmU0ZjBhNzQ5Nzg=
12
+ data.tar.gz: !binary |-
13
+ Njk5ODY2NWM4ZTU1MTJjZmZkZjBjYzg1NWI4OTM4MmMzZWEyNGU2MTkwNGFh
14
+ ZmFjMGEyMTY2MDljZDRlZDY1YjMzMjFkM2E3N2M2YWZkZjFmNjE0YTFkODY2
15
+ NjYxN2JjMTVjYzU3YWI4NjExNjIyYTE5OTY1MjJiMjgyYThhOWM=
data/.gitignore CHANGED
@@ -13,3 +13,4 @@ coverage/
13
13
  .ctags_paths
14
14
  .ruby-gemset
15
15
  .ruby-version
16
+ *~
@@ -16,10 +16,15 @@ rvm:
16
16
  - 1.9.2
17
17
  - 1.8.7
18
18
  - ree
19
+ - 2.0.0
20
+ - 2.1.0
21
+ - 2.2.0
22
+ matrix:
23
+ allow_failures:
24
+ - rvm: 2.2.0
19
25
 
20
26
  # jruby specs are too intesive for travis
21
27
  # - jruby-18mode
22
28
  # - jruby-19mode
23
29
 
24
30
  bundler_args: --without development docs coverage
25
-
@@ -1,5 +1,10 @@
1
1
  This file notes feature differences and bugfixes contained between releases.
2
2
 
3
+ ### v1.9.5 ###
4
+
5
+ * Really clear hooks when clear! is called #83 (h/t: Liam Stewart)
6
+ * implement `add_auth` method to send credentials to zookeeper #86 (h/t: ajf8)
7
+
3
8
  ### v1.9.4 ###
4
9
 
5
10
  * Forward options to underlying connection #69 (h/t: avalanche123)
@@ -870,6 +870,21 @@ module ZK
870
870
  opts[:callback] ? rv : rv[:stat]
871
871
  end
872
872
 
873
+ # Send authentication
874
+ #
875
+ # @param opts [String] :scheme authentication scheme being provided for.
876
+ #
877
+ # @param opts [String] :cert the authentication data.
878
+ #
879
+ # @example send digest authentication
880
+ #
881
+ # zk.add_auth({ :scheme => 'digest', :cert => 'username:password' })
882
+ #
883
+ def add_auth(*args)
884
+ opts = args.extract_options!
885
+ call_and_check_rc(:add_auth, opts )
886
+ end
887
+
873
888
  # @private
874
889
  # @todo need to document this a little more
875
890
  def set_debug_level(level)
@@ -39,7 +39,7 @@ module ZK
39
39
 
40
40
  # @private
41
41
  def clear!
42
- @mutex.synchronize { @hooks.values(&:clear) }
42
+ @mutex.synchronize { @hooks.values.each(&:clear) }
43
43
  end
44
44
 
45
45
  # @private
@@ -1,3 +1,3 @@
1
1
  module ZK
2
- VERSION = "1.9.4"
2
+ VERSION = "1.9.5"
3
3
  end
@@ -9,6 +9,12 @@ shared_examples_for 'ZK basic' do
9
9
  end
10
10
  end
11
11
 
12
+ describe ZK, "with no authentication" do
13
+ it "should add authentication" do
14
+ @zk.add_auth({:scheme => 'digest', :cert => 'bob:password'}).should include({:rc => 0})
15
+ end
16
+ end
17
+
12
18
  describe ZK, "with no paths" do
13
19
  it "should not exist" do
14
20
  @zk.exists?("#{@base_path}/test").should be_false
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.4
5
- prerelease:
4
+ version: 1.9.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jonathan D. Simms
@@ -10,12 +9,11 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2014-03-12 00:00:00.000000000 Z
12
+ date: 2015-01-12 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: zookeeper
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
18
  - - ~>
21
19
  - !ruby/object:Gem::Version
@@ -23,7 +21,6 @@ dependencies:
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
25
  - - ~>
29
26
  - !ruby/object:Gem::Version
@@ -31,7 +28,6 @@ dependencies:
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: logging
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
32
  - - ~>
37
33
  - !ruby/object:Gem::Version
@@ -39,7 +35,6 @@ dependencies:
39
35
  type: :runtime
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
39
  - - ~>
45
40
  - !ruby/object:Gem::Version
@@ -155,33 +150,26 @@ files:
155
150
  - zk.gemspec
156
151
  homepage: https://github.com/slyphon/zk
157
152
  licenses: []
153
+ metadata: {}
158
154
  post_install_message:
159
155
  rdoc_options: []
160
156
  require_paths:
161
157
  - lib
162
158
  required_ruby_version: !ruby/object:Gem::Requirement
163
- none: false
164
159
  requirements:
165
160
  - - ! '>='
166
161
  - !ruby/object:Gem::Version
167
162
  version: '0'
168
- segments:
169
- - 0
170
- hash: 2576608496404103382
171
163
  required_rubygems_version: !ruby/object:Gem::Requirement
172
- none: false
173
164
  requirements:
174
165
  - - ! '>='
175
166
  - !ruby/object:Gem::Version
176
167
  version: '0'
177
- segments:
178
- - 0
179
- hash: 2576608496404103382
180
168
  requirements: []
181
169
  rubyforge_project:
182
- rubygems_version: 1.8.25
170
+ rubygems_version: 2.4.5
183
171
  signing_key:
184
- specification_version: 3
172
+ specification_version: 4
185
173
  summary: A high-level wrapper around the zookeeper driver
186
174
  test_files:
187
175
  - spec/event_catcher_spec.rb
@@ -228,4 +216,3 @@ test_files:
228
216
  - spec/zk/threadpool_spec.rb
229
217
  - spec/zk/watch_spec.rb
230
218
  - spec/zk/zookeeper_spec.rb
231
- has_rdoc: