companies-house-gateway 0.3.12 → 0.4.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 593bdf14f06692596668c8bbee71c01ef7fc6fdd
|
4
|
+
data.tar.gz: a699f0aa9b9d71698fb63a47754b625d31c48846
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0ad8e20332b425a6282f0bf7522af8fa7334467ea5aecad656ae6555f89690cd039f677fb67d170d86f3db755838e9c8643d0f410df9281c11bcbf1d81b2d36
|
7
|
+
data.tar.gz: 08a945e38b7e40df23e7ac29626105c44b13ab64605b9903a7216338457803f909fc6707233118b65e91221103d2a435b0030cd58378f1d4ae1f9f04f06d2a96
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## 0.4.1 - November 20, 2015
|
2
|
+
|
3
|
+
- Add company number prefix for Limited Liability Partnership for Northern
|
4
|
+
Ireland
|
5
|
+
|
6
|
+
## 0.4.0 - August 7, 2015
|
7
|
+
|
8
|
+
- Add configurable timeouts
|
9
|
+
|
1
10
|
## 0.3.12 - June 28, 2015
|
2
11
|
|
3
12
|
- Fix autoloading (so you no longer need to `require: "companies_house_gateway"`
|
@@ -9,7 +9,9 @@ module CompaniesHouseGateway
|
|
9
9
|
cache_args: nil,
|
10
10
|
raw: false,
|
11
11
|
api_endpoint: "http://xmlgw.companieshouse.gov.uk/v1-0/xmlgw/Gateway",
|
12
|
-
user_agent: "CompaniesHouseGateway Ruby Gem #{CompaniesHouseGateway::VERSION}".freeze
|
12
|
+
user_agent: "CompaniesHouseGateway Ruby Gem #{CompaniesHouseGateway::VERSION}".freeze,
|
13
|
+
open_timeout: 1,
|
14
|
+
timeout: 3
|
13
15
|
}.freeze
|
14
16
|
|
15
17
|
def initialize
|
@@ -16,6 +16,8 @@ module CompaniesHouseGateway
|
|
16
16
|
response = @connection.post do |request|
|
17
17
|
request.path = @config[:api_endpoint]
|
18
18
|
request.body = build_request_xml(request_type, request_data).to_s
|
19
|
+
request.options.open_timeout = @config[:open_timeout]
|
20
|
+
request.options.timeout = @config[:timeout]
|
19
21
|
end
|
20
22
|
@config[:raw] ? response : response.body
|
21
23
|
rescue Faraday::Error::ClientError => e
|
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.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grey Baker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday_middleware
|