smartystreets_api 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: 5eac32d0c64820a518428462dfc6230c8da99476
4
- data.tar.gz: a705c27f1258504bdfca8c7e67d3f5210791e1ba
3
+ metadata.gz: 0f25c553f3c60e7dc68b8d55783342d343304f28
4
+ data.tar.gz: 21fdcdc401a24a6001804159fa11f16703e9ee57
5
5
  SHA512:
6
- metadata.gz: 1d1c51600c5138adf770913fbc8570bd7be68d00c17176bc75941abe2f1a1b2a1e05f996e17c42ffe146ab70115f4f0bb32f649304eac91a36b5e2ba8c7dd240
7
- data.tar.gz: 749190b8c9e1c0188c069180917b6749802344adb06c07ed828dece3186243f5ca19f98e5c414bbe69e019b421585a29e53048f1a55cf8c7baf7bd7690d82bda
6
+ metadata.gz: 9e8929c3e343d5789170217bb63dd2bb7024c2f902d20d82d393ba0a8888639011c1e08c449d30a20b5bf04e894f07b9d6ba414bd71ecb81bd5819616ea3b646
7
+ data.tar.gz: 2e26a7e7623c47dbc95c20106335102ad5d7f026e2134932cbace55f77eac16bcd3fb080e99915ec3256a9b5565af663cecf19be0aa1b0f5c15e746400760f4c
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  /spec/credentials.yml
11
+ *.gem
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [0.1.2] - 2017-01-02
5
+ ### Changed
6
+ - Fix the comparison of the response HTTP code to pass the proper error message to the SevereApiError.
7
+
4
8
  ## [0.1.1] - 2016-12-21
5
9
  ### Changed
6
10
  - Raise a `SevereApiError` when an API exception happens
@@ -51,7 +51,7 @@ class SmartyStreetsApi::UsStreetAddress
51
51
  end
52
52
 
53
53
  def self.raise_error!(response_status_code)
54
- reason = case response_status_code
54
+ reason = case response_status_code.to_i
55
55
  when 401
56
56
  "Unauthorized"
57
57
  when 402
@@ -1,3 +1,3 @@
1
1
  module SmartyStreetsApi
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: smartystreets_api
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
  - florrain
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-21 00:00:00.000000000 Z
11
+ date: 2017-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler