companies-house-gateway 0.3.8 → 0.3.9

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: eb22bf86516a59484848d7135af1f4488cebc40b
4
- data.tar.gz: c29fe125e8f41a92b697f718362617844110cc83
3
+ metadata.gz: a16057986838a719f67595decf1f224ce24bdf7f
4
+ data.tar.gz: 2ca35c7a6c91b087304f99b278a000e04a43dfa5
5
5
  SHA512:
6
- metadata.gz: 668189713d9d4dbb539ed7df196209fb9c051e07cee243e2a3278e3610208d3d2d1a2f2377d2890a0cb5880eb0a7eeaa9ffe94598118898dfff9274ebab99ea5
7
- data.tar.gz: 623ad1073c6831b13dceb99b03825f0f20ec2124164055d888ba2095acabfa8a5fc06d750b45171de946cf57886eccb8013d44e072241545deeec12367ed4eab
6
+ metadata.gz: fb342b2a13ba378055d53bc030d591c43faa90ec41557950af11d64cced91a533625ede1bf4c34a72a0e740a6ef51e148c63908454183bd1df4f41d114fa803c
7
+ data.tar.gz: 5b53c49d6c4478ed6ac633b58a608792b6cd5b6e31b812d728e84f36c0ebd069d372511735ce22f4f64d3d24b50b357f9dec3f23d3667ec9c9e23d5a2df21f0e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.3.9 - April 15, 2014
2
+
3
+ - Catch Faraday errors without a response
4
+
1
5
  ## 0.3.8 - April 8, 2014
2
6
 
3
7
  - Allow API errors without a message
@@ -19,9 +19,13 @@ 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.fetch(:body, nil),
23
- e.response.fetch(:status, nil),
24
- e.response)
22
+ if e.response.nil?
23
+ raise CompaniesHouseGatewayError.new
24
+ else
25
+ raise CompaniesHouseGatewayError.new(e.response[:body],
26
+ e.response[:status],
27
+ e.response)
28
+ end
25
29
  end
26
30
 
27
31
  # Compile the complete XML request to send to Companies House
@@ -1,3 +1,3 @@
1
1
  module CompaniesHouseGateway
2
- VERSION = '0.3.8'.freeze
2
+ VERSION = '0.3.9'.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.8
4
+ version: 0.3.9
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-04-08 00:00:00.000000000 Z
11
+ date: 2014-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday