smarty_streets 0.0.5 → 0.0.6

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: 9fb45df98edd73458869a01267047b0c2b3e2eed
4
- data.tar.gz: a81d779b4ab224dee181d51debe0bf66c1e4858a
3
+ metadata.gz: 11d5946b941913c47c2af5fa204e1385915258e6
4
+ data.tar.gz: ff51bd408b20d9e1fdcefd71af1f1993f7b1bb83
5
5
  SHA512:
6
- metadata.gz: d64a33f0238574cd2290b3efafce85d4d6a288bb21433bc4a65a401ad79706b016293287617d92c738331765f0a89453a714d1600ae4defc52ed761b73b3168e
7
- data.tar.gz: 0e6beca70f8f7a571118df732167ebde5050799cb866f9ee2e9e30a963e5c35fe440a24eecfe76fc3173f06f73860c575b58ecc10525905c053b2c312d3f30e1
6
+ metadata.gz: 02d5aae1abf5f51fd17a6a54a7ea644608b6fd1a7e9885c6067d202ab10ea038cff9950c04c2d8ab58e36f625ea96addf68dfcc20d085d91681fd2db6c6893a0
7
+ data.tar.gz: 45ef820102f473ccc22349c02f5301c2ed3de116bc4de0c6dab4ab3a01b748ee21a1c17619937be2e7f6e9fb28d4617876e8afb743d77224ac6088f44eb56a0c
data/README.md CHANGED
@@ -1,3 +1,6 @@
1
+ [![Circle CI](https://circleci.com/gh/russ/smarty_streets.svg?style=svg)](https://circleci.com/gh/russ/smarty_streets)
2
+ [![Coverage Status](https://coveralls.io/repos/russ/smarty_streets/badge.svg?branch=master)](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 InvalidCredentials < Exception; end
4
- class MalformedData < Exception; end
5
- class PaymentRequired < Exception; end
6
- class NoValidCandidates < Exception; end
7
- class RemoteServerError < Exception; end
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
 
@@ -1,3 +1,3 @@
1
1
  module SmartyStreets
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
@@ -23,4 +23,5 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency "bundler", "~> 1.3"
24
24
  spec.add_development_dependency "rake"
25
25
  spec.add_development_dependency "rspec"
26
+ spec.add_development_dependency "coveralls"
26
27
  end
@@ -1,6 +1,9 @@
1
1
  $LOAD_PATH.unshift(File.dirname(__FILE__))
2
2
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
3
 
4
+ require 'coveralls'
5
+ Coveralls.wear!
6
+
4
7
  require 'smarty_streets'
5
8
  require 'rspec'
6
9
 
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.5
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: 2015-04-03 00:00:00.000000000 Z
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.4.5
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