sdr-client 0.60.0 → 0.61.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sdr_client/connection.rb +5 -3
- data/lib/sdr_client/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: 101554d535c7a2e1fd71fb0d2f9abbd956e871c688b09461c8330e4e3526864b
|
4
|
+
data.tar.gz: d65b128417c52e9df5aac2b399fc036cc77f3d93b62dac27b2aba24a2b8de24d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f732927aab94e1c2bf36f52976b5ec815788513111b8cbebf8cb3cf339c44976f70c574fa18267a81192f9f267ef1402e6c77baf3a23a23094bcad02f72313a7
|
7
|
+
data.tar.gz: d0ab06ae6318729d62adfab59483f4363e8b5d3fdcb1a97397fb0690d60d30e1fdbdd3976b8d7057e129d816eab40e4bad17a6c82321c1935b9ab9faaba55bf7
|
@@ -5,13 +5,15 @@ module SdrClient
|
|
5
5
|
class Connection
|
6
6
|
include Dry::Monads[:result]
|
7
7
|
|
8
|
-
|
8
|
+
# @param [Integer] read_timeout the value in seconds to set the read timeout
|
9
|
+
def initialize(url:, token: Credentials.read, read_timeout: 180)
|
9
10
|
@url = url
|
10
11
|
@token = token
|
12
|
+
@request_options = { read_timeout: read_timeout }
|
11
13
|
end
|
12
14
|
|
13
15
|
def connection
|
14
|
-
@connection ||= Faraday.new(url: url) do |conn|
|
16
|
+
@connection ||= Faraday.new(url: url, request: request_options) do |conn|
|
15
17
|
conn.authorization :Bearer, token
|
16
18
|
conn.adapter :net_http
|
17
19
|
end
|
@@ -36,6 +38,6 @@ module SdrClient
|
|
36
38
|
|
37
39
|
private
|
38
40
|
|
39
|
-
attr_reader :url, :token
|
41
|
+
attr_reader :url, :token, :request_options
|
40
42
|
end
|
41
43
|
end
|
data/lib/sdr_client/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sdr-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.61.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|