smartystreets_ruby_sdk 5.14.9 → 5.14.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/gem-publish.yml +59 -0
- data/{LICENSE.txt → LICENSE.md} +1 -1
- data/README.md +2 -0
- data/examples/international_example.rb +4 -4
- data/examples/us_extract_example.rb +4 -4
- data/examples/us_reverse_geo_example.rb +4 -4
- data/examples/us_street_multiple_address_example.rb +5 -5
- data/examples/us_street_single_address_example.rb +5 -5
- data/examples/us_zipcode_multiple_lookup_example.rb +4 -4
- data/examples/us_zipcode_single_lookup_example.rb +4 -4
- data/lib/smartystreets_ruby_sdk/version.rb +1 -1
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42a215aa8d810dbd85f5739ae7a73dbd0ead4a253627d8bfeb36d017e36ca716
|
4
|
+
data.tar.gz: 3be273085fc4466f96c0376e9d101d5dc2464210aa3a092c00e0f4ddade0fb12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 318e5a6802ffa480c4a83887637a0e64c41e3481d5cfd28799de3d455f68369f2733c9fad6afa9b1e95974524da273daf688d54f124062d8ea9e634b80ad0bda
|
7
|
+
data.tar.gz: f719f070faf89dfe73c4e248f19cdb71c769ecdd88e2e5bd2ddf0ec9cfcd4f35f66630fe763b05e6903b7a76af5932302ed41ff29dcbceac46d43dc0f513d00a
|
@@ -0,0 +1,59 @@
|
|
1
|
+
name: Ruby Gem Publish
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
tags:
|
6
|
+
- '*'
|
7
|
+
jobs:
|
8
|
+
publish:
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
env:
|
11
|
+
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
|
12
|
+
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v3
|
15
|
+
with:
|
16
|
+
fetch-depth: 0 # need all the commits
|
17
|
+
|
18
|
+
- uses: ruby/setup-ruby@v1
|
19
|
+
with:
|
20
|
+
ruby-version: '2.6'
|
21
|
+
bundler-cache: false
|
22
|
+
|
23
|
+
- uses: actions/setup-node@v2
|
24
|
+
|
25
|
+
- name: Clean
|
26
|
+
run: |
|
27
|
+
rm -f *.gem
|
28
|
+
git checkout lib/smartystreets_ruby_sdk/version.rb
|
29
|
+
|
30
|
+
- name: Dependencies
|
31
|
+
run: |
|
32
|
+
gem install minitest
|
33
|
+
|
34
|
+
- name: Test
|
35
|
+
run: |
|
36
|
+
rake test
|
37
|
+
|
38
|
+
- name: Set Environment Variable
|
39
|
+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
40
|
+
|
41
|
+
- name: Grab Version
|
42
|
+
run: |
|
43
|
+
echo "Module SmartyStreets
|
44
|
+
VERSION = '${{ env.RELEASE_VERSION }}'
|
45
|
+
end" >> version.rb \
|
46
|
+
&& cat version.rb \
|
47
|
+
&& gem build *.gemspec \
|
48
|
+
&& git checkout lib/smartystreets_ruby_sdk/version.rb
|
49
|
+
|
50
|
+
- name: Push to rubygems.org
|
51
|
+
run: |
|
52
|
+
mkdir -p $HOME/.gem
|
53
|
+
touch $HOME/.gem/credentials
|
54
|
+
chmod 0600 $HOME/.gem/credentials
|
55
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
56
|
+
gem push *.gem
|
57
|
+
# chmod 0600 /root/.gem/credentials
|
58
|
+
env:
|
59
|
+
GEM_HOST_API_KEY: "${{secrets.GEM_HOST_API_KEY}}"
|
data/{LICENSE.txt → LICENSE.md}
RENAMED
@@ -187,7 +187,7 @@
|
|
187
187
|
same "printed page" as the copyright notice for easier
|
188
188
|
identification within third-party archives.
|
189
189
|
|
190
|
-
Copyright
|
190
|
+
Copyright Smarty
|
191
191
|
|
192
192
|
Licensed under the Apache License, Version 2.0 (the "License");
|
193
193
|
you may not use this file except in compliance with the License.
|
data/README.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# SMARTY DISCLAIMER: Subject to the terms of the associated license agreement, this software is freely available for your use. This software is FREE, AS IN PUPPIES, and is a gift. Enjoy your new responsibility. This means that while we may consider enhancement requests, we may or may not choose to entertain requests at our sole and absolute discretion.
|
2
|
+
|
1
3
|
# SmartyStreets Ruby SDK
|
2
4
|
|
3
5
|
The official client libraries for accessing SmartyStreets APIs from Ruby
|
@@ -6,12 +6,12 @@ class InternationalExample
|
|
6
6
|
Lookup = SmartyStreets::InternationalStreet::Lookup
|
7
7
|
|
8
8
|
def run
|
9
|
-
auth_id = 'Your SmartyStreets Auth ID here'
|
10
|
-
auth_token = 'Your SmartyStreets Auth Token here'
|
9
|
+
# auth_id = 'Your SmartyStreets Auth ID here'
|
10
|
+
# auth_token = 'Your SmartyStreets Auth Token here'
|
11
11
|
|
12
12
|
# We recommend storing your secret keys in environment variables instead---it's safer!
|
13
|
-
|
14
|
-
|
13
|
+
auth_id = ENV['SMARTY_AUTH_ID']
|
14
|
+
auth_token = ENV['SMARTY_AUTH_TOKEN']
|
15
15
|
|
16
16
|
credentials = SmartyStreets::StaticCredentials.new(auth_id, auth_token)
|
17
17
|
|
@@ -6,12 +6,12 @@ class USExtractExample
|
|
6
6
|
Lookup = SmartyStreets::USExtract::Lookup
|
7
7
|
|
8
8
|
def run
|
9
|
-
auth_id = 'Your SmartyStreets Auth ID here'
|
10
|
-
auth_token = 'Your SmartyStreets Auth Token here'
|
9
|
+
# auth_id = 'Your SmartyStreets Auth ID here'
|
10
|
+
# auth_token = 'Your SmartyStreets Auth Token here'
|
11
11
|
|
12
12
|
# We recommend storing your secret keys in environment variables instead---it's safer!
|
13
|
-
|
14
|
-
|
13
|
+
auth_id = ENV['SMARTY_AUTH_ID']
|
14
|
+
auth_token = ENV['SMARTY_AUTH_TOKEN']
|
15
15
|
|
16
16
|
credentials = SmartyStreets::StaticCredentials.new(auth_id, auth_token)
|
17
17
|
|
@@ -6,12 +6,12 @@ class USReverseGeoExample
|
|
6
6
|
Lookup = SmartyStreets::USReverseGeo::Lookup
|
7
7
|
|
8
8
|
def run
|
9
|
-
auth_id = 'Your SmartyStreets Auth ID here'
|
10
|
-
auth_token = 'Your SmartyStreets Auth Token here'
|
9
|
+
# auth_id = 'Your SmartyStreets Auth ID here'
|
10
|
+
# auth_token = 'Your SmartyStreets Auth Token here'
|
11
11
|
|
12
12
|
# We recommend storing your secret keys in environment variables instead---it's safer!
|
13
|
-
|
14
|
-
|
13
|
+
auth_id = ENV['SMARTY_AUTH_ID']
|
14
|
+
auth_token = ENV['SMARTY_AUTH_TOKEN']
|
15
15
|
|
16
16
|
credentials = SmartyStreets::StaticCredentials.new(auth_id, auth_token)
|
17
17
|
|
@@ -7,19 +7,19 @@ class USStreetMultipleAddressExample
|
|
7
7
|
Lookup = SmartyStreets::USStreet::Lookup
|
8
8
|
|
9
9
|
def run
|
10
|
-
auth_id = 'Your SmartyStreets Auth ID here'
|
11
|
-
auth_token = 'Your SmartyStreets Auth Token here'
|
10
|
+
# auth_id = 'Your SmartyStreets Auth ID here'
|
11
|
+
# auth_token = 'Your SmartyStreets Auth Token here'
|
12
12
|
|
13
13
|
# We recommend storing your secret keys in environment variables instead---it's safer!
|
14
|
-
|
15
|
-
|
14
|
+
auth_id = ENV['SMARTY_AUTH_ID']
|
15
|
+
auth_token = ENV['SMARTY_AUTH_TOKEN']
|
16
16
|
|
17
17
|
credentials = SmartyStreets::StaticCredentials.new(auth_id, auth_token)
|
18
18
|
|
19
19
|
# The appropriate license values to be used for your subscriptions
|
20
20
|
# can be found on the Subscriptions page of the account dashboard.
|
21
21
|
# https://www.smartystreets.com/docs/cloud/licensing
|
22
|
-
client = SmartyStreets::ClientBuilder.new(credentials).with_licenses(['us-
|
22
|
+
client = SmartyStreets::ClientBuilder.new(credentials).with_licenses(['us-core-cloud'])
|
23
23
|
.build_us_street_api_client
|
24
24
|
batch = SmartyStreets::Batch.new
|
25
25
|
|
@@ -4,19 +4,19 @@ require 'smartystreets_ruby_sdk/us_street/lookup'
|
|
4
4
|
|
5
5
|
class USStreetSingleAddressExample
|
6
6
|
def run
|
7
|
-
auth_id = 'Your SmartyStreets Auth ID here'
|
8
|
-
auth_token = 'Your SmartyStreets Auth Token here'
|
7
|
+
# auth_id = 'Your SmartyStreets Auth ID here'
|
8
|
+
# auth_token = 'Your SmartyStreets Auth Token here'
|
9
9
|
|
10
10
|
# We recommend storing your secret keys in environment variables instead---it's safer!
|
11
|
-
|
12
|
-
|
11
|
+
auth_id = ENV['SMARTY_AUTH_ID']
|
12
|
+
auth_token = ENV['SMARTY_AUTH_TOKEN']
|
13
13
|
|
14
14
|
credentials = SmartyStreets::StaticCredentials.new(auth_id, auth_token)
|
15
15
|
|
16
16
|
# The appropriate license values to be used for your subscriptions
|
17
17
|
# can be found on the Subscriptions page of the account dashboard.
|
18
18
|
# https://www.smartystreets.com/docs/cloud/licensing
|
19
|
-
client = SmartyStreets::ClientBuilder.new(credentials).with_licenses(['us-
|
19
|
+
client = SmartyStreets::ClientBuilder.new(credentials).with_licenses(['us-core-cloud'])
|
20
20
|
# with_proxy('localhost', 8080, 'proxyUser', 'proxyPassword'). # Uncomment this line to try it with a proxy
|
21
21
|
build_us_street_api_client
|
22
22
|
|
@@ -7,12 +7,12 @@ class USZipcodeMultipleLookupExample
|
|
7
7
|
Lookup = SmartyStreets::USZipcode::Lookup
|
8
8
|
|
9
9
|
def run
|
10
|
-
auth_id = 'Your SmartyStreets Auth ID here'
|
11
|
-
auth_token = 'Your SmartyStreets Auth Token here'
|
10
|
+
# auth_id = 'Your SmartyStreets Auth ID here'
|
11
|
+
# auth_token = 'Your SmartyStreets Auth Token here'
|
12
12
|
|
13
13
|
# We recommend storing your secret keys in environment variables instead---it's safer!
|
14
|
-
|
15
|
-
|
14
|
+
auth_id = ENV['SMARTY_AUTH_ID']
|
15
|
+
auth_token = ENV['SMARTY_AUTH_TOKEN']
|
16
16
|
|
17
17
|
credentials = SmartyStreets::StaticCredentials.new(auth_id, auth_token)
|
18
18
|
|
@@ -4,12 +4,12 @@ require 'smartystreets_ruby_sdk/us_zipcode/lookup'
|
|
4
4
|
|
5
5
|
class UsZipcodeSingleLookupExample
|
6
6
|
def run
|
7
|
-
auth_id = 'Your SmartyStreets Auth ID here'
|
8
|
-
auth_token = 'Your SmartyStreets Auth Token here'
|
7
|
+
# auth_id = 'Your SmartyStreets Auth ID here'
|
8
|
+
# auth_token = 'Your SmartyStreets Auth Token here'
|
9
9
|
|
10
10
|
# We recommend storing your secret keys in environment variables instead---it's safer!
|
11
|
-
|
12
|
-
|
11
|
+
auth_id = ENV['SMARTY_AUTH_ID']
|
12
|
+
auth_token = ENV['SMARTY_AUTH_TOKEN']
|
13
13
|
|
14
14
|
credentials = SmartyStreets::StaticCredentials.new(auth_id, auth_token)
|
15
15
|
|
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.
|
4
|
+
version: 5.14.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SmartyStreets SDK Team
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,18 +72,19 @@ dependencies:
|
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: 0.12.0
|
75
|
-
description:
|
75
|
+
description:
|
76
76
|
email:
|
77
77
|
- support@smartystreets.com
|
78
78
|
executables: []
|
79
79
|
extensions: []
|
80
80
|
extra_rdoc_files: []
|
81
81
|
files:
|
82
|
+
- ".github/workflows/gem-publish.yml"
|
82
83
|
- ".gitignore"
|
83
84
|
- CHANGELOG.md
|
84
85
|
- Dockerfile
|
85
86
|
- Gemfile
|
86
|
-
- LICENSE.
|
87
|
+
- LICENSE.md
|
87
88
|
- Makefile
|
88
89
|
- README.md
|
89
90
|
- Rakefile
|
@@ -178,7 +179,7 @@ homepage: https://github.com/smartystreets/smartystreets-ruby-sdk
|
|
178
179
|
licenses:
|
179
180
|
- Apache-2.0
|
180
181
|
metadata: {}
|
181
|
-
post_install_message:
|
182
|
+
post_install_message:
|
182
183
|
rdoc_options: []
|
183
184
|
require_paths:
|
184
185
|
- lib
|
@@ -193,8 +194,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
194
|
- !ruby/object:Gem::Version
|
194
195
|
version: '0'
|
195
196
|
requirements: []
|
196
|
-
rubygems_version: 3.
|
197
|
-
signing_key:
|
197
|
+
rubygems_version: 3.0.3.1
|
198
|
+
signing_key:
|
198
199
|
specification_version: 4
|
199
200
|
summary: An official library for the SmartyStreets APIs
|
200
201
|
test_files: []
|