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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 937ba401d8fb1d3b3f34dd50cb78323b8ac5a279
4
- data.tar.gz: 4512e8808672aaca4f51fc599583b86892fe9235
3
+ metadata.gz: 832a835ff5881c0dfe45bb170e756807a37dab64
4
+ data.tar.gz: 3c599607615e05c67cc75b1c527dee76d3dc07e2
5
5
  SHA512:
6
- metadata.gz: f4f8d3beb2a9335e1aaf50f49e78a9bf8dd5e3d0d69605178c05019077cd454425c38fda01ba9ed1f5fe82275ea39da0d161f2eb150c7dfda2478e9d73ee10de
7
- data.tar.gz: 3c450f631cf38bb961de99d245dd180697fad7ef6c195defcef167593fdac21253dbb31c38ebe8b2873e90604ff519586323b593a02e96b5e5b01e84d1551b5d
6
+ metadata.gz: 1658d7fa8a16e6ca6f837f988f0bccff4c5ea4e51866c3ef44e6be215526e5830310847437e0d28744b8dd47e400ebca337ad2119389ff6c84c4264eab924fee
7
+ data.tar.gz: 71df9335732a170e1e224682c9a9d35346c2d78e2c30ae49da62621c322d8c160e23c8dab461bc1f39c35afe5d4a82b2bcc83288bf6b0063a9fc7c27297a50c4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- glimr-api-client (0.2.1)
4
+ glimr-api-client (0.2.2)
5
5
  excon (~> 0.51)
6
6
 
7
7
  GEM
@@ -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: ENV.fetch('GLIMR_API_TIMEOUT_SECONDS', 5)
57
+ read_timeout: timeout
54
58
  )
55
59
  end
56
60
  end
@@ -1,3 +1,3 @@
1
1
  module GlimrApiClient
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  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.1
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-06 00:00:00.000000000 Z
11
+ date: 2017-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler