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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11600fd1fbd0d94c1cc32e9fdcc5734f5f8caa1a543adaa876b5831f4e0a8303
4
- data.tar.gz: 69ce9c611cf41505b43d743adfca4f453857cea9f1df8a4e907a98c694468ed0
3
+ metadata.gz: c712ffce37a55a53211be4109f089fa8d08a8bd7cab7a3f9afe14a0407f6274f
4
+ data.tar.gz: 564ead3a1e81267424e4d1d00df38a3752c6a23d7b0af6ef34ddb077c16d076f
5
5
  SHA512:
6
- metadata.gz: 89ef2d0efa08adc140735b8df89ed45b5074e9a2ef90ccdbf96eb94f5cfb8a81d4ff807859f137263b1dcc1ae09458819e036da4fe08a557ef27ee76d106dfdc
7
- data.tar.gz: 1668c8e3814b857af84f3f0cdd6011c3cb93733c4c62ae43424f268cd4bc9b0c9958c0d5568fc3466b47b84044619093b5ff58a136de4041e901953d8c944444
6
+ metadata.gz: 58a722c9eb468a9e843dbd991841bb494e80e194fcd79c66773e36e792e897adf99db9cb11aaab4d125673cf474f4d61e741d4b226aee4577b68e911d34ed574
7
+ data.tar.gz: 90b2aad7e64e949da07a803e48e76d1cf45b27df81cf01d353b596c2583235298c9df43fd2961739fcb3f7fe1e2e3dfe9413a1ce2f6a8c72aca9fda67c7350ba
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## (UNRELEASED)
4
4
 
5
+ ## 1.18.1 (July 27, 2019)
6
+
7
+ BUFIX:
8
+
9
+ Fixed wrong lazy initialization in `remote_resource.as_json` that
10
+ cause too many connections to be opened.
11
+
5
12
  ## 1.18.0 (July 27, 2019)
6
13
 
7
14
  NEW FEATURES:
@@ -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
- ret = if default_value.is_a?(Array)
32
- ConsulTemplateJSONArray.new(JSONEndpoint.new(conf, url, default_value))
33
- else
34
- ConsulTemplateJSONObject.new(JSONEndpoint.new(conf, url, default_value))
35
- end
36
- @endp_manager.create_if_missing(url, {}) { ret }
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
 
@@ -1,5 +1,5 @@
1
1
  module Consul
2
2
  module Async
3
- VERSION = '1.18.0'.freeze
3
+ VERSION = '1.18.1'.freeze
4
4
  end
5
5
  end
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.0
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-27 00:00:00.000000000 Z
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