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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd1ff2b4c25231cf18b03a8a558077a22915881c
4
- data.tar.gz: 926b9cc3da11fcb74cf25994377d566ef2a9c1d2
3
+ metadata.gz: 39f977e9ea6d66fa0e1f70111b258a54415e9b2d
4
+ data.tar.gz: 3fb8918df55b6208c19326c4282a359304df7a1e
5
5
  SHA512:
6
- metadata.gz: 80c13d8c484811d77c62afbe567b966df465a4aac0f0f7e885711a2ed21e1e4afbdfab51d654b0242048c4b01ee70bded2b2de39da3846f61c160f93c21b3171
7
- data.tar.gz: 9506e44c1991d879f7282fd9129222e49e5dca854619b4dbf06123c17fa2679a219e28ed9ff74cca3cabe88ea2d3942df62b0cdbf13117c8e580dd5ebe97448e
6
+ metadata.gz: e85979e0ec995c4e0d56a7185b5e711a2a3cf17f363a38ed0ce41cee73ed82a178e34a44833d8cf3ecc91b6470f965265276a06dafc47d1bcf4e89f25ee5309b
7
+ data.tar.gz: f0c8ca0fc594993aa7791e96607cacc7b972ef7e2ae2543b527334c931f26db31ec4492dfab9af451919dc5227b82c97ed89770de11e93574ad4302d37eb8f7f
@@ -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 'ZK_URL', 'localhost:2181'
32
+ @zk_url || ENV.fetch('ZK_URL', 'localhost:2181')
32
33
  end
33
34
 
34
35
  def setup
@@ -0,0 +1,17 @@
1
+ module Cellect
2
+ class NodeSet
3
+ class ZK
4
+ def initialize(*args)
5
+
6
+ end
7
+
8
+ def children(*args)
9
+ []
10
+ end
11
+
12
+ def method_missing(*args, &block)
13
+
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,3 +1,3 @@
1
1
  module Cellect
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
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.2
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-06-23 00:00:00.000000000 Z
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