cncflora_commons 0.0.1 → 0.0.2

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.
Files changed (2) hide show
  1. data/lib/cncflora_commons.rb +2 -1
  2. metadata +1 -1
@@ -47,6 +47,7 @@ def http_put(uri,doc)
47
47
  end
48
48
 
49
49
  response = http.request(request)
50
+
50
51
  JSON.parse(response.body)
51
52
  end
52
53
 
@@ -82,7 +83,7 @@ def flatten(obj)
82
83
  end
83
84
 
84
85
  def etcd2config(server)
85
- config = flatten( http_get("#{server}/?recursive=true")["node"] )
86
+ config = flatten( http_get("#{server}/v2/keys/?recursive=true")["node"] )
86
87
  config
87
88
  end
88
89
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cncflora_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: