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: 8c7ddec6a0b44484211b3a1f17b40d1f0ab21479
4
- data.tar.gz: 03940f8778a7cf789129b19adc125da52daf4a3b
3
+ metadata.gz: 593bdf14f06692596668c8bbee71c01ef7fc6fdd
4
+ data.tar.gz: a699f0aa9b9d71698fb63a47754b625d31c48846
5
5
  SHA512:
6
- metadata.gz: 772e9f9107eceec56ea79d81ac0cab1e4e5cddf3d5a91be292f6a6d0792d51f79b0cf7ca6705eca5ef8fa8cf733b2bf5a9b1fc8eee0444e9a62b4cd7c5ef04a3
7
- data.tar.gz: 175f1a908930cab21cff691fd2bdcf8331c9afe162389d5fdaaf4014c4ee3c7ccd61510bdaf861eb51dfb277a351cd97cd4e23b46a1dd73428a1198be7fd4c12
6
+ metadata.gz: f0ad8e20332b425a6282f0bf7522af8fa7334467ea5aecad656ae6555f89690cd039f677fb67d170d86f3db755838e9c8643d0f410df9281c11bcbf1d81b2d36
7
+ data.tar.gz: 08a945e38b7e40df23e7ac29626105c44b13ab64605b9903a7216338457803f909fc6707233118b65e91221103d2a435b0030cd58378f1d4ae1f9f04f06d2a96
@@ -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
@@ -26,7 +26,7 @@ module CompaniesHouseGateway
26
26
  # \d\d is the default prefix in regex notation.
27
27
  ALLOWED_PREFIXES = %w(AC BR FC GE IP LP OC RC SE ZC
28
28
  SC SA SF SL SZ SP SO SR
29
- NI NA NF NL NZ NP NO NR
29
+ NI NA NF NL NZ NP NO NR NC
30
30
  \d\d)
31
31
  end
32
- end
32
+ end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module CompaniesHouseGateway
2
- VERSION = '0.3.12'.freeze
2
+ VERSION = '0.4.1'.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.12
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-06-28 00:00:00.000000000 Z
11
+ date: 2015-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday_middleware