pylon 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/lib/pylon.rb +1 -1
  2. data/lib/pylon/elector.rb +4 -4
  3. data/pylon.gemspec +19 -1
  4. metadata +116 -50
data/lib/pylon.rb CHANGED
@@ -15,5 +15,5 @@
15
15
  # limitations under the License.
16
16
 
17
17
  class Pylon
18
- VERSION = "0.2.4"
18
+ VERSION = "0.2.5"
19
19
  end
data/lib/pylon/elector.rb CHANGED
@@ -193,12 +193,12 @@ class Pylon
193
193
  end
194
194
  end
195
195
  elsif nodes.length < Pylon::Config[:minimum_master_nodes]
196
- if nodes.include? node
197
- Log.info "handle_announce: skipping node #{node}, already known"
196
+ if nodes.include? new_node
197
+ Log.info "handle_announce: skipping node #{new_node}, already known"
198
198
  Log.debug "handle_announce: nodes: #{nodes}"
199
199
  else
200
- Log.info "handle_announce: connecting to #{node} on endpoint: #{node.unicast_endpoint}"
201
- connect_node node
200
+ Log.info "handle_announce: connecting to #{new_node} on endpoint: #{new_node.unicast_endpoint}"
201
+ connect_node new_node
202
202
  end
203
203
  end
204
204
  end
data/pylon.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pylon}
8
- s.version = "0.2.4"
8
+ s.version = "0.2.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["AJ Christensen"]
@@ -63,6 +63,12 @@ Gem::Specification.new do |s|
63
63
  s.add_development_dependency(%q<rcov>, [">= 0"])
64
64
  s.add_development_dependency(%q<vagrant>, [">= 0"])
65
65
  s.add_development_dependency(%q<virtualbox>, [">= 0"])
66
+ s.add_development_dependency(%q<minitest>, ["~> 2.6.0"])
67
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
68
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
69
+ s.add_development_dependency(%q<rcov>, [">= 0"])
70
+ s.add_development_dependency(%q<vagrant>, [">= 0"])
71
+ s.add_development_dependency(%q<virtualbox>, [">= 0"])
66
72
  s.add_runtime_dependency(%q<ffi-rzmq>, ["~> 0.8.2"])
67
73
  s.add_runtime_dependency(%q<mixlib-log>, [">= 0"])
68
74
  s.add_runtime_dependency(%q<mixlib-cli>, [">= 0"])
@@ -88,6 +94,12 @@ Gem::Specification.new do |s|
88
94
  s.add_dependency(%q<rcov>, [">= 0"])
89
95
  s.add_dependency(%q<vagrant>, [">= 0"])
90
96
  s.add_dependency(%q<virtualbox>, [">= 0"])
97
+ s.add_dependency(%q<minitest>, ["~> 2.6.0"])
98
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
99
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
100
+ s.add_dependency(%q<rcov>, [">= 0"])
101
+ s.add_dependency(%q<vagrant>, [">= 0"])
102
+ s.add_dependency(%q<virtualbox>, [">= 0"])
91
103
  s.add_dependency(%q<ffi-rzmq>, ["~> 0.8.2"])
92
104
  s.add_dependency(%q<mixlib-log>, [">= 0"])
93
105
  s.add_dependency(%q<mixlib-cli>, [">= 0"])
@@ -114,6 +126,12 @@ Gem::Specification.new do |s|
114
126
  s.add_dependency(%q<rcov>, [">= 0"])
115
127
  s.add_dependency(%q<vagrant>, [">= 0"])
116
128
  s.add_dependency(%q<virtualbox>, [">= 0"])
129
+ s.add_dependency(%q<minitest>, ["~> 2.6.0"])
130
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
131
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
132
+ s.add_dependency(%q<rcov>, [">= 0"])
133
+ s.add_dependency(%q<vagrant>, [">= 0"])
134
+ s.add_dependency(%q<virtualbox>, [">= 0"])
117
135
  s.add_dependency(%q<ffi-rzmq>, ["~> 0.8.2"])
118
136
  s.add_dependency(%q<mixlib-log>, [">= 0"])
119
137
  s.add_dependency(%q<mixlib-cli>, [">= 0"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pylon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ default_executable: pylon
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: pylon
17
- requirement: &2164845100 !ruby/object:Gem::Requirement
17
+ requirement: &2160976080 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2164845100
25
+ version_requirements: *2160976080
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: bundler
28
- requirement: &2164844460 !ruby/object:Gem::Requirement
28
+ requirement: &2160975300 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 1.0.0
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *2164844460
36
+ version_requirements: *2160975300
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: jeweler
39
- requirement: &2164843760 !ruby/object:Gem::Requirement
39
+ requirement: &2160974720 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 1.6.4
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *2164843760
47
+ version_requirements: *2160974720
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rcov
50
- requirement: &2164842960 !ruby/object:Gem::Requirement
50
+ requirement: &2160973580 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *2164842960
58
+ version_requirements: *2160973580
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: vagrant
61
- requirement: &2164842240 !ruby/object:Gem::Requirement
61
+ requirement: &2160972680 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: '0'
67
67
  type: :development
68
68
  prerelease: false
69
- version_requirements: *2164842240
69
+ version_requirements: *2160972680
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: virtualbox
72
- requirement: &2164841320 !ruby/object:Gem::Requirement
72
+ requirement: &2160972040 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ! '>='
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: '0'
78
78
  type: :development
79
79
  prerelease: false
80
- version_requirements: *2164841320
80
+ version_requirements: *2160972040
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: minitest
83
- requirement: &2164840600 !ruby/object:Gem::Requirement
83
+ requirement: &2160970460 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ~>
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: 2.6.0
89
89
  type: :development
90
90
  prerelease: false
91
- version_requirements: *2164840600
91
+ version_requirements: *2160970460
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: bundler
94
- requirement: &2164839900 !ruby/object:Gem::Requirement
94
+ requirement: &2160956640 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ~>
@@ -99,10 +99,10 @@ dependencies:
99
99
  version: 1.0.0
100
100
  type: :development
101
101
  prerelease: false
102
- version_requirements: *2164839900
102
+ version_requirements: *2160956640
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: jeweler
105
- requirement: &2164838940 !ruby/object:Gem::Requirement
105
+ requirement: &2160956040 !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
108
  - - ~>
@@ -110,10 +110,10 @@ dependencies:
110
110
  version: 1.6.4
111
111
  type: :development
112
112
  prerelease: false
113
- version_requirements: *2164838940
113
+ version_requirements: *2160956040
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: rcov
116
- requirement: &2164821880 !ruby/object:Gem::Requirement
116
+ requirement: &2160955280 !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
119
119
  - - ! '>='
@@ -121,10 +121,10 @@ dependencies:
121
121
  version: '0'
122
122
  type: :development
123
123
  prerelease: false
124
- version_requirements: *2164821880
124
+ version_requirements: *2160955280
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: vagrant
127
- requirement: &2164815720 !ruby/object:Gem::Requirement
127
+ requirement: &2160954240 !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements:
130
130
  - - ! '>='
@@ -132,10 +132,10 @@ dependencies:
132
132
  version: '0'
133
133
  type: :development
134
134
  prerelease: false
135
- version_requirements: *2164815720
135
+ version_requirements: *2160954240
136
136
  - !ruby/object:Gem::Dependency
137
137
  name: virtualbox
138
- requirement: &2164814740 !ruby/object:Gem::Requirement
138
+ requirement: &2160943920 !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements:
141
141
  - - ! '>='
@@ -143,10 +143,76 @@ dependencies:
143
143
  version: '0'
144
144
  type: :development
145
145
  prerelease: false
146
- version_requirements: *2164814740
146
+ version_requirements: *2160943920
147
+ - !ruby/object:Gem::Dependency
148
+ name: minitest
149
+ requirement: &2160942220 !ruby/object:Gem::Requirement
150
+ none: false
151
+ requirements:
152
+ - - ~>
153
+ - !ruby/object:Gem::Version
154
+ version: 2.6.0
155
+ type: :development
156
+ prerelease: false
157
+ version_requirements: *2160942220
158
+ - !ruby/object:Gem::Dependency
159
+ name: bundler
160
+ requirement: &2160927540 !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ~>
164
+ - !ruby/object:Gem::Version
165
+ version: 1.0.0
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: *2160927540
169
+ - !ruby/object:Gem::Dependency
170
+ name: jeweler
171
+ requirement: &2160925380 !ruby/object:Gem::Requirement
172
+ none: false
173
+ requirements:
174
+ - - ~>
175
+ - !ruby/object:Gem::Version
176
+ version: 1.6.4
177
+ type: :development
178
+ prerelease: false
179
+ version_requirements: *2160925380
180
+ - !ruby/object:Gem::Dependency
181
+ name: rcov
182
+ requirement: &2160923160 !ruby/object:Gem::Requirement
183
+ none: false
184
+ requirements:
185
+ - - ! '>='
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: *2160923160
191
+ - !ruby/object:Gem::Dependency
192
+ name: vagrant
193
+ requirement: &2160920440 !ruby/object:Gem::Requirement
194
+ none: false
195
+ requirements:
196
+ - - ! '>='
197
+ - !ruby/object:Gem::Version
198
+ version: '0'
199
+ type: :development
200
+ prerelease: false
201
+ version_requirements: *2160920440
202
+ - !ruby/object:Gem::Dependency
203
+ name: virtualbox
204
+ requirement: &2160918340 !ruby/object:Gem::Requirement
205
+ none: false
206
+ requirements:
207
+ - - ! '>='
208
+ - !ruby/object:Gem::Version
209
+ version: '0'
210
+ type: :development
211
+ prerelease: false
212
+ version_requirements: *2160918340
147
213
  - !ruby/object:Gem::Dependency
148
214
  name: ffi-rzmq
149
- requirement: &2164780680 !ruby/object:Gem::Requirement
215
+ requirement: &2160916400 !ruby/object:Gem::Requirement
150
216
  none: false
151
217
  requirements:
152
218
  - - ~>
@@ -154,10 +220,10 @@ dependencies:
154
220
  version: 0.8.2
155
221
  type: :runtime
156
222
  prerelease: false
157
- version_requirements: *2164780680
223
+ version_requirements: *2160916400
158
224
  - !ruby/object:Gem::Dependency
159
225
  name: mixlib-log
160
- requirement: &2164778900 !ruby/object:Gem::Requirement
226
+ requirement: &2160915020 !ruby/object:Gem::Requirement
161
227
  none: false
162
228
  requirements:
163
229
  - - ! '>='
@@ -165,10 +231,10 @@ dependencies:
165
231
  version: '0'
166
232
  type: :runtime
167
233
  prerelease: false
168
- version_requirements: *2164778900
234
+ version_requirements: *2160915020
169
235
  - !ruby/object:Gem::Dependency
170
236
  name: mixlib-cli
171
- requirement: &2164777260 !ruby/object:Gem::Requirement
237
+ requirement: &2160913480 !ruby/object:Gem::Requirement
172
238
  none: false
173
239
  requirements:
174
240
  - - ! '>='
@@ -176,10 +242,10 @@ dependencies:
176
242
  version: '0'
177
243
  type: :runtime
178
244
  prerelease: false
179
- version_requirements: *2164777260
245
+ version_requirements: *2160913480
180
246
  - !ruby/object:Gem::Dependency
181
247
  name: mixlib-config
182
- requirement: &2164774260 !ruby/object:Gem::Requirement
248
+ requirement: &2160911500 !ruby/object:Gem::Requirement
183
249
  none: false
184
250
  requirements:
185
251
  - - ! '>='
@@ -187,10 +253,10 @@ dependencies:
187
253
  version: '0'
188
254
  type: :runtime
189
255
  prerelease: false
190
- version_requirements: *2164774260
256
+ version_requirements: *2160911500
191
257
  - !ruby/object:Gem::Dependency
192
258
  name: uuidtools
193
- requirement: &2164766600 !ruby/object:Gem::Requirement
259
+ requirement: &2160909920 !ruby/object:Gem::Requirement
194
260
  none: false
195
261
  requirements:
196
262
  - - ~>
@@ -198,10 +264,10 @@ dependencies:
198
264
  version: 2.1.2
199
265
  type: :runtime
200
266
  prerelease: false
201
- version_requirements: *2164766600
267
+ version_requirements: *2160909920
202
268
  - !ruby/object:Gem::Dependency
203
269
  name: json
204
- requirement: &2164765880 !ruby/object:Gem::Requirement
270
+ requirement: &2160908120 !ruby/object:Gem::Requirement
205
271
  none: false
206
272
  requirements:
207
273
  - - ! '>='
@@ -209,10 +275,10 @@ dependencies:
209
275
  version: '0'
210
276
  type: :runtime
211
277
  prerelease: false
212
- version_requirements: *2164765880
278
+ version_requirements: *2160908120
213
279
  - !ruby/object:Gem::Dependency
214
280
  name: minitest
215
- requirement: &2164763500 !ruby/object:Gem::Requirement
281
+ requirement: &2160906300 !ruby/object:Gem::Requirement
216
282
  none: false
217
283
  requirements:
218
284
  - - ~>
@@ -220,10 +286,10 @@ dependencies:
220
286
  version: 2.6.0
221
287
  type: :development
222
288
  prerelease: false
223
- version_requirements: *2164763500
289
+ version_requirements: *2160906300
224
290
  - !ruby/object:Gem::Dependency
225
291
  name: bundler
226
- requirement: &2164762020 !ruby/object:Gem::Requirement
292
+ requirement: &2160905180 !ruby/object:Gem::Requirement
227
293
  none: false
228
294
  requirements:
229
295
  - - ~>
@@ -231,10 +297,10 @@ dependencies:
231
297
  version: 1.0.0
232
298
  type: :development
233
299
  prerelease: false
234
- version_requirements: *2164762020
300
+ version_requirements: *2160905180
235
301
  - !ruby/object:Gem::Dependency
236
302
  name: jeweler
237
- requirement: &2164758080 !ruby/object:Gem::Requirement
303
+ requirement: &2160904200 !ruby/object:Gem::Requirement
238
304
  none: false
239
305
  requirements:
240
306
  - - ~>
@@ -242,10 +308,10 @@ dependencies:
242
308
  version: 1.6.4
243
309
  type: :development
244
310
  prerelease: false
245
- version_requirements: *2164758080
311
+ version_requirements: *2160904200
246
312
  - !ruby/object:Gem::Dependency
247
313
  name: rcov
248
- requirement: &2164755600 !ruby/object:Gem::Requirement
314
+ requirement: &2160897040 !ruby/object:Gem::Requirement
249
315
  none: false
250
316
  requirements:
251
317
  - - ! '>='
@@ -253,10 +319,10 @@ dependencies:
253
319
  version: '0'
254
320
  type: :development
255
321
  prerelease: false
256
- version_requirements: *2164755600
322
+ version_requirements: *2160897040
257
323
  - !ruby/object:Gem::Dependency
258
324
  name: vagrant
259
- requirement: &2164754040 !ruby/object:Gem::Requirement
325
+ requirement: &2160895980 !ruby/object:Gem::Requirement
260
326
  none: false
261
327
  requirements:
262
328
  - - ! '>='
@@ -264,10 +330,10 @@ dependencies:
264
330
  version: '0'
265
331
  type: :development
266
332
  prerelease: false
267
- version_requirements: *2164754040
333
+ version_requirements: *2160895980
268
334
  - !ruby/object:Gem::Dependency
269
335
  name: virtualbox
270
- requirement: &2164752820 !ruby/object:Gem::Requirement
336
+ requirement: &2160895360 !ruby/object:Gem::Requirement
271
337
  none: false
272
338
  requirements:
273
339
  - - ! '>='
@@ -275,7 +341,7 @@ dependencies:
275
341
  version: '0'
276
342
  type: :development
277
343
  prerelease: false
278
- version_requirements: *2164752820
344
+ version_requirements: *2160895360
279
345
  description: leader election with zeromq for ruby using widely available leader election
280
346
  algorithms, similar to gen_leader erlang project in essence
281
347
  email: aj@junglist.gen.nz
@@ -323,7 +389,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
323
389
  version: '0'
324
390
  segments:
325
391
  - 0
326
- hash: -489881671333538782
392
+ hash: -1452613147631575530
327
393
  required_rubygems_version: !ruby/object:Gem::Requirement
328
394
  none: false
329
395
  requirements: