smartystreets_ruby_sdk 5.20.8 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a9d939ecbb799b7f91b0c5837111eba83d68d03846653e4f1174e9c305a830cc
4
- data.tar.gz: c0485555464b49dbc8b0f1df67d0253f1446b4b8709c9fa954aa3a465510dbea
3
+ metadata.gz: 6a3434a5c2f0653a03f261066ff9c65560e15363fc3e485471a8d14771435572
4
+ data.tar.gz: f6e9a2690fe9aa311867980454127353915926281be6a096ba5145d0330ff2e7
5
5
  SHA512:
6
- metadata.gz: 6b1efad836731fa39917b880e6e97036f0825757f668d30241c245115c2503fc9901d110db15420db62c1c5142897a30f87d12c89c83bc1a7b10a16cf5bf2f3b
7
- data.tar.gz: 70f2164a0e6d1dbdf9600fc1e302f310797d74f20b6d1c828fcc1fe01c4e2e16aa47f8023fa36c2ed71cb69356fde32d491cef6dda8b079e080d2b4b5c91d3c2
6
+ metadata.gz: 3def558642b2d8c8276b6ccc5953ca8be0d3d2bf4fc7e271fda7f1cf1d5ef0d24769520b900a28e54cbd9bb653107757ed3f3f3b3d631668b7aacc3757016cca
7
+ data.tar.gz: 8b624a1760c07ebf6623a95f1c7a27131d91f27ece5c90bc7a2d3eaab67f0b537d7a8d37095532a15f99ebc54fdd3ac8a162902eec5899268457290e1900db29
data/Makefile CHANGED
@@ -24,4 +24,30 @@ publish: package
24
24
  printf -- "---\n:rubygems_api_key: ${API_KEY}\n" > ~/.gem/credentials
25
25
  gem push *.gem
26
26
 
27
- .PHONY: clean test dependencies package publish
27
+ international_autocomplete_api:
28
+ cd examples && ruby international_autocomplete_example.rb
29
+
30
+ international_street_api:
31
+ cd examples && ruby international_example.rb
32
+
33
+ us_autocomplete_pro_api:
34
+ cd examples && ruby us_autocomplete_pro_example.rb
35
+
36
+ us_enrichment_api:
37
+ cd examples && ruby us_enrichment_example.rb
38
+
39
+ us_extract_api:
40
+ cd examples && ruby us_extract_example.rb
41
+
42
+ us_reverse_geo_api:
43
+ cd examples && ruby us_reverse_geo_example.rb
44
+
45
+ us_street_api:
46
+ cd examples && ruby us_street_single_address_example.rb && ruby us_street_multiple_address_example.rb
47
+
48
+ us_zipcode_api:
49
+ cd examples && ruby us_zipcode_single_lookup_example.rb && ruby us_zipcode_multiple_lookup_example.rb
50
+
51
+ examples: international_autocomplete_api international_street_api us_autocomplete_pro_api us_enrichment_api us_extract_api us_reverse_geo_api us_street_api us_zipcode_api
52
+
53
+ .PHONY: clean test dependencies package publish international_autocomplete_api international_street_api us_autocomplete_pro_api us_enrichment_api us_extract_api us_reverse_geo_api us_street_api us_zipcode_api examples
@@ -19,11 +19,7 @@ class InternationalAutocompleteExample
19
19
  # token = ENV['SMARTY_AUTH_TOKEN']
20
20
  # credentials = SmartyStreets::StaticCredentials.new(id, token)
21
21
 
22
- # The appropriate license values to be used for your subscriptions
23
- # can be found on the Subscriptions page of the account dashboard.
24
- # https://www.smartystreets.com/docs/cloud/licensing
25
- client = SmartyStreets::ClientBuilder.new(credentials).with_licenses(['international-autocomplete-v2-cloud'])
26
- .build_international_autocomplete_api_client
22
+ client = SmartyStreets::ClientBuilder.new(credentials).build_international_autocomplete_api_client
27
23
 
28
24
  # Documentation for input fields can be found at:
29
25
  # https://smartystreets.com/docs/cloud/us-autocomplete-api
@@ -18,11 +18,7 @@ class InternationalExample
18
18
  # token = ENV['SMARTY_AUTH_TOKEN']
19
19
  # credentials = SmartyStreets::StaticCredentials.new(id, token)
20
20
 
21
- # The appropriate license values to be used for your subscriptions
22
- # can be found on the Subscriptions page of the account dashboard.
23
- # https://www.smartystreets.com/docs/cloud/licensing
24
- client = SmartyStreets::ClientBuilder.new(credentials).with_licenses(['international-global-plus-cloud'])
25
- .build_international_street_api_client
21
+ client = SmartyStreets::ClientBuilder.new(credentials).build_international_street_api_client
26
22
 
27
23
  # Documentation for input fields can be found at:
28
24
  # https://smartystreets.com/docs/cloud/international-street-api
@@ -23,11 +23,7 @@ class USAutocompleteProExample
23
23
  #
24
24
  # credentials = SmartyStreets::StaticCredentials.new(auth_id, auth_token)
25
25
 
26
- # The appropriate license values to be used for your subscriptions
27
- # can be found on the Subscriptions page of the account dashboard.
28
- # https://www.smartystreets.com/docs/cloud/licensing
29
- client = SmartyStreets::ClientBuilder.new(credentials).with_licenses(['us-autocomplete-pro-cloud'])
30
- .build_us_autocomplete_pro_api_client
26
+ client = SmartyStreets::ClientBuilder.new(credentials).build_us_autocomplete_pro_api_client
31
27
 
32
28
  # Documentation for input fields can be found at:
33
29
  # https://smartystreets.com/docs/cloud/us-autocomplete-api
@@ -18,11 +18,7 @@ class USReverseGeoExample
18
18
  # token = ENV['SMARTY_AUTH_TOKEN']
19
19
  # credentials = SmartyStreets::StaticCredentials.new(id, token)
20
20
 
21
- # The appropriate license values to be used for your subscriptions
22
- # can be found on the Subscriptions page of the account dashboard.
23
- # https://www.smartystreets.com/docs/cloud/licensing
24
- client = SmartyStreets::ClientBuilder.new(credentials).with_licenses(['us-reverse-geocoding-cloud'])
25
- .build_us_reverse_geo_api_client
21
+ client = SmartyStreets::ClientBuilder.new(credentials).build_us_reverse_geo_api_client
26
22
 
27
23
  # Documentation for input fields can be found at:
28
24
  # https://smartystreets.com/docs/cloud/us-reverse-geo-api#http-request-input-fields
@@ -46,6 +42,7 @@ class USReverseGeoExample
46
42
  puts "State Abbreviation: #{address.state_abbreviation}"
47
43
  puts "ZIP Code: #{address.zipcode}"
48
44
  puts "License: #{coordinate.get_license}"
45
+ puts "Smartykey: #{address.smartykey}"
49
46
  end
50
47
  end
51
48
 
@@ -20,11 +20,7 @@ class USStreetMultipleAddressExample
20
20
  # token = ENV['SMARTY_AUTH_TOKEN']
21
21
  # credentials = SmartyStreets::StaticCredentials.new(id, token)
22
22
 
23
- # The appropriate license values to be used for your subscriptions
24
- # can be found on the Subscriptions page of the account dashboard.
25
- # https://www.smartystreets.com/docs/cloud/licensing
26
- client = SmartyStreets::ClientBuilder.new(credentials).with_licenses(['us-core-cloud'])
27
- .build_us_street_api_client
23
+ client = SmartyStreets::ClientBuilder.new(credentials).build_us_street_api_client
28
24
  batch = SmartyStreets::Batch.new
29
25
 
30
26
  # Documentation for input fields can be found at:
@@ -17,14 +17,9 @@ class USStreetSingleAddressExample
17
17
  # token = ENV['SMARTY_AUTH_TOKEN']
18
18
  # credentials = SmartyStreets::StaticCredentials.new(id, token)
19
19
 
20
- # The appropriate license values to be used for your subscriptions
21
- # can be found on the Subscriptions page of the account dashboard.
22
- # https://www.smartystreets.com/docs/cloud/licensing
23
- #
24
- # To try with a proxy, add this method call after with_licences
20
+ # To try with a proxy, add this method before build_us_street_api_client
25
21
  # with_proxy('localhost', 8080, 'proxyUser', 'proxyPassword')
26
- client = SmartyStreets::ClientBuilder.new(credentials).with_licenses(['us-core-cloud']).
27
- build_us_street_api_client
22
+ client = SmartyStreets::ClientBuilder.new(credentials).build_us_street_api_client
28
23
 
29
24
  # Documentation for input fields can be found at:
30
25
  # https://smartystreets.com/docs/cloud/us-street-api
@@ -2,7 +2,7 @@ module SmartyStreets
2
2
  module USReverseGeo
3
3
  # See "https://smartystreets.com/docs/cloud/us-reverse-geo-api#address"
4
4
  class Address
5
- attr_reader :street, :city, :state_abbreviation, :zipcode, :source
5
+ attr_reader :street, :city, :state_abbreviation, :zipcode, :source, :smartykey
6
6
 
7
7
  def initialize(obj)
8
8
  @street = obj['street']
@@ -10,6 +10,7 @@ module SmartyStreets
10
10
  @state_abbreviation = obj['state_abbreviation']
11
11
  @zipcode = obj['zipcode']
12
12
  @source = obj['source']
13
+ @smartykey = obj['smarty_key']
13
14
  end
14
15
  end
15
16
  end
@@ -1,3 +1,3 @@
1
1
  module SmartyStreets
2
- VERSION = '5.20.8' # DO NOT EDIT (this is updated by a build job when a new release is published)
2
+ VERSION = '6.0.0' # 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.20.8
4
+ version: 6.0.0
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: 2025-05-12 00:00:00.000000000 Z
11
+ date: 2025-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler