smartystreets_ruby_sdk 5.14.5 → 5.14.8

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: 869299472834baa787f6070b26072ed8862a7af006bea1c314237f1eeafcd3fa
4
- data.tar.gz: 5262bf0365516fa0bc39f8107248644758ca7c3f2f29066631542478929b4362
3
+ metadata.gz: 73a74155aa4e6204603c70d7a19f2c4a8a5f25917fcb3228b97f5e8979c2c8de
4
+ data.tar.gz: 8700baf3f0d0bc16549050120033d39e873894905551c8ef516b7d8648c821aa
5
5
  SHA512:
6
- metadata.gz: beef270c8686a33b2f5d74579737fb42cbe82e343172eeab6e92ae94fd691dc907ae9e947ca98c7dd84f05253a69e2e09645bffc5247eb22013cc4b51bc41786
7
- data.tar.gz: 0e1885053ff2144b50447e78a066d8b5e2567504a69ae081cdb421c5f6984cb9bfdc42d639ea54bfbd9264fa3ac251aa1866cb435af4f13c33bb99f947f8abcb
6
+ metadata.gz: a6f4b0326b89cb89d99349ae6548b9e8d40740b8b6e35867aa2b6bd2d45af124d02309cc62a0fdcc3f3d01fddcb384bc989661c60629f08204e81413a23b86b0
7
+ data.tar.gz: 3f5042ffd258950f77ff9e52ccaa69b889e54310f9eca155dab8ce2e6e3861515c82e1ac40130152fd61001793f0b4fc30c109e5aacf228e8150157b2342b0e3
@@ -64,7 +64,7 @@ class USStreetMultipleAddressExample
64
64
  next
65
65
  end
66
66
 
67
- puts "Address #{i} is valid. (There is at least one candidate)"
67
+ puts "Address #{i} has at least one candidate.\n If the match parameter is set to STRICT, the address is valid.\n Otherwise, check the Analysis output fields to see if the address is valid."
68
68
 
69
69
  candidates.each do |candidate|
70
70
  components = candidate.components
@@ -54,7 +54,7 @@ class USStreetSingleAddressExample
54
54
 
55
55
  first_candidate = result[0]
56
56
 
57
- puts "Address is valid. (There is at least one candidate)\n"
57
+ puts "There is at least one candidate.\n If the match parameter is set to STRICT, the address is valid.\n Otherwise, check the Analysis output fields to see if the address is valid.\n"
58
58
  puts "Input ID: #{first_candidate.input_id}"
59
59
  puts "ZIP Code: #{first_candidate.components.zipcode}"
60
60
  puts "County: #{first_candidate.metadata.county_name}"
@@ -24,7 +24,7 @@ module SmartyStreets
24
24
  raise response.error if response.error
25
25
 
26
26
  result = @serializer.deserialize(response.payload)
27
- suggestions = convert_suggestions(result)
27
+ suggestions = convert_suggestions(result.fetch('candidates', []))
28
28
  lookup.result = suggestions
29
29
  end
30
30
 
@@ -47,7 +47,7 @@ module SmartyStreets
47
47
  converted_obj = []
48
48
  obj.each do |lookup|
49
49
  converted_lookup = {}
50
- lookup.candidates = 5 if lookup.match == "enhanced" && lookup.candidates == 1
50
+ lookup.candidates = 5 if lookup.match == "enhanced" && lookup.candidates == 0
51
51
 
52
52
  converted_lookup['input_id'] = lookup.input_id
53
53
  converted_lookup['street'] = lookup.street
@@ -12,7 +12,7 @@ module SmartyStreets
12
12
  :match, :candidates, :result
13
13
 
14
14
  def initialize(street=nil, street2=nil, secondary=nil, city=nil, state=nil, zipcode=nil, lastline=nil,
15
- addressee=nil, urbanization=nil, match=nil, candidates=1, input_id=nil)
15
+ addressee=nil, urbanization=nil, match=nil, candidates=0, input_id=nil)
16
16
  @input_id = input_id
17
17
  @street = street
18
18
  @street2 = street2
@@ -1,3 +1,3 @@
1
1
  module SmartyStreets
2
- VERSION = '5.14.5' # DO NOT EDIT (this is updated by a build job when a new release is published)
2
+ VERSION = '5.14.8' # DO NOT EDIT (this is updated by a build job when a new release is published)
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartystreets_ruby_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.14.5
4
+ version: 5.14.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - SmartyStreets SDK Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-12 00:00:00.000000000 Z
11
+ date: 2022-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler