wordsmith-ruby-sdk 1.0.4 → 1.0.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cad1049114b8fdc5ecebdc42ca42b6ead6f99ff3
4
- data.tar.gz: eb32c582cdf154bea8b5834f27303ea6c3509e63
3
+ metadata.gz: e04d2f0401f1753648c5cff6a9bcf95d4c712eba
4
+ data.tar.gz: 5142657050d39066695ee10c2ad8453c961ae22f
5
5
  SHA512:
6
- metadata.gz: aa18b488623a0767b4955e8652a25c102f59994165f78e17a9166cbaa0713d4526f2bc0225ab5681a923c8a18893e290d512f66df5f734c4d7633b55313eac1d
7
- data.tar.gz: ee91e2cbb71f6f6e591d7a0c2dfd218e67bb3ce193c94f176b164bd75289ba4cae3342ec42f1ce9e6e584167b27ceb0e77be740e01854a541ff2c9399bf08b58
6
+ metadata.gz: bf191499ee860d310551d10be52aa6c345f6d99a86a79d616605078309cc709f1af1fe5d303bbbfd1d2c1b53aa1d8b4265bd7ed0773d78411ba007362e78e063
7
+ data.tar.gz: 6601d1f7dd3b14d310b5d27afa96ef8eda5966b05f04b440a5e98cb4e9534c44998ea97463279fc0621aaa6a6253f6858beba3526703c1433ee89f5eaaee2ef5
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. This projec
3
3
 
4
4
  ## [Unreleased](https://github.com/automatedinsightsinc/wordsmith-ruby-sdk/compare/v1.0.4...HEAD)
5
5
 
6
+ ## [1.0.5](https://github.com/automatedinsightsinc/wordsmith-ruby-sdk/compare/v1.0.4...v1.0.5)
7
+ ##### Changed
8
+ - Return :errors from Wordsmith when HTTP response code is 400
9
+
6
10
  ## [1.0.4](https://github.com/automatedinsightsinc/wordsmith-ruby-sdk/compare/v1.0.3...v1.0.4)
7
11
  ##### Added
8
12
  - Handled HTTP 429
@@ -42,7 +42,7 @@ module Wordsmith
42
42
  when 200, 201
43
43
  return body[:data]
44
44
  when 400
45
- fail %Q(Bad Request: "#{body[:error]}")
45
+ fail %Q(Bad Request: "#{body[:errors]}")
46
46
  when 401
47
47
  fail 'API authorization error'
48
48
  when 429
@@ -1,3 +1,3 @@
1
1
  module Wordsmith
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wordsmith-ruby-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Tillery
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-26 00:00:00.000000000 Z
11
+ date: 2016-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  version: '0'
157
157
  requirements: []
158
158
  rubyforge_project:
159
- rubygems_version: 2.4.6
159
+ rubygems_version: 2.6.4
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: Wordsmith SDK for Ruby