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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f28fd5efe072ff551bec3d566d9f93694feca60
4
- data.tar.gz: e725a69dfcf5bb667ea5c71a260aabccce009a69
3
+ metadata.gz: cde414194b3d3c80d275a26918bd7f850503c16b
4
+ data.tar.gz: 5b459b6916551fb80cfe2a400998f8897faaf818
5
5
  SHA512:
6
- metadata.gz: 004076b0ebc425c9a3678a00fe649bbc75e53fccd94048ee85dc294a63433f2e3c4217d4dbb0a3e5c3ea4b46a6c7bfc915d0dbb8373140b5c340c7d92a9f76f7
7
- data.tar.gz: aef56d8b557a5e86d4eda00324302aacba4bce99e7e5c2358b0f5cb92700bb4f83746acbfdb8b52e491a79c5ece67371483242fab39450f544a7442caa155742
6
+ metadata.gz: 541783d7ac308d6fce8c46cc3fc91676ee1a47fcd784ab23b5a9032b80d0ddc5fadbdd3e46a496228c48f5c4a4da2c79a95d5c92dc3712b77d925ae7b2605c12
7
+ data.tar.gz: 930731fab471c15d5bbdb62511f18607daac9962c5399e7c86668cf154e563e3edbeee86f5f9718c77b019b19fd27a230a10e648b131ca480f553152b68b93f2
data/.gitignore CHANGED
@@ -7,5 +7,5 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
- secrets.txt
10
+ secrets.json
11
11
  *.gem
@@ -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)
@@ -1,3 +1,3 @@
1
1
  class AddressVerifier
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-01 00:00:00.000000000 Z
11
+ date: 2016-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty