wordsmith-ruby-sdk 1.0.3 → 1.0.4

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: f9cf22832b7f45e15804321820a3d0ee122a246c
4
- data.tar.gz: 2f25df4737785656198385d76a1ef750f9dd8693
3
+ metadata.gz: cad1049114b8fdc5ecebdc42ca42b6ead6f99ff3
4
+ data.tar.gz: eb32c582cdf154bea8b5834f27303ea6c3509e63
5
5
  SHA512:
6
- metadata.gz: 43b6f9e096c609d3f216357872aaacc7a63992ab4e8430cb483bbdaa5d8e087272a2bda84568c5a445a22af143ee2269011bb244fa6f64b67e6fde5ec3e6062d
7
- data.tar.gz: 358649643caa4c4b15c6f88a5b7cdc4ac2096474179df23d672f38e43026ebf430caa41dff9ab4565ea1d8f1902a282acc10f74f48b35d8de81ecea1d3f45404
6
+ metadata.gz: aa18b488623a0767b4955e8652a25c102f59994165f78e17a9166cbaa0713d4526f2bc0225ab5681a923c8a18893e290d512f66df5f734c4d7633b55313eac1d
7
+ data.tar.gz: ee91e2cbb71f6f6e591d7a0c2dfd218e67bb3ce193c94f176b164bd75289ba4cae3342ec42f1ce9e6e584167b27ceb0e77be740e01854a541ff2c9399bf08b58
data/CHANGELOG.md CHANGED
@@ -1,7 +1,11 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
- ## [Unreleased](https://github.com/automatedinsightsinc/wordsmith-ruby-sdk/compare/v1.0.3...HEAD)
4
+ ## [Unreleased](https://github.com/automatedinsightsinc/wordsmith-ruby-sdk/compare/v1.0.4...HEAD)
5
+
6
+ ## [1.0.4](https://github.com/automatedinsightsinc/wordsmith-ruby-sdk/compare/v1.0.3...v1.0.4)
7
+ ##### Added
8
+ - Handled HTTP 429
5
9
 
6
10
  ## [1.0.3](https://github.com/automatedinsightsinc/wordsmith-ruby-sdk/compare/v1.0.2...v1.0.3)
7
11
  ##### Changed
@@ -1,6 +1,6 @@
1
- require 'wordsmith/version'
2
- require 'wordsmith/project'
3
- require 'wordsmith/template'
4
- require 'wordsmith/template_collection'
5
- require 'wordsmith/configuration'
6
- require 'wordsmith/client'
1
+ require_relative 'wordsmith/version'
2
+ require_relative 'wordsmith/project'
3
+ require_relative 'wordsmith/template'
4
+ require_relative 'wordsmith/template_collection'
5
+ require_relative 'wordsmith/configuration'
6
+ require_relative 'wordsmith/client'
@@ -45,6 +45,8 @@ module Wordsmith
45
45
  fail %Q(Bad Request: "#{body[:error]}")
46
46
  when 401
47
47
  fail 'API authorization error'
48
+ when 429
49
+ fail body[:error]
48
50
  else
49
51
  fail 'API error'
50
52
  end
@@ -1,3 +1,3 @@
1
1
  module Wordsmith
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.4'
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.3
4
+ version: 1.0.4
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-06-01 00:00:00.000000000 Z
11
+ date: 2016-10-26 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.5.1
159
+ rubygems_version: 2.4.6
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: Wordsmith SDK for Ruby