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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/addressfinder/cleanse.rb +2 -1
- data/lib/addressfinder/version.rb +1 -1
- data/spec/lib/addressfinder/cleanse_spec.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 867dfc938d96ea86964d5855d4ad5427407b7685
|
4
|
+
data.tar.gz: 7cae59337cb6014fecc96334a350e6315c2ab8cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0db8ca4d697a30774da34e3058ef5a4c3f24e0c82d5f8e393ff86fa87a70ff95d1849c2f28d0248b20230d694f2d32a95d0265c1fa9493f651d8996cea39402
|
7
|
+
data.tar.gz: 15d086c393bdd02f3adc9adee36d562e8f7e8e380f95c888c87c77f934a4ea8ef6dc4a84d4d9310576007a57c2fc88e07e9fec19a2cbc6791fec3168f9ea7ef1
|
data/CHANGELOG.md
CHANGED
@@ -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
|
@@ -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®ion_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®ion_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.
|
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:
|
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.
|
159
|
+
rubygems_version: 2.6.8
|
160
160
|
signing_key:
|
161
161
|
specification_version: 4
|
162
162
|
summary: Provides easy access to AddressFinder APIs
|