pylon 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,5 +15,5 @@
15
15
  # limitations under the License.
16
16
 
17
17
  class Pylon
18
- VERSION = "0.2.5"
18
+ VERSION = "0.2.6"
19
19
  end
@@ -140,6 +140,7 @@ class Pylon
140
140
  ping_node node
141
141
  allocate_master
142
142
  end
143
+ Thread.pass
143
144
  end
144
145
  end
145
146
  end
@@ -116,11 +116,11 @@ class Pylon
116
116
  req_socket.setsockopt ZMQ::LINGER, 0
117
117
  req_socket.connect unicast_endpoint
118
118
  if req_socket.send_string "command", ZMQ::SNDMORE
119
- Log.debug "connect_node: sent command protocol initiator"
120
119
  if req_socket.send_string([command, params].to_json)
121
120
  response = JSON.parse(req_socket.recv_string)
122
121
  end
123
122
  end
123
+ req_socket.close
124
124
  response
125
125
  end.value
126
126
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pylon}
8
- s.version = "0.2.5"
8
+ s.version = "0.2.6"
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"]
@@ -69,6 +69,12 @@ Gem::Specification.new do |s|
69
69
  s.add_development_dependency(%q<rcov>, [">= 0"])
70
70
  s.add_development_dependency(%q<vagrant>, [">= 0"])
71
71
  s.add_development_dependency(%q<virtualbox>, [">= 0"])
72
+ s.add_development_dependency(%q<minitest>, ["~> 2.6.0"])
73
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
74
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
75
+ s.add_development_dependency(%q<rcov>, [">= 0"])
76
+ s.add_development_dependency(%q<vagrant>, [">= 0"])
77
+ s.add_development_dependency(%q<virtualbox>, [">= 0"])
72
78
  s.add_runtime_dependency(%q<ffi-rzmq>, ["~> 0.8.2"])
73
79
  s.add_runtime_dependency(%q<mixlib-log>, [">= 0"])
74
80
  s.add_runtime_dependency(%q<mixlib-cli>, [">= 0"])
@@ -100,6 +106,12 @@ Gem::Specification.new do |s|
100
106
  s.add_dependency(%q<rcov>, [">= 0"])
101
107
  s.add_dependency(%q<vagrant>, [">= 0"])
102
108
  s.add_dependency(%q<virtualbox>, [">= 0"])
109
+ s.add_dependency(%q<minitest>, ["~> 2.6.0"])
110
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
111
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
112
+ s.add_dependency(%q<rcov>, [">= 0"])
113
+ s.add_dependency(%q<vagrant>, [">= 0"])
114
+ s.add_dependency(%q<virtualbox>, [">= 0"])
103
115
  s.add_dependency(%q<ffi-rzmq>, ["~> 0.8.2"])
104
116
  s.add_dependency(%q<mixlib-log>, [">= 0"])
105
117
  s.add_dependency(%q<mixlib-cli>, [">= 0"])
@@ -132,6 +144,12 @@ Gem::Specification.new do |s|
132
144
  s.add_dependency(%q<rcov>, [">= 0"])
133
145
  s.add_dependency(%q<vagrant>, [">= 0"])
134
146
  s.add_dependency(%q<virtualbox>, [">= 0"])
147
+ s.add_dependency(%q<minitest>, ["~> 2.6.0"])
148
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
149
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
150
+ s.add_dependency(%q<rcov>, [">= 0"])
151
+ s.add_dependency(%q<vagrant>, [">= 0"])
152
+ s.add_dependency(%q<virtualbox>, [">= 0"])
135
153
  s.add_dependency(%q<ffi-rzmq>, ["~> 0.8.2"])
136
154
  s.add_dependency(%q<mixlib-log>, [">= 0"])
137
155
  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.5
4
+ version: 0.2.6
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: &2160976080 !ruby/object:Gem::Requirement
17
+ requirement: &2156553900 !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: *2160976080
25
+ version_requirements: *2156553900
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: bundler
28
- requirement: &2160975300 !ruby/object:Gem::Requirement
28
+ requirement: &2156552860 !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: *2160975300
36
+ version_requirements: *2156552860
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: jeweler
39
- requirement: &2160974720 !ruby/object:Gem::Requirement
39
+ requirement: &2156551980 !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: *2160974720
47
+ version_requirements: *2156551980
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rcov
50
- requirement: &2160973580 !ruby/object:Gem::Requirement
50
+ requirement: &2156550960 !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: *2160973580
58
+ version_requirements: *2156550960
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: vagrant
61
- requirement: &2160972680 !ruby/object:Gem::Requirement
61
+ requirement: &2156549500 !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: *2160972680
69
+ version_requirements: *2156549500
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: virtualbox
72
- requirement: &2160972040 !ruby/object:Gem::Requirement
72
+ requirement: &2156548080 !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: *2160972040
80
+ version_requirements: *2156548080
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: minitest
83
- requirement: &2160970460 !ruby/object:Gem::Requirement
83
+ requirement: &2156547160 !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: *2160970460
91
+ version_requirements: *2156547160
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: bundler
94
- requirement: &2160956640 !ruby/object:Gem::Requirement
94
+ requirement: &2156546260 !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: *2160956640
102
+ version_requirements: *2156546260
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: jeweler
105
- requirement: &2160956040 !ruby/object:Gem::Requirement
105
+ requirement: &2156544600 !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: *2160956040
113
+ version_requirements: *2156544600
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: rcov
116
- requirement: &2160955280 !ruby/object:Gem::Requirement
116
+ requirement: &2156543320 !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: *2160955280
124
+ version_requirements: *2156543320
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: vagrant
127
- requirement: &2160954240 !ruby/object:Gem::Requirement
127
+ requirement: &2156541840 !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: *2160954240
135
+ version_requirements: *2156541840
136
136
  - !ruby/object:Gem::Dependency
137
137
  name: virtualbox
138
- requirement: &2160943920 !ruby/object:Gem::Requirement
138
+ requirement: &2156540460 !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements:
141
141
  - - ! '>='
@@ -143,10 +143,10 @@ dependencies:
143
143
  version: '0'
144
144
  type: :development
145
145
  prerelease: false
146
- version_requirements: *2160943920
146
+ version_requirements: *2156540460
147
147
  - !ruby/object:Gem::Dependency
148
148
  name: minitest
149
- requirement: &2160942220 !ruby/object:Gem::Requirement
149
+ requirement: &2156538960 !ruby/object:Gem::Requirement
150
150
  none: false
151
151
  requirements:
152
152
  - - ~>
@@ -154,10 +154,10 @@ dependencies:
154
154
  version: 2.6.0
155
155
  type: :development
156
156
  prerelease: false
157
- version_requirements: *2160942220
157
+ version_requirements: *2156538960
158
158
  - !ruby/object:Gem::Dependency
159
159
  name: bundler
160
- requirement: &2160927540 !ruby/object:Gem::Requirement
160
+ requirement: &2156538200 !ruby/object:Gem::Requirement
161
161
  none: false
162
162
  requirements:
163
163
  - - ~>
@@ -165,10 +165,10 @@ dependencies:
165
165
  version: 1.0.0
166
166
  type: :development
167
167
  prerelease: false
168
- version_requirements: *2160927540
168
+ version_requirements: *2156538200
169
169
  - !ruby/object:Gem::Dependency
170
170
  name: jeweler
171
- requirement: &2160925380 !ruby/object:Gem::Requirement
171
+ requirement: &2156537240 !ruby/object:Gem::Requirement
172
172
  none: false
173
173
  requirements:
174
174
  - - ~>
@@ -176,10 +176,10 @@ dependencies:
176
176
  version: 1.6.4
177
177
  type: :development
178
178
  prerelease: false
179
- version_requirements: *2160925380
179
+ version_requirements: *2156537240
180
180
  - !ruby/object:Gem::Dependency
181
181
  name: rcov
182
- requirement: &2160923160 !ruby/object:Gem::Requirement
182
+ requirement: &2156536400 !ruby/object:Gem::Requirement
183
183
  none: false
184
184
  requirements:
185
185
  - - ! '>='
@@ -187,10 +187,10 @@ dependencies:
187
187
  version: '0'
188
188
  type: :development
189
189
  prerelease: false
190
- version_requirements: *2160923160
190
+ version_requirements: *2156536400
191
191
  - !ruby/object:Gem::Dependency
192
192
  name: vagrant
193
- requirement: &2160920440 !ruby/object:Gem::Requirement
193
+ requirement: &2156535320 !ruby/object:Gem::Requirement
194
194
  none: false
195
195
  requirements:
196
196
  - - ! '>='
@@ -198,10 +198,10 @@ dependencies:
198
198
  version: '0'
199
199
  type: :development
200
200
  prerelease: false
201
- version_requirements: *2160920440
201
+ version_requirements: *2156535320
202
202
  - !ruby/object:Gem::Dependency
203
203
  name: virtualbox
204
- requirement: &2160918340 !ruby/object:Gem::Requirement
204
+ requirement: &2156534360 !ruby/object:Gem::Requirement
205
205
  none: false
206
206
  requirements:
207
207
  - - ! '>='
@@ -209,10 +209,76 @@ dependencies:
209
209
  version: '0'
210
210
  type: :development
211
211
  prerelease: false
212
- version_requirements: *2160918340
212
+ version_requirements: *2156534360
213
+ - !ruby/object:Gem::Dependency
214
+ name: minitest
215
+ requirement: &2156533500 !ruby/object:Gem::Requirement
216
+ none: false
217
+ requirements:
218
+ - - ~>
219
+ - !ruby/object:Gem::Version
220
+ version: 2.6.0
221
+ type: :development
222
+ prerelease: false
223
+ version_requirements: *2156533500
224
+ - !ruby/object:Gem::Dependency
225
+ name: bundler
226
+ requirement: &2156532560 !ruby/object:Gem::Requirement
227
+ none: false
228
+ requirements:
229
+ - - ~>
230
+ - !ruby/object:Gem::Version
231
+ version: 1.0.0
232
+ type: :development
233
+ prerelease: false
234
+ version_requirements: *2156532560
235
+ - !ruby/object:Gem::Dependency
236
+ name: jeweler
237
+ requirement: &2156531960 !ruby/object:Gem::Requirement
238
+ none: false
239
+ requirements:
240
+ - - ~>
241
+ - !ruby/object:Gem::Version
242
+ version: 1.6.4
243
+ type: :development
244
+ prerelease: false
245
+ version_requirements: *2156531960
246
+ - !ruby/object:Gem::Dependency
247
+ name: rcov
248
+ requirement: &2156531280 !ruby/object:Gem::Requirement
249
+ none: false
250
+ requirements:
251
+ - - ! '>='
252
+ - !ruby/object:Gem::Version
253
+ version: '0'
254
+ type: :development
255
+ prerelease: false
256
+ version_requirements: *2156531280
257
+ - !ruby/object:Gem::Dependency
258
+ name: vagrant
259
+ requirement: &2156530300 !ruby/object:Gem::Requirement
260
+ none: false
261
+ requirements:
262
+ - - ! '>='
263
+ - !ruby/object:Gem::Version
264
+ version: '0'
265
+ type: :development
266
+ prerelease: false
267
+ version_requirements: *2156530300
268
+ - !ruby/object:Gem::Dependency
269
+ name: virtualbox
270
+ requirement: &2156528540 !ruby/object:Gem::Requirement
271
+ none: false
272
+ requirements:
273
+ - - ! '>='
274
+ - !ruby/object:Gem::Version
275
+ version: '0'
276
+ type: :development
277
+ prerelease: false
278
+ version_requirements: *2156528540
213
279
  - !ruby/object:Gem::Dependency
214
280
  name: ffi-rzmq
215
- requirement: &2160916400 !ruby/object:Gem::Requirement
281
+ requirement: &2156527400 !ruby/object:Gem::Requirement
216
282
  none: false
217
283
  requirements:
218
284
  - - ~>
@@ -220,10 +286,10 @@ dependencies:
220
286
  version: 0.8.2
221
287
  type: :runtime
222
288
  prerelease: false
223
- version_requirements: *2160916400
289
+ version_requirements: *2156527400
224
290
  - !ruby/object:Gem::Dependency
225
291
  name: mixlib-log
226
- requirement: &2160915020 !ruby/object:Gem::Requirement
292
+ requirement: &2156526360 !ruby/object:Gem::Requirement
227
293
  none: false
228
294
  requirements:
229
295
  - - ! '>='
@@ -231,10 +297,10 @@ dependencies:
231
297
  version: '0'
232
298
  type: :runtime
233
299
  prerelease: false
234
- version_requirements: *2160915020
300
+ version_requirements: *2156526360
235
301
  - !ruby/object:Gem::Dependency
236
302
  name: mixlib-cli
237
- requirement: &2160913480 !ruby/object:Gem::Requirement
303
+ requirement: &2156525180 !ruby/object:Gem::Requirement
238
304
  none: false
239
305
  requirements:
240
306
  - - ! '>='
@@ -242,10 +308,10 @@ dependencies:
242
308
  version: '0'
243
309
  type: :runtime
244
310
  prerelease: false
245
- version_requirements: *2160913480
311
+ version_requirements: *2156525180
246
312
  - !ruby/object:Gem::Dependency
247
313
  name: mixlib-config
248
- requirement: &2160911500 !ruby/object:Gem::Requirement
314
+ requirement: &2156524060 !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: :runtime
255
321
  prerelease: false
256
- version_requirements: *2160911500
322
+ version_requirements: *2156524060
257
323
  - !ruby/object:Gem::Dependency
258
324
  name: uuidtools
259
- requirement: &2160909920 !ruby/object:Gem::Requirement
325
+ requirement: &2156522820 !ruby/object:Gem::Requirement
260
326
  none: false
261
327
  requirements:
262
328
  - - ~>
@@ -264,10 +330,10 @@ dependencies:
264
330
  version: 2.1.2
265
331
  type: :runtime
266
332
  prerelease: false
267
- version_requirements: *2160909920
333
+ version_requirements: *2156522820
268
334
  - !ruby/object:Gem::Dependency
269
335
  name: json
270
- requirement: &2160908120 !ruby/object:Gem::Requirement
336
+ requirement: &2156521660 !ruby/object:Gem::Requirement
271
337
  none: false
272
338
  requirements:
273
339
  - - ! '>='
@@ -275,10 +341,10 @@ dependencies:
275
341
  version: '0'
276
342
  type: :runtime
277
343
  prerelease: false
278
- version_requirements: *2160908120
344
+ version_requirements: *2156521660
279
345
  - !ruby/object:Gem::Dependency
280
346
  name: minitest
281
- requirement: &2160906300 !ruby/object:Gem::Requirement
347
+ requirement: &2156519800 !ruby/object:Gem::Requirement
282
348
  none: false
283
349
  requirements:
284
350
  - - ~>
@@ -286,10 +352,10 @@ dependencies:
286
352
  version: 2.6.0
287
353
  type: :development
288
354
  prerelease: false
289
- version_requirements: *2160906300
355
+ version_requirements: *2156519800
290
356
  - !ruby/object:Gem::Dependency
291
357
  name: bundler
292
- requirement: &2160905180 !ruby/object:Gem::Requirement
358
+ requirement: &2156517180 !ruby/object:Gem::Requirement
293
359
  none: false
294
360
  requirements:
295
361
  - - ~>
@@ -297,10 +363,10 @@ dependencies:
297
363
  version: 1.0.0
298
364
  type: :development
299
365
  prerelease: false
300
- version_requirements: *2160905180
366
+ version_requirements: *2156517180
301
367
  - !ruby/object:Gem::Dependency
302
368
  name: jeweler
303
- requirement: &2160904200 !ruby/object:Gem::Requirement
369
+ requirement: &2156516580 !ruby/object:Gem::Requirement
304
370
  none: false
305
371
  requirements:
306
372
  - - ~>
@@ -308,10 +374,10 @@ dependencies:
308
374
  version: 1.6.4
309
375
  type: :development
310
376
  prerelease: false
311
- version_requirements: *2160904200
377
+ version_requirements: *2156516580
312
378
  - !ruby/object:Gem::Dependency
313
379
  name: rcov
314
- requirement: &2160897040 !ruby/object:Gem::Requirement
380
+ requirement: &2156515840 !ruby/object:Gem::Requirement
315
381
  none: false
316
382
  requirements:
317
383
  - - ! '>='
@@ -319,10 +385,10 @@ dependencies:
319
385
  version: '0'
320
386
  type: :development
321
387
  prerelease: false
322
- version_requirements: *2160897040
388
+ version_requirements: *2156515840
323
389
  - !ruby/object:Gem::Dependency
324
390
  name: vagrant
325
- requirement: &2160895980 !ruby/object:Gem::Requirement
391
+ requirement: &2156514800 !ruby/object:Gem::Requirement
326
392
  none: false
327
393
  requirements:
328
394
  - - ! '>='
@@ -330,10 +396,10 @@ dependencies:
330
396
  version: '0'
331
397
  type: :development
332
398
  prerelease: false
333
- version_requirements: *2160895980
399
+ version_requirements: *2156514800
334
400
  - !ruby/object:Gem::Dependency
335
401
  name: virtualbox
336
- requirement: &2160895360 !ruby/object:Gem::Requirement
402
+ requirement: &2156513980 !ruby/object:Gem::Requirement
337
403
  none: false
338
404
  requirements:
339
405
  - - ! '>='
@@ -341,7 +407,7 @@ dependencies:
341
407
  version: '0'
342
408
  type: :development
343
409
  prerelease: false
344
- version_requirements: *2160895360
410
+ version_requirements: *2156513980
345
411
  description: leader election with zeromq for ruby using widely available leader election
346
412
  algorithms, similar to gen_leader erlang project in essence
347
413
  email: aj@junglist.gen.nz
@@ -389,7 +455,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
389
455
  version: '0'
390
456
  segments:
391
457
  - 0
392
- hash: -1452613147631575530
458
+ hash: 4297169006148903427
393
459
  required_rubygems_version: !ruby/object:Gem::Requirement
394
460
  none: false
395
461
  requirements: