cellect-server 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cellect/node_set.rb +3 -2
- data/lib/cellect/testing.rb +17 -0
- data/lib/cellect/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39f977e9ea6d66fa0e1f70111b258a54415e9b2d
|
4
|
+
data.tar.gz: 3fb8918df55b6208c19326c4282a359304df7a1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e85979e0ec995c4e0d56a7185b5e711a2a3cf17f363a38ed0ce41cee73ed82a178e34a44833d8cf3ecc91b6470f965265276a06dafc47d1bcf4e89f25ee5309b
|
7
|
+
data.tar.gz: f0c8ca0fc594993aa7791e96607cacc7b972ef7e2ae2543b527334c931f26db31ec4492dfab9af451919dc5227b82c97ed89770de11e93574ad4302d37eb8f7f
|
data/lib/cellect/node_set.rb
CHANGED
@@ -7,7 +7,8 @@ module Cellect
|
|
7
7
|
|
8
8
|
attr_accessor :zk, :state
|
9
9
|
|
10
|
-
def initialize
|
10
|
+
def initialize(zk_url = nil)
|
11
|
+
@zk_url = zk_url
|
11
12
|
self.state = :initializing
|
12
13
|
after(0.001){ async.initialize_zk } # don't block waiting for ZK to connect
|
13
14
|
end
|
@@ -28,7 +29,7 @@ module Cellect
|
|
28
29
|
protected
|
29
30
|
|
30
31
|
def zk_url
|
31
|
-
ENV.fetch
|
32
|
+
@zk_url || ENV.fetch('ZK_URL', 'localhost:2181')
|
32
33
|
end
|
33
34
|
|
34
35
|
def setup
|
data/lib/cellect/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cellect-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Parrish
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -249,6 +249,7 @@ files:
|
|
249
249
|
- lib/cellect/server/node_set.rb
|
250
250
|
- lib/cellect/server/user.rb
|
251
251
|
- lib/cellect/server/workflow.rb
|
252
|
+
- lib/cellect/testing.rb
|
252
253
|
- lib/cellect/version.rb
|
253
254
|
- log/.gitkeep
|
254
255
|
- spec/fixtures/user_data/complete_user.json
|