addressfinder 1.8.1 → 1.9.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 +9 -0
- data/Dockerfile +2 -2
- data/addressfinder.gemspec +12 -12
- data/lib/addressfinder/bulk.rb +3 -3
- data/lib/addressfinder/version.rb +1 -1
- data/lib/addressfinder.rb +3 -3
- data/spec/lib/addressfinder/v2/au/verification_spec.rb +1 -1
- data/spec/lib/addressfinder/verification_spec.rb +1 -1
- data/spec/lib/addressfinder_spec.rb +10 -0
- metadata +21 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38a7d7f3a73582add0efdff05e575601015d7530e87a475b720c14f150455b97
|
4
|
+
data.tar.gz: 0230c13f16b6a48eecb940baf8a344d64fc832d9bc508649c4ff215675c4b2ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edcb4c8d68f2162090406e40dd9d624f73dff86ed3ebff5dad7d1937715df402ed0a2d568165feb286ba1b703dea73f112f0f1a27604bb90a1aad24477534062
|
7
|
+
data.tar.gz: ead725e66314a35081276a6f5e2d37c23a709f99af3920aad208a76da711cc45d83e9d067493079b25251db81795ccff98a4ff3a4d05f5f8017346c34aee4b47
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
# AddressFinder 1.9.1 (October 2022) #
|
2
|
+
|
3
|
+
* Add missing kwarg `**` for ruby 3
|
4
|
+
|
5
|
+
# AddressFinder 1.9.0 (July 2022) #
|
6
|
+
|
7
|
+
* Add support for Ruby 3.x
|
8
|
+
* Update gem dependencies
|
9
|
+
|
1
10
|
# AddressFinder 1.8.1 (October 2021) #
|
2
11
|
|
3
12
|
* Prevent NZ bulk and verification calls from using V2 module
|
data/Dockerfile
CHANGED
data/addressfinder.gemspec
CHANGED
@@ -2,25 +2,25 @@
|
|
2
2
|
require File.expand_path('../lib/addressfinder/version', __FILE__)
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
|
-
gem.name =
|
5
|
+
gem.name = 'addressfinder'
|
6
6
|
gem.version = AddressFinder::VERSION
|
7
7
|
gem.licenses = ['MIT']
|
8
|
-
gem.authors = [
|
9
|
-
gem.email = [
|
10
|
-
gem.description =
|
11
|
-
gem.summary =
|
12
|
-
gem.homepage =
|
8
|
+
gem.authors = ['Nigel Ramsay', 'Naiki Pohe', 'Sean Arnold', 'Alexandre Barret', 'Cassandre Guinut']
|
9
|
+
gem.email = ['nigel.ramsay@addressfinder.nz', 'naiki.pohe@abletech.co.nz', 'seanarnie@gmail.com', 'alex@abletech.nz', 'cassandre.guinut@addressfinder.nz']
|
10
|
+
gem.description = 'Ruby client library for AddressFinder'
|
11
|
+
gem.summary = 'Provides easy access to AddressFinder APIs'
|
12
|
+
gem.homepage = 'https://github.com/AddressFinder/addressfinder-ruby'
|
13
13
|
|
14
14
|
gem.files = `git ls-files`.split($/)
|
15
15
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
16
16
|
gem.test_files = gem.files.grep(%r{^(spec|features)/})
|
17
|
-
gem.require_paths = [
|
17
|
+
gem.require_paths = ['lib']
|
18
18
|
|
19
|
-
gem.required_ruby_version = '
|
20
|
-
gem.add_dependency 'multi_json', '~> 1.
|
21
|
-
gem.add_development_dependency 'rspec', '~>
|
22
|
-
gem.add_development_dependency '
|
19
|
+
gem.required_ruby_version = '>= 2.1'
|
20
|
+
gem.add_dependency 'multi_json', '~> 1.15'
|
21
|
+
gem.add_development_dependency 'guard-rspec', '~> 4.7'
|
22
|
+
gem.add_development_dependency 'listen', '~> 3.7'
|
23
23
|
gem.add_development_dependency 'rake', '~> 13.0'
|
24
|
+
gem.add_development_dependency 'rspec', '~> 3.11'
|
24
25
|
gem.add_development_dependency 'webmock', '~> 1.21'
|
25
|
-
gem.add_development_dependency 'listen', '~> 3.2'
|
26
26
|
end
|
data/lib/addressfinder/bulk.rb
CHANGED
@@ -25,14 +25,14 @@ module AddressFinder
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def cleanse(args={})
|
28
|
-
AddressFinder::Verification.new(args.merge(http: http)).perform.result
|
28
|
+
AddressFinder::Verification.new(**args.merge(http: http)).perform.result
|
29
29
|
end
|
30
30
|
|
31
31
|
def verification(args={})
|
32
32
|
if verification_version&.downcase == "v2" && (args[:country] || default_country) == 'au'
|
33
|
-
AddressFinder::V2::Au::Verification.new(args.merge(http: http)).perform.result
|
33
|
+
AddressFinder::V2::Au::Verification.new(**args.merge(http: http)).perform.result
|
34
34
|
else
|
35
|
-
AddressFinder::Verification.new(args.merge(http: http)).perform.result
|
35
|
+
AddressFinder::Verification.new(**args.merge(http: http)).perform.result
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
data/lib/addressfinder.rb
CHANGED
@@ -30,14 +30,14 @@ module AddressFinder
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def cleanse(args={}) # We are keeping this method for backward compatibility
|
33
|
-
AddressFinder::Verification.new(args.merge(http: AddressFinder::HTTP.new(configuration))).perform.result
|
33
|
+
AddressFinder::Verification.new(**args.merge(http: AddressFinder::HTTP.new(configuration))).perform.result
|
34
34
|
end
|
35
35
|
|
36
36
|
def verification(args={})
|
37
37
|
if (args[:country] || configuration.default_country) == 'au' && configuration.verification_version&.downcase == "v2"
|
38
|
-
AddressFinder::V2::Au::Verification.new(args.merge(http: AddressFinder::HTTP.new(configuration))).perform.result
|
38
|
+
AddressFinder::V2::Au::Verification.new(**args.merge(http: AddressFinder::HTTP.new(configuration))).perform.result
|
39
39
|
else
|
40
|
-
AddressFinder::Verification.new(args.merge(http: AddressFinder::HTTP.new(configuration))).perform.result
|
40
|
+
AddressFinder::Verification.new(**args.merge(http: AddressFinder::HTTP.new(configuration))).perform.result
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
@@ -10,7 +10,7 @@ RSpec.describe AddressFinder::V2::Au::Verification do
|
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
13
|
-
let(:verification_module){ AddressFinder::V2::Au::Verification.new(args) }
|
13
|
+
let(:verification_module){ AddressFinder::V2::Au::Verification.new(**args) }
|
14
14
|
let(:http){ AddressFinder::HTTP.new(AddressFinder.configuration) }
|
15
15
|
let(:net_http){ http.send(:net_http) }
|
16
16
|
|
@@ -11,7 +11,7 @@ RSpec.describe AddressFinder::Verification do
|
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
|
-
let(:verification_module){ AddressFinder::Verification.new(args) }
|
14
|
+
let(:verification_module){ AddressFinder::Verification.new(**args) }
|
15
15
|
let(:http){ AddressFinder::HTTP.new(AddressFinder.configuration) }
|
16
16
|
let(:net_http){ http.send(:net_http) }
|
17
17
|
|
@@ -29,6 +29,11 @@ RSpec.describe AddressFinder do
|
|
29
29
|
expect(AddressFinder::Verification).to receive_message_chain(:new, :perform, :result)
|
30
30
|
subject
|
31
31
|
end
|
32
|
+
|
33
|
+
it "safely passes arguments through" do
|
34
|
+
stub_request(:get, Addressable::Template.new("https://api.addressfinder.io/api/nz/address/verification{?args*}")).to_return(:status => 200, :body => "{}", :headers => {})
|
35
|
+
subject
|
36
|
+
end
|
32
37
|
end
|
33
38
|
|
34
39
|
context "with country set to au" do
|
@@ -37,6 +42,11 @@ RSpec.describe AddressFinder do
|
|
37
42
|
expect(AddressFinder::V2::Au::Verification).to receive_message_chain(:new, :perform, :result)
|
38
43
|
subject
|
39
44
|
end
|
45
|
+
|
46
|
+
it "safely passes arguments through" do
|
47
|
+
stub_request(:get, Addressable::Template.new("https://api.addressfinder.io/api/au/address/v2/verification{?args*}")).to_return(:status => 200, :body => "{}", :headers => {})
|
48
|
+
subject
|
49
|
+
end
|
40
50
|
end
|
41
51
|
end
|
42
52
|
|
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.
|
4
|
+
version: 1.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nigel Ramsay
|
@@ -9,10 +9,10 @@ authors:
|
|
9
9
|
- Sean Arnold
|
10
10
|
- Alexandre Barret
|
11
11
|
- Cassandre Guinut
|
12
|
-
autorequire:
|
12
|
+
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date:
|
15
|
+
date: 2022-10-12 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: multi_json
|
@@ -20,42 +20,42 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - "~>"
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: '1.
|
23
|
+
version: '1.15'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
28
|
- - "~>"
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version: '1.
|
30
|
+
version: '1.15'
|
31
31
|
- !ruby/object:Gem::Dependency
|
32
|
-
name: rspec
|
32
|
+
name: guard-rspec
|
33
33
|
requirement: !ruby/object:Gem::Requirement
|
34
34
|
requirements:
|
35
35
|
- - "~>"
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: '
|
37
|
+
version: '4.7'
|
38
38
|
type: :development
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
41
|
requirements:
|
42
42
|
- - "~>"
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
version: '
|
44
|
+
version: '4.7'
|
45
45
|
- !ruby/object:Gem::Dependency
|
46
|
-
name:
|
46
|
+
name: listen
|
47
47
|
requirement: !ruby/object:Gem::Requirement
|
48
48
|
requirements:
|
49
49
|
- - "~>"
|
50
50
|
- !ruby/object:Gem::Version
|
51
|
-
version: '
|
51
|
+
version: '3.7'
|
52
52
|
type: :development
|
53
53
|
prerelease: false
|
54
54
|
version_requirements: !ruby/object:Gem::Requirement
|
55
55
|
requirements:
|
56
56
|
- - "~>"
|
57
57
|
- !ruby/object:Gem::Version
|
58
|
-
version: '
|
58
|
+
version: '3.7'
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: rake
|
61
61
|
requirement: !ruby/object:Gem::Requirement
|
@@ -71,33 +71,33 @@ dependencies:
|
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '13.0'
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
|
-
name:
|
74
|
+
name: rspec
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
76
76
|
requirements:
|
77
77
|
- - "~>"
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
version: '
|
79
|
+
version: '3.11'
|
80
80
|
type: :development
|
81
81
|
prerelease: false
|
82
82
|
version_requirements: !ruby/object:Gem::Requirement
|
83
83
|
requirements:
|
84
84
|
- - "~>"
|
85
85
|
- !ruby/object:Gem::Version
|
86
|
-
version: '
|
86
|
+
version: '3.11'
|
87
87
|
- !ruby/object:Gem::Dependency
|
88
|
-
name:
|
88
|
+
name: webmock
|
89
89
|
requirement: !ruby/object:Gem::Requirement
|
90
90
|
requirements:
|
91
91
|
- - "~>"
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version: '
|
93
|
+
version: '1.21'
|
94
94
|
type: :development
|
95
95
|
prerelease: false
|
96
96
|
version_requirements: !ruby/object:Gem::Requirement
|
97
97
|
requirements:
|
98
98
|
- - "~>"
|
99
99
|
- !ruby/object:Gem::Version
|
100
|
-
version: '
|
100
|
+
version: '1.21'
|
101
101
|
description: Ruby client library for AddressFinder
|
102
102
|
email:
|
103
103
|
- nigel.ramsay@addressfinder.nz
|
@@ -149,13 +149,13 @@ homepage: https://github.com/AddressFinder/addressfinder-ruby
|
|
149
149
|
licenses:
|
150
150
|
- MIT
|
151
151
|
metadata: {}
|
152
|
-
post_install_message:
|
152
|
+
post_install_message:
|
153
153
|
rdoc_options: []
|
154
154
|
require_paths:
|
155
155
|
- lib
|
156
156
|
required_ruby_version: !ruby/object:Gem::Requirement
|
157
157
|
requirements:
|
158
|
-
- - "
|
158
|
+
- - ">="
|
159
159
|
- !ruby/object:Gem::Version
|
160
160
|
version: '2.1'
|
161
161
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
@@ -164,8 +164,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
- !ruby/object:Gem::Version
|
165
165
|
version: '0'
|
166
166
|
requirements: []
|
167
|
-
rubygems_version: 3.
|
168
|
-
signing_key:
|
167
|
+
rubygems_version: 3.1.6
|
168
|
+
signing_key:
|
169
169
|
specification_version: 4
|
170
170
|
summary: Provides easy access to AddressFinder APIs
|
171
171
|
test_files:
|