nerve 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/nerve/reporter/zookeeper.rb +2 -2
- data/lib/nerve/version.rb +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
@@ -3,11 +3,11 @@ require 'zk'
|
|
3
3
|
|
4
4
|
class Nerve::Reporter
|
5
5
|
class Zookeeper < Base
|
6
|
-
def
|
6
|
+
def initialize(service)
|
7
7
|
%w{zk_hosts zk_path instance_id host port}.each do |required|
|
8
8
|
raise ArgumentError, "missing required argument #{required} for new service watcher" unless service[required]
|
9
9
|
end
|
10
|
-
@path = service['zk_hosts'].shuffle.join(',') +
|
10
|
+
@path = service['zk_hosts'].shuffle.join(',') + service['zk_path']
|
11
11
|
@data = parse_data({'host' => service['host'], 'port' => service['port'], 'name' => service['instance_id']})
|
12
12
|
|
13
13
|
@key = "/#{service['instance_id']}_"
|
data/lib/nerve/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nerve
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2014-03-
|
14
|
+
date: 2014-03-05 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: zk
|