routemaster-drain 3.6.6 → 3.6.7
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/CHANGELOG.md +5 -0
- data/lib/routemaster/api_client.rb +4 -2
- data/lib/routemaster/drain.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c4469f5d849b4e194fab122200d8ad3b674b0614192c8d772c93d5632bc9d7c7
|
|
4
|
+
data.tar.gz: 1dcc2036e9718877e22c3af4f2dce9605ae28d851173ede745b3e6dbcd2b4b75
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cbac86db4c0502ac01f77e1b4daeb1559dfe7d5edb795a25891ddd7cf0cf7bc948f475349c89a98a4727e1dcacf26bffd36b4d0928a4e9384a0b74482adecc8e
|
|
7
|
+
data.tar.gz: 8df8cf287f7fadd4183946e217cbb79247bf875139ff29ae03b3b8951a2b68270c58caf263da5a7dc0847eb4bdb88ed2248fb5b3fd4c41d66a71e03deb90822e
|
data/CHANGELOG.md
CHANGED
|
@@ -45,6 +45,8 @@ module Routemaster
|
|
|
45
45
|
@retry_attempts = options.fetch :retry_attempts, 2
|
|
46
46
|
@retry_methods = options.fetch :retry_methods, Faraday::Request::Retry::IDEMPOTENT_METHODS
|
|
47
47
|
@retry_exceptions = options.fetch :retry_exceptions, Faraday::Request::Retry::Options.new.exceptions
|
|
48
|
+
@timeout = options.fetch :timeout, nil
|
|
49
|
+
@open_timeout = options.fetch :open_timeout, nil
|
|
48
50
|
|
|
49
51
|
connection # warm up connection so Faraday does all it's magical file loading in the main thread
|
|
50
52
|
end
|
|
@@ -147,8 +149,8 @@ module Routemaster
|
|
|
147
149
|
|
|
148
150
|
f.adapter :typhoeus
|
|
149
151
|
|
|
150
|
-
f.options.timeout = ENV.fetch('ROUTEMASTER_CACHE_TIMEOUT', 1).to_f
|
|
151
|
-
f.options.open_timeout = ENV.fetch('ROUTEMASTER_CACHE_TIMEOUT', 1).to_f
|
|
152
|
+
f.options.timeout = (@timeout || ENV.fetch('ROUTEMASTER_CACHE_TIMEOUT', 1)).to_f
|
|
153
|
+
f.options.open_timeout = (@open_timeout || ENV.fetch('ROUTEMASTER_CACHE_TIMEOUT', 1)).to_f
|
|
152
154
|
f.ssl.verify = ENV.fetch('ROUTEMASTER_CACHE_VERIFY_SSL', 'false') == 'true'
|
|
153
155
|
end
|
|
154
156
|
end
|
data/lib/routemaster/drain.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: routemaster-drain
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.6.
|
|
4
|
+
version: 3.6.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Julien Letessier
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-05-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|
|
@@ -300,7 +300,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
300
300
|
- !ruby/object:Gem::Version
|
|
301
301
|
version: '0'
|
|
302
302
|
requirements: []
|
|
303
|
-
rubygems_version: 3.
|
|
303
|
+
rubygems_version: 3.0.9
|
|
304
304
|
signing_key:
|
|
305
305
|
specification_version: 4
|
|
306
306
|
summary: Event receiver for the Routemaster bus
|