zk_client 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/zk_client/version.rb +1 -1
- data/lib/zk_client/zk_client.rb +2 -2
- 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: 0bb8f67e1af45d0e4103397b040d03a4371bf218
|
|
4
|
+
data.tar.gz: d8a482167b23216b111a7194411fdfee43709887
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: de2849cf61ca99bc3a97fbe15a33b61df2ca6cb947bdce16c851c8d9e69562fc38914eea3c8a13a74695752e69dbf35dd8d849d793dfd05ef2d0385cadd585d1
|
|
7
|
+
data.tar.gz: dd0f60af97af715dffdc32cdbfd6c6102b8fced957e302e1148312a808ac97ae99e741e151ca7005a9280d6a7c8ab522fc68154f68546cd867b5b1f2b783b328
|
data/lib/zk_client/version.rb
CHANGED
data/lib/zk_client/zk_client.rb
CHANGED
|
@@ -111,9 +111,9 @@ module ZkClient
|
|
|
111
111
|
end
|
|
112
112
|
|
|
113
113
|
def process_path(path)
|
|
114
|
-
path = "/#{path}"
|
|
115
|
-
path = "#{root_path}#{path}" unless path.start_with?(root_path)
|
|
114
|
+
path = "/#{path}" unless path.start_with?('/') # We want leading slash
|
|
116
115
|
path = path[0...-1] if path[-1] == '/' # Remove trailing slash
|
|
116
|
+
path = "#{root_path}#{path}" unless path.start_with?(root_path)
|
|
117
117
|
|
|
118
118
|
path
|
|
119
119
|
end
|