cellect-client 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cellect/client.rb +0 -4
- data/lib/cellect/client/railtie.rb +7 -1
- data/lib/cellect/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d448a374ace74bd7bd7d19df1af369446ccc13e
|
4
|
+
data.tar.gz: 2abee2c7e1334107a6fe00fa2c24bc684db5eed4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b39539587809b17605c5eb3f24961473d1411985a65d46c903cd936ef80d2b7e0a38d8f7a57cecd593442f1a88a1e2ee7a2ea3df5768b3b190778b63a80bd0b9
|
7
|
+
data.tar.gz: f18e1d343e353733fe18ffd30c0995c8fc1166e8b9b87e5e45696512a1a88aa2f81733631134a1ac55db935927598c628f6f98d5a32aca7990f571fcee258356
|
data/lib/cellect/client.rb
CHANGED
@@ -9,7 +9,7 @@ module Cellect
|
|
9
9
|
ensure_config_environment config
|
10
10
|
config = config[Rails.env].symbolize_keys
|
11
11
|
ensure_config_url config
|
12
|
-
connect_zookeeper config if
|
12
|
+
connect_zookeeper config if load_zookeeper
|
13
13
|
end
|
14
14
|
|
15
15
|
private
|
@@ -37,6 +37,12 @@ module Cellect
|
|
37
37
|
Client.node_set config[:zk_url]
|
38
38
|
Client.connection = Connection.pool size: config.fetch(:pool_size, 100)
|
39
39
|
end
|
40
|
+
|
41
|
+
def load_zookeeper
|
42
|
+
!Client.mock_zookeeper?
|
43
|
+
rescue NoMethodError
|
44
|
+
true
|
45
|
+
end
|
40
46
|
end
|
41
47
|
end
|
42
48
|
end
|
data/lib/cellect/version.rb
CHANGED