addressfinder 1.9.0 → 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 +4 -0
- data/lib/addressfinder/version.rb +1 -1
- data/lib/addressfinder.rb +3 -3
- data/spec/lib/addressfinder_spec.rb +10 -0
- metadata +5 -5
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
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
|
|
@@ -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.9.
|
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: 2022-
|
15
|
+
date: 2022-10-12 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: multi_json
|
@@ -149,7 +149,7 @@ 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
|
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
165
|
version: '0'
|
166
166
|
requirements: []
|
167
167
|
rubygems_version: 3.1.6
|
168
|
-
signing_key:
|
168
|
+
signing_key:
|
169
169
|
specification_version: 4
|
170
170
|
summary: Provides easy access to AddressFinder APIs
|
171
171
|
test_files:
|