smarty_streets 0.0.5 → 0.0.6
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/README.md +3 -0
- data/lib/smarty_streets/configuration.rb +0 -7
- data/lib/smarty_streets/request.rb +6 -5
- data/lib/smarty_streets/version.rb +1 -1
- data/smarty_streets.gemspec +1 -0
- data/spec/spec_helper.rb +3 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11d5946b941913c47c2af5fa204e1385915258e6
|
4
|
+
data.tar.gz: ff51bd408b20d9e1fdcefd71af1f1993f7b1bb83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02d5aae1abf5f51fd17a6a54a7ea644608b6fd1a7e9885c6067d202ab10ea038cff9950c04c2d8ab58e36f625ea96addf68dfcc20d085d91681fd2db6c6893a0
|
7
|
+
data.tar.gz: 45ef820102f473ccc22349c02f5301c2ed3de116bc4de0c6dab4ab3a01b748ee21a1c17619937be2e7f6e9fb28d4617876e8afb743d77224ac6088f44eb56a0c
|
data/README.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
[](https://circleci.com/gh/russ/smarty_streets)
|
2
|
+
[](https://coveralls.io/r/russ/smarty_streets?branch=master)
|
3
|
+
|
1
4
|
# SmartyStreets
|
2
5
|
|
3
6
|
A ruby library to integrate with the SmartyStreets API.
|
@@ -16,12 +16,5 @@ module SmartyStreets
|
|
16
16
|
@api_url = 'api.smartystreets.com'
|
17
17
|
@candidates = 1
|
18
18
|
end
|
19
|
-
|
20
|
-
# Returns a hash of all configurable options
|
21
|
-
def to_hash
|
22
|
-
OPTIONS.inject({}) do |hash, option|
|
23
|
-
hash.merge(option.to_sym => send(option))
|
24
|
-
end
|
25
|
-
end
|
26
19
|
end
|
27
20
|
end
|
@@ -1,10 +1,11 @@
|
|
1
1
|
module SmartyStreets
|
2
2
|
class Request
|
3
|
-
class
|
4
|
-
class
|
5
|
-
class
|
6
|
-
class
|
7
|
-
class
|
3
|
+
class RequestError < StandardError; end
|
4
|
+
class InvalidCredentials < RequestError; end
|
5
|
+
class MalformedData < RequestError; end
|
6
|
+
class PaymentRequired < RequestError; end
|
7
|
+
class NoValidCandidates < RequestError; end
|
8
|
+
class RemoteServerError < RequestError; end
|
8
9
|
|
9
10
|
attr_accessor :location
|
10
11
|
|
data/smarty_streets.gemspec
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smarty_streets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Russ Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: coveralls
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
description: A ruby gem to integrate with http://www.smartystreets.com
|
70
84
|
email:
|
71
85
|
- russ@bashme.org
|
@@ -108,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
122
|
version: '0'
|
109
123
|
requirements: []
|
110
124
|
rubyforge_project:
|
111
|
-
rubygems_version: 2.
|
125
|
+
rubygems_version: 2.6.7
|
112
126
|
signing_key:
|
113
127
|
specification_version: 4
|
114
128
|
summary: A ruby gem to integrate with http://www.smartystreets.com
|