zaikio-client-helpers 0.3.0 → 0.4.0

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: a7c1175b44ca6b5ce9c35a6c24e3c2c546da668af38553303510b6e3ebb549f5
4
- data.tar.gz: 57f77bce22039beedee0f51da1ff1655dc3e602de987d3d13ce594337e5f37c0
3
+ metadata.gz: d266642334866842da555510bf6da0a789a31a23a02ba39d33e72115d22752ef
4
+ data.tar.gz: 80db7cb3b8f18f4631382cef21bf60e7181a5a5c4e7a8538c9e30298353bf6c5
5
5
  SHA512:
6
- metadata.gz: 1eeb54b3661b5aa9d7730fa2751e1632273a63011cf3259f7db5df8228bd9b1208951b692332a54bf449750f1bde6ef8ea23f97d3927c896f96042a628e7d508
7
- data.tar.gz: a22972654c7b0a53f5844a7005d3afb08345cfab355d5493ff58c99fb2e28030f54854bc8bdb32aec118723470df0cd58d98ba101feaf1e04ff16f6295eceb3b
6
+ metadata.gz: 9e125c503402d5b156be59ab0af6a0739db65588996a194c539b00a06578ee771db6e6d46caa2ba36390c1a56cfbdb694b2a4d3a438089160b23a6b1be9b310f
7
+ data.tar.gz: 7ba458d96f9f1fc0f5fa9030c39b5d06fe1d30352075e54cc79bd60631917606ae78157ec6aec788dbec20cdb4a9010f25ed721a749924d02fda565f2d3e0cc5
data/CHANGELOG.md CHANGED
@@ -1,4 +1,6 @@
1
- ## [Unreleased]
1
+ ## [0.4.0] - 2023-02-09
2
+
3
+ - Add a default read timeout for Faraday connection of 5 seconds, and open timeout of 1 second.
2
4
 
3
5
  ## [0.3.0] - 2022-08-15
4
6
 
@@ -3,7 +3,7 @@
3
3
  module Zaikio
4
4
  module Client
5
5
  module Helpers
6
- VERSION = "0.3.0"
6
+ VERSION = "0.4.0"
7
7
  end
8
8
  end
9
9
  end
data/lib/zaikio/client.rb CHANGED
@@ -18,6 +18,8 @@ module Zaikio
18
18
  def create_connection(configuration)
19
19
  Faraday.new(url: configuration.host,
20
20
  ssl: { verify: configuration.environment != :test }) do |c|
21
+ c.options.read_timeout = 5
22
+ c.options.open_timeout = 1
21
23
  c.request :json
22
24
  c.response :logger, configuration&.logger, headers: false
23
25
  c.use Zaikio::Client::Helpers::Pagination::FaradayMiddleware
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zaikio-client-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zaikio GMBH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-15 00:00:00.000000000 Z
11
+ date: 2023-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday