addressfinder 1.6.0 → 1.6.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: 9b79f5f19495e699810a70554f1b039b18593358
4
- data.tar.gz: db666ffb8a6b4c80f83dc596d21a94134aa333cf
3
+ metadata.gz: 867dfc938d96ea86964d5855d4ad5427407b7685
4
+ data.tar.gz: 7cae59337cb6014fecc96334a350e6315c2ab8cb
5
5
  SHA512:
6
- metadata.gz: b0c51e33b40f79d5b60375c608d875818aba925c2aeb54835bfb37f01f3a2470b0a62dc5d5484c7d7499fb474ae34dd326d196b8d66e9253c570a160fa01551a
7
- data.tar.gz: 8c3f3805a0db4e847fdf4a854d8b1c55c7c43973ef84d51b5123b3c7de10c74e6d846eaf67c5a9742cf5d75175c9d4ece5e7e461e9ddc0ef8e30f9b44ec13cf9
6
+ metadata.gz: e0db8ca4d697a30774da34e3058ef5a4c3f24e0c82d5f8e393ff86fa87a70ff95d1849c2f28d0248b20230d694f2d32a95d0265c1fa9493f651d8996cea39402
7
+ data.tar.gz: 15d086c393bdd02f3adc9adee36d562e8f7e8e380f95c888c87c77f934a4ea8ef6dc4a84d4d9310576007a57c2fc88e07e9fec19a2cbc6791fec3168f9ea7ef1
@@ -1,3 +1,7 @@
1
+ # AddressFinder 1.6.1 (January 14, 2019) #
2
+
3
+ * Add support for an optional census parameter in the Cleanse class
4
+
1
5
  # AddressFinder 1.6.0 (August 10, 2017) #
2
6
 
3
7
  * Add support for a configurable number of request retries
@@ -5,13 +5,14 @@ module AddressFinder
5
5
 
6
6
  attr_reader :result
7
7
 
8
- def initialize(q:, country: nil, delivered: nil, post_box: nil, rural: nil, region_code: nil, domain: nil, key: nil, secret: nil, http:)
8
+ def initialize(q:, country: nil, delivered: nil, post_box: nil, rural: nil, region_code: nil, census: nil, domain: nil, key: nil, secret: nil, http:)
9
9
  @params = {}
10
10
  @params['q'] = q
11
11
  @params['delivered'] = delivered if delivered
12
12
  @params['post_box'] = post_box if post_box
13
13
  @params['rural'] = rural if rural
14
14
  @params['region_code'] = region_code if region_code
15
+ @params['census'] = census if census
15
16
  @params['domain'] = domain || config.domain if (domain || config.domain)
16
17
  @params['format'] = 'json'
17
18
  @params['key'] = key || config.api_key
@@ -1,3 +1,3 @@
1
1
  module AddressFinder
2
- VERSION = '1.6.0'
2
+ VERSION = '1.6.1'
3
3
  end
@@ -71,9 +71,9 @@ RSpec.describe AddressFinder::Cleanse do
71
71
  end
72
72
 
73
73
  context 'with more arguments' do
74
- let(:args){ {q: '186 willis st', delivered: true, region_code: 'A', http: http} }
74
+ let(:args){ {q: '186 willis st', delivered: true, region_code: 'A', census: '2013', http: http} }
75
75
 
76
- it { expect(request_uri).to eq('/api/nz/address/cleanse?q=186+willis+st&delivered=true&region_code=A&format=json&key=XXX&secret=YYY') }
76
+ it { expect(request_uri).to eq('/api/nz/address/cleanse?q=186+willis+st&delivered=true&region_code=A&census=2013&format=json&key=XXX&secret=YYY') }
77
77
  end
78
78
 
79
79
  context 'with a country override' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: addressfinder
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nigel Ramsay
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-08-10 00:00:00.000000000 Z
14
+ date: 2019-01-14 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: multi_json
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  version: '0'
157
157
  requirements: []
158
158
  rubyforge_project:
159
- rubygems_version: 2.4.7
159
+ rubygems_version: 2.6.8
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: Provides easy access to AddressFinder APIs