quovo 1.0.13 → 1.0.14

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: 6d648f89d25e118e9cc843ba390f3ccf5a647b63
4
- data.tar.gz: 84dc860e08e589bbf2e267cbecd483732382a56c
3
+ metadata.gz: 9a67edb83e29d9354d94caced04c71a375ce7c13
4
+ data.tar.gz: 796cfdc0d81e517a7feccadf13269887d3de5d36
5
5
  SHA512:
6
- metadata.gz: 1d0c42bf7b9df03b639c2d0d62e7f654da4998ea6396800a0fe283ef8881faf918f5db89a94739fc51f5846c1ff14c248628fba8e8cba5756d5b226e0a5b3fc1
7
- data.tar.gz: 12d1dc3f25444f7768ed0139836650a6beef698b3a5396ea09eb44df38570aa5350d38940410af64b79f6426dd04d0148c1de4f1c50f08ac99234dcbef420c6a
6
+ metadata.gz: a20f18a6187dbd683faed7e15a4a330a29ccb556e84078b380ad15a44fd7d792c4f244a4e8db798aa99b7ac64b3482a48e712cddaa61be6cbff9393175db3ad5
7
+ data.tar.gz: 1648a3364c5a41844dce16646a5a1d03832f9a25903e31d3d9cc4307353ea478c1108626dfe0d5da7e40d171b9e5b17db705bf28896c8fd6198389ece671a181
data/Gemfile CHANGED
@@ -4,7 +4,7 @@ gemspec
4
4
 
5
5
  gem 'bundler'
6
6
  gem 'rake'
7
- gem 'minitest', require: false
8
- gem 'coveralls', require: false
9
- gem 'rubocop', require: false
10
- gem 'pry', require: false
7
+ gem 'minitest', require: false
8
+ gem 'coveralls', require: false
9
+ gem 'rubocop', '=0.57', require: false
10
+ gem 'pry', require: false
data/lib/quovo/errors.rb CHANGED
@@ -4,5 +4,6 @@ module Quovo
4
4
  HttpError = Class.new(QuovoError)
5
5
  ForbiddenError = Class.new(HttpError)
6
6
  NotFoundError = Class.new(HttpError)
7
+ RateLimitError = Class.new(HttpError)
7
8
  StubNotFoundError = Class.new(StandardError)
8
9
  end
data/lib/quovo/request.rb CHANGED
@@ -65,6 +65,7 @@ module Quovo
65
65
  body = response.body
66
66
  raise Quovo::NotFoundError, body if status_code =~ /404/
67
67
  raise Quovo::ForbiddenError, body if status_code =~ /403/
68
+ raise Quovo::RateLimitError, body if status_code =~ /429/
68
69
  raise Quovo::HttpError, body if status_code =~ /^[45]/
69
70
  payload = format == :json ? JSON.parse(body) : body
70
71
  [status_code, payload]
data/lib/quovo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Quovo
2
- VERSION = '1.0.13'.freeze
2
+ VERSION = '1.0.14'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quovo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.13
4
+ version: 1.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Gorkunov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-04-26 00:00:00.000000000 Z
12
+ date: 2018-11-06 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Quovo RESTful API client, configurable, thread-safe and well-tested
15
15
  email: