zk_client 0.4.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/zk_client/version.rb +1 -1
- data/lib/zk_client/zk_cache.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95cea0604daf5c689afae08a5b3d8cba5be45abf
|
4
|
+
data.tar.gz: f18a16733cc9e89aeaea6b441f5f5e5371dfdefc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c619627bc085677c04c3e9ea39d50c37add557501bba823446107b4c8b9e8c2461c521f97ffa9a0d01eff3decbd743ed943f9f654bf30e67d52c717e426c62d
|
7
|
+
data.tar.gz: d9dc61bc30f6707552d8e41dae78987fc4ebea54ae88f9ed2cef9d5381aa9571f195f7dee456f7a1dfd0f3559bb1d2408e92ee905454024fe8289f625c3f4a3d
|
data/README.md
CHANGED
@@ -241,7 +241,7 @@ ZkClient.read('my_data')
|
|
241
241
|
|
242
242
|
## Contributing
|
243
243
|
|
244
|
-
1. Fork it ( https://
|
244
|
+
1. Fork it ( https://github.com/thomas07vt/zk_client/fork )
|
245
245
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
246
246
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
247
247
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/zk_client/version.rb
CHANGED
data/lib/zk_client/zk_cache.rb
CHANGED
@@ -5,7 +5,8 @@ module ZkCache
|
|
5
5
|
class << self
|
6
6
|
|
7
7
|
def cache(key, value)
|
8
|
-
|
8
|
+
path = _process_path(key)
|
9
|
+
_cache[path] = value
|
9
10
|
end
|
10
11
|
|
11
12
|
def read(key)
|
@@ -30,6 +31,10 @@ module ZkCache
|
|
30
31
|
ZkClient.root_path
|
31
32
|
end
|
32
33
|
|
34
|
+
def all
|
35
|
+
_cache
|
36
|
+
end
|
37
|
+
|
33
38
|
private
|
34
39
|
|
35
40
|
def _cache
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zk_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Thomas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zookeeper
|