address_verifier 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/lib/address_verifier.rb +2 -2
- data/lib/address_verifier/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cde414194b3d3c80d275a26918bd7f850503c16b
|
4
|
+
data.tar.gz: 5b459b6916551fb80cfe2a400998f8897faaf818
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 541783d7ac308d6fce8c46cc3fc91676ee1a47fcd784ab23b5a9032b80d0ddc5fadbdd3e46a496228c48f5c4a4da2c79a95d5c92dc3712b77d925ae7b2605c12
|
7
|
+
data.tar.gz: 930731fab471c15d5bbdb62511f18607daac9962c5399e7c86668cf154e563e3edbeee86f5f9718c77b019b19fd27a230a10e648b131ca480f553152b68b93f2
|
data/.gitignore
CHANGED
data/lib/address_verifier.rb
CHANGED
@@ -11,13 +11,13 @@ class AddressVerifier
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def get_suggestions(address)
|
14
|
-
HTTParty.get(suggestions_url(address))['results'].map do |r|
|
14
|
+
HTTParty.get(suggestions_url(address), timeout: 5)['results'].map do |r|
|
15
15
|
r['formatted_address']
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
19
|
def usps_verification(address)
|
20
|
-
HTTParty.get(usps_verification_url(usps_verification_xml(address)))
|
20
|
+
HTTParty.get(usps_verification_url(usps_verification_xml(address)), timeout: 5)
|
21
21
|
end
|
22
22
|
|
23
23
|
def verified?(address)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: address_verifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Jesuele
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|