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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bac347ed1fa4ee45f7ff1bdc3f5fdc5bee74206fa73b1fe4d33be727f21c1b41
4
- data.tar.gz: 44e72444624d652a166089b6c630fb739d47f77155dfaed2e8a27b88afa7bf59
3
+ metadata.gz: 38a7d7f3a73582add0efdff05e575601015d7530e87a475b720c14f150455b97
4
+ data.tar.gz: 0230c13f16b6a48eecb940baf8a344d64fc832d9bc508649c4ff215675c4b2ae
5
5
  SHA512:
6
- metadata.gz: 180b47e4aa74a5b09c312cc6be655bca62f9f4293f68b7c2505370dbdf2f14c2a48bf71d6523fbe1cf991bcf078745f62ba9d9f9b4e7cebdabd9b38900e111ee
7
- data.tar.gz: 7396a52596c09359dbd3cb2facaafe6d4af4b4887be6d0c12b9de8770441ca45055bace9b4665af649793c0f482f39125b59df0e377f75c61e6380578ab258e1
6
+ metadata.gz: edcb4c8d68f2162090406e40dd9d624f73dff86ed3ebff5dad7d1937715df402ed0a2d568165feb286ba1b703dea73f112f0f1a27604bb90a1aad24477534062
7
+ data.tar.gz: ead725e66314a35081276a6f5e2d37c23a709f99af3920aad208a76da711cc45d83e9d067493079b25251db81795ccff98a4ff3a4d05f5f8017346c34aee4b47
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # AddressFinder 1.9.1 (October 2022) #
2
+
3
+ * Add missing kwarg `**` for ruby 3
4
+
1
5
  # AddressFinder 1.9.0 (July 2022) #
2
6
 
3
7
  * Add support for Ruby 3.x
@@ -1,3 +1,3 @@
1
1
  module AddressFinder
2
- VERSION = '1.9.0'
2
+ VERSION = '1.9.1'
3
3
  end
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.0
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-07-21 00:00:00.000000000 Z
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: