glimr-api-client 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/glimr_api_client/api.rb +5 -1
- data/lib/glimr_api_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 832a835ff5881c0dfe45bb170e756807a37dab64
|
4
|
+
data.tar.gz: 3c599607615e05c67cc75b1c527dee76d3dc07e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1658d7fa8a16e6ca6f837f988f0bccff4c5ea4e51866c3ef44e6be215526e5830310847437e0d28744b8dd47e400ebca337ad2119389ff6c84c4264eab924fee
|
7
|
+
data.tar.gz: 71df9335732a170e1e224682c9a9d35346c2d78e2c30ae49da62621c322d8c160e23c8dab461bc1f39c35afe5d4a82b2bcc83288bf6b0063a9fc7c27297a50c4
|
data/Gemfile.lock
CHANGED
data/lib/glimr_api_client/api.rb
CHANGED
@@ -15,6 +15,10 @@ module GlimrApiClient
|
|
15
15
|
@response_body ||= JSON.parse(@body, symbolize_names: true)
|
16
16
|
end
|
17
17
|
|
18
|
+
def timeout
|
19
|
+
Integer(ENV.fetch('GLIMR_API_TIMEOUT_SECONDS', 5))
|
20
|
+
end
|
21
|
+
|
18
22
|
private
|
19
23
|
|
20
24
|
# If this is set using a constant, and the gem is included in a project
|
@@ -50,7 +54,7 @@ module GlimrApiClient
|
|
50
54
|
'Accept' => 'application/json'
|
51
55
|
},
|
52
56
|
persistent: true,
|
53
|
-
read_timeout:
|
57
|
+
read_timeout: timeout
|
54
58
|
)
|
55
59
|
end
|
56
60
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glimr-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Todd Tyree
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|