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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d485833c41c9fdd080aa574deef1bc9cf5f8c7e6
4
- data.tar.gz: b7251004455cb293c2c71185423777d20f4de15d
3
+ metadata.gz: 0bb8f67e1af45d0e4103397b040d03a4371bf218
4
+ data.tar.gz: d8a482167b23216b111a7194411fdfee43709887
5
5
  SHA512:
6
- metadata.gz: 093952107f0f3a448bc47aea9511f318460b8dc409a141d3a8d8846a2dd2232c70fdeec68101bf2f26e361129ad8f655552affb7dffd398d3068660cd6d41ff9
7
- data.tar.gz: d02be718585fb9b7ddea90a7a5297a8af932d888e07e738032e1b6fba5ba7b8ee9cc7af64e7c52a37858e6b01451fccb7504890091c49597948a91b0f5cd75ef
6
+ metadata.gz: de2849cf61ca99bc3a97fbe15a33b61df2ca6cb947bdce16c851c8d9e69562fc38914eea3c8a13a74695752e69dbf35dd8d849d793dfd05ef2d0385cadd585d1
7
+ data.tar.gz: dd0f60af97af715dffdc32cdbfd6c6102b8fced957e302e1148312a808ac97ae99e741e151ca7005a9280d6a7c8ab522fc68154f68546cd867b5b1f2b783b328
@@ -1,3 +1,3 @@
1
1
  module ZkClient
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -111,9 +111,9 @@ module ZkClient
111
111
  end
112
112
 
113
113
  def process_path(path)
114
- path = "/#{path}" unless path.start_with?('/')
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zk_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Thomas