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 +4 -4
- data/Makefile +27 -1
- data/examples/international_autocomplete_example.rb +1 -5
- data/examples/international_example.rb +1 -5
- data/examples/us_autocomplete_pro_example.rb +1 -5
- data/examples/us_reverse_geo_example.rb +2 -5
- data/examples/us_street_multiple_address_example.rb +1 -5
- data/examples/us_street_single_address_example.rb +2 -7
- data/lib/smartystreets_ruby_sdk/us_reverse_geo/address.rb +2 -1
- data/lib/smartystreets_ruby_sdk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a3434a5c2f0653a03f261066ff9c65560e15363fc3e485471a8d14771435572
|
4
|
+
data.tar.gz: f6e9a2690fe9aa311867980454127353915926281be6a096ba5145d0330ff2e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
#
|
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).
|
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
|
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:
|
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-
|
11
|
+
date: 2025-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|