consul-templaterb 1.18.0 → 1.18.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/consul/async/consul_template.rb +7 -6
- data/lib/consul/async/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c712ffce37a55a53211be4109f089fa8d08a8bd7cab7a3f9afe14a0407f6274f
|
4
|
+
data.tar.gz: 564ead3a1e81267424e4d1d00df38a3752c6a23d7b0af6ef34ddb077c16d076f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58a722c9eb468a9e843dbd991841bb494e80e194fcd79c66773e36e792e897adf99db9cb11aaab4d125673cf474f4d61e741d4b226aee4577b68e911d34ed574
|
7
|
+
data.tar.gz: 90b2aad7e64e949da07a803e48e76d1cf45b27df81cf01d353b596c2583235298c9df43fd2961739fcb3f7fe1e2e3dfe9413a1ce2f6a8c72aca9fda67c7350ba
|
data/CHANGELOG.md
CHANGED
@@ -28,12 +28,13 @@ module Consul
|
|
28
28
|
|
29
29
|
def as_json(url, default_value, refresh_delay_secs: 10)
|
30
30
|
conf = JSONConfiguration.new(url: url, min_duration: refresh_delay_secs, retry_on_non_diff: refresh_delay_secs)
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
31
|
+
@endp_manager.create_if_missing(url, {}) do
|
32
|
+
if default_value.is_a?(Array)
|
33
|
+
ConsulTemplateJSONArray.new(JSONEndpoint.new(conf, url, default_value))
|
34
|
+
else
|
35
|
+
ConsulTemplateJSONObject.new(JSONEndpoint.new(conf, url, default_value))
|
36
|
+
end
|
37
|
+
end
|
37
38
|
end
|
38
39
|
end
|
39
40
|
|
data/lib/consul/async/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: consul-templaterb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.18.
|
4
|
+
version: 1.18.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SRE Core Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: em-http-request
|