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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/companies_house_gateway/request.rb +7 -3
- data/lib/companies_house_gateway/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: a16057986838a719f67595decf1f224ce24bdf7f
|
4
|
+
data.tar.gz: 2ca35c7a6c91b087304f99b278a000e04a43dfa5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb342b2a13ba378055d53bc030d591c43faa90ec41557950af11d64cced91a533625ede1bf4c34a72a0e740a6ef51e148c63908454183bd1df4f41d114fa803c
|
7
|
+
data.tar.gz: 5b53c49d6c4478ed6ac633b58a608792b6cd5b6e31b812d728e84f36c0ebd069d372511735ce22f4f64d3d24b50b357f9dec3f23d3667ec9c9e23d5a2df21f0e
|
data/CHANGELOG.md
CHANGED
@@ -19,9 +19,13 @@ module CompaniesHouseGateway
|
|
19
19
|
end
|
20
20
|
@config[:raw] ? response : response.body
|
21
21
|
rescue Faraday::Error::ClientError => e
|
22
|
-
|
23
|
-
|
24
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2014-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|