companies-house-gateway 0.3.6 → 0.3.7

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: 1849937f401ec3fe9197d91cc25f8ace31043df1
4
- data.tar.gz: bbcfd60440e011fa247b5ba9aa324e3de76569a7
3
+ metadata.gz: 8de4c247cb4b2b9a86185fc80f1684a4368022ef
4
+ data.tar.gz: 2db51ba62069295a28859ce02a3cd3742bf321ed
5
5
  SHA512:
6
- metadata.gz: 9d0b5788b304f5a6e380678910bb3416d6c917f80e783a7a76fc1fd63808c3d93b7f8878114938032e1afb012c8675fc3cdc5eea1e6839d40f5a533208503951
7
- data.tar.gz: b6e03f18aea13bd71d6e082d09e7c13c4e54b4854e448e416b0c1e1b06ce415653628fd6c6866827d53a0c08cad95bba41d46a50b6823ec64543c86008da6262
6
+ metadata.gz: f2cf8ed3854a12a3af8295a5ad088b273dc08f4cde57fa5a5a8b18390d351c5ed3a6de156357ea3f2b8c825c823e9aa5012ee61ac1bcd25dbc6489e526372d96
7
+ data.tar.gz: e6999255d049a487a906724451471b268ff9dea909bab482783da476f7d5d81789448d78a9ddc47b8b5491f48ce47f57cd6da180e2da4fed6042e3f36d12bc9f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.3.7 - April 7, 2014
2
+
3
+ - Catch Faraday errors without a response
4
+
1
5
  ## 0.3.6 - March 3, 2014
2
6
 
3
7
  - Add error_code attribute to APIError
@@ -19,8 +19,8 @@ module CompaniesHouseGateway
19
19
  end
20
20
  @config[:raw] ? response : response.body
21
21
  rescue Faraday::Error::ClientError => e
22
- raise CompaniesHouseGatewayError.new(e.response[:body],
23
- e.response[:status],
22
+ raise CompaniesHouseGatewayError.new(e.response.fetch(:body, nil),
23
+ e.response.fetch(:status, nil),
24
24
  e.response)
25
25
  end
26
26
 
@@ -1,3 +1,3 @@
1
1
  module CompaniesHouseGateway
2
- VERSION = '0.3.6'.freeze
2
+ VERSION = '0.3.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: companies-house-gateway
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grey Baker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-03 00:00:00.000000000 Z
11
+ date: 2014-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday