distlock 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Distlock
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -19,9 +19,8 @@ module Distlock
19
19
 
20
20
  # does a node exist for the given path?
21
21
  def exists?(path)
22
- puts "checking if #{path} exists"
23
22
  result = zk.stat(:path => path)[:stat].exists
24
- puts result
23
+ logger.debug "checking if #{path} exists - #{result}"
25
24
  result
26
25
  end
27
26
 
@@ -49,9 +48,9 @@ module Distlock
49
48
 
50
49
  def create_sequenced_ephemeral(path, prefix="lock")
51
50
  lock_path = [path, "#{prefix}-#{zk.client_id}-"].join("/")
52
- puts lock_path
51
+ logger.debug lock_path
53
52
  result = zk.create(:path => lock_path, :sequence => true, :ephemeral => true)
54
- puts result
53
+ logger.debug result
55
54
  result[:path]
56
55
  end
57
56
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: distlock
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Simon Horne