nerve 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.travis.yml +5 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/nerve/reporter/zookeeper.rb +2 -1
- data/lib/nerve/version.rb +1 -1
- data/spec/lib/nerve/reporter_zookeeper_spec.rb +1 -0
- metadata +22 -22
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
NzJkZTAwMmIyOTQ0MDEyMGFiYTZlOTJjMGM3YTUwMmJmYTVmYjNmNg==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 962341174db1f1f41330bbc60c97265b092d3faa
|
4
|
+
data.tar.gz: 31676e88def741d3906aa9202f66adbb9ee7d49f
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
NTA4MzQxNDUzZGE1MWIyODc3Y2MyOGQyYzgzZTE2ZGNjNGQ3MmExZDVmMTU0
|
11
|
-
ZmFjZTc1NzBjYjA2OWEyMjgwMDIxN2FiMTFjOWE0YThiYzFlYzc=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
YTYyYzE3NDVmOTk4NGQzYTQ5MThlZWExOTdjNDY0OGMyMjU1MjhhYWRjNWE1
|
14
|
-
ZGZlOTgzNjcxZWUyYTIwNjVhMzNjNzY4NTg2ZTFjYzc0NzM1NDliOGIzNmEx
|
15
|
-
ZTY0MTkzZGE4NmNmMjdiYTRiN2RlMDQ4NDJhYWQ4OWNjYWNjZGI=
|
6
|
+
metadata.gz: 3598fa103bf4a46b6135a32c9e6fa65b69e60d102407543d06e8f096b0b9821a1d018fdf6c5983dd6b15b9c42c0e307b4d995279f9623c38cff4d57a5c94ae9f
|
7
|
+
data.tar.gz: 46363433c3f4f25d1cd7c513eac47a9335e50df3dd2fcb483f5b10550aaf7847908dcfd588851216d1dd01a1f079b3739c2768654d5f4ad0bfbaa35a4589f400
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -59,7 +59,7 @@ Each service that nerve will be monitoring is specified in the `services` hash.
|
|
59
59
|
The key is the name of the service, and the value is a configuration hash telling nerve how to monitor the service.
|
60
60
|
The configuration contains the following options:
|
61
61
|
|
62
|
-
* `host`: the default host on which to make service checks; you should make this your *public* ip to ensure your service is
|
62
|
+
* `host`: the default host on which to make service checks; you should make this your *public* ip to ensure your service is publicly accessible
|
63
63
|
* `port`: the default port for service checks; nerve will report the `host`:`port` combo via your chosen reporter
|
64
64
|
* `reporter_type`: the mechanism used to report up/down information; depending on the reporter you choose, additional parameters may be required. Defaults to `zookeeper`
|
65
65
|
* `check_interval`: the frequency with which service checks will be initiated; defaults to `500ms`
|
@@ -83,7 +83,8 @@ class Nerve::Reporter
|
|
83
83
|
end
|
84
84
|
|
85
85
|
def zk_create
|
86
|
-
|
86
|
+
# only mkdir_p if the path does not exist
|
87
|
+
@zk.mkdir_p(@zk_path) unless @zk.exists?(@zk_path)
|
87
88
|
@full_key = @zk.create(@key_prefix, :data => @data, :mode => :ephemeral_sequential)
|
88
89
|
end
|
89
90
|
|
data/lib/nerve/version.rb
CHANGED
@@ -17,6 +17,7 @@ describe Nerve::Reporter::Zookeeper do
|
|
17
17
|
it 'deregisters service on exit' do
|
18
18
|
zk = double("zk")
|
19
19
|
allow(zk).to receive(:close!)
|
20
|
+
expect(zk).to receive(:exists?) { "zk_path" }.and_return(false)
|
20
21
|
expect(zk).to receive(:mkdir_p) { "zk_path" }
|
21
22
|
expect(zk).to receive(:create) { "full_path" }
|
22
23
|
expect(zk).to receive(:delete).with("full_path", anything())
|
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.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Rhoads
|
@@ -11,34 +11,34 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2017-09-04 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: json
|
18
18
|
requirement: !ruby/object:Gem::Requirement
|
19
19
|
requirements:
|
20
|
-
- -
|
20
|
+
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '0'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: zk
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
requirements:
|
34
|
-
- - ~>
|
34
|
+
- - "~>"
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: 1.9.2
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- - ~>
|
41
|
+
- - "~>"
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: 1.9.2
|
44
44
|
- !ruby/object:Gem::Dependency
|
@@ -59,70 +59,70 @@ dependencies:
|
|
59
59
|
name: etcd
|
60
60
|
requirement: !ruby/object:Gem::Requirement
|
61
61
|
requirements:
|
62
|
-
- - ~>
|
62
|
+
- - "~>"
|
63
63
|
- !ruby/object:Gem::Version
|
64
64
|
version: 0.2.3
|
65
65
|
type: :runtime
|
66
66
|
prerelease: false
|
67
67
|
version_requirements: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
|
-
- - ~>
|
69
|
+
- - "~>"
|
70
70
|
- !ruby/object:Gem::Version
|
71
71
|
version: 0.2.3
|
72
72
|
- !ruby/object:Gem::Dependency
|
73
73
|
name: rake
|
74
74
|
requirement: !ruby/object:Gem::Requirement
|
75
75
|
requirements:
|
76
|
-
- -
|
76
|
+
- - ">="
|
77
77
|
- !ruby/object:Gem::Version
|
78
78
|
version: '0'
|
79
79
|
type: :development
|
80
80
|
prerelease: false
|
81
81
|
version_requirements: !ruby/object:Gem::Requirement
|
82
82
|
requirements:
|
83
|
-
- -
|
83
|
+
- - ">="
|
84
84
|
- !ruby/object:Gem::Version
|
85
85
|
version: '0'
|
86
86
|
- !ruby/object:Gem::Dependency
|
87
87
|
name: rspec
|
88
88
|
requirement: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
|
-
- - ~>
|
90
|
+
- - "~>"
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: 3.1.0
|
93
93
|
type: :development
|
94
94
|
prerelease: false
|
95
95
|
version_requirements: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
|
-
- - ~>
|
97
|
+
- - "~>"
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
version: 3.1.0
|
100
100
|
- !ruby/object:Gem::Dependency
|
101
101
|
name: factory_girl
|
102
102
|
requirement: !ruby/object:Gem::Requirement
|
103
103
|
requirements:
|
104
|
-
- -
|
104
|
+
- - ">="
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: '0'
|
107
107
|
type: :development
|
108
108
|
prerelease: false
|
109
109
|
version_requirements: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
|
-
- -
|
111
|
+
- - ">="
|
112
112
|
- !ruby/object:Gem::Version
|
113
113
|
version: '0'
|
114
114
|
- !ruby/object:Gem::Dependency
|
115
115
|
name: pry
|
116
116
|
requirement: !ruby/object:Gem::Requirement
|
117
117
|
requirements:
|
118
|
-
- -
|
118
|
+
- - ">="
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: '0'
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
123
|
version_requirements: !ruby/object:Gem::Requirement
|
124
124
|
requirements:
|
125
|
-
- -
|
125
|
+
- - ">="
|
126
126
|
- !ruby/object:Gem::Version
|
127
127
|
version: '0'
|
128
128
|
description: Nerve is a service registration daemon. It performs health checks on
|
@@ -138,10 +138,10 @@ executables:
|
|
138
138
|
extensions: []
|
139
139
|
extra_rdoc_files: []
|
140
140
|
files:
|
141
|
-
- .gitignore
|
142
|
-
- .mailmap
|
143
|
-
- .nerve.rc
|
144
|
-
- .travis.yml
|
141
|
+
- ".gitignore"
|
142
|
+
- ".mailmap"
|
143
|
+
- ".nerve.rc"
|
144
|
+
- ".travis.yml"
|
145
145
|
- CONTRIBUTING.md
|
146
146
|
- Gemfile
|
147
147
|
- Gemfile.lock
|
@@ -189,12 +189,12 @@ require_paths:
|
|
189
189
|
- lib
|
190
190
|
required_ruby_version: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- -
|
192
|
+
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
195
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
196
196
|
requirements:
|
197
|
-
- -
|
197
|
+
- - ">="
|
198
198
|
- !ruby/object:Gem::Version
|
199
199
|
version: '0'
|
200
200
|
requirements: []
|