closeio 3.3.0 → 3.4.0

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: 2ed902a8afb9b95062032fd6dbef85867c7d5632
4
- data.tar.gz: 4a6dda798210585d0ffb93cafd3a603d71882029
3
+ metadata.gz: 4eac0813d8d95df8447595cf2fa7419997dd6011
4
+ data.tar.gz: 5d8a02d6d60b615bba879c945c5e04fc24face1d
5
5
  SHA512:
6
- metadata.gz: f97ced77634929a62a2965285bb5a54b5a0df97172c1ea0f595e6eba45a481aeba1ca60b0f6b61632f184753978ef6f48103204e8f536c00ee9af15bde639d55
7
- data.tar.gz: 8106fbbe64141b0315f355e8fa73f1815659ac0f2b5be0e674c1cc346bb7ac2707631ef04780df89c858083407a56492202a1bdbb085da3c14ed59e08ee2bd6a
6
+ metadata.gz: 0ab93206853f58036103a62c8224c18f391c7e072b72c21f1bd5f27dc712f2449f1f52c13a7a98bf9e5462dc732d7182ac4ef79114b4c21b79e1b4b4d803fb16
7
+ data.tar.gz: a80aa188cf1a12d2e2f3977381292d48cd551f00dcd2aa8c4dac0c269ad3f1febdfd47f2321d436e7d4be53f342d61c92df85f5bea01883bc8265b5725edc3e9
@@ -3,6 +3,7 @@ module Closeio
3
3
  class NotAuthorized < Error; end
4
4
  class NotFound < Error; end
5
5
  class GatewayTimeout < Error; end
6
+ class TooManyRequests < Error; end
6
7
  end
7
8
 
8
9
  require 'faraday'
@@ -15,6 +16,8 @@ module FaradayMiddleware
15
16
  raise Closeio::NotAuthorized, env.body
16
17
  when 404
17
18
  raise Closeio::NotFound, env.body
19
+ when 429
20
+ raise Closeio::TooManyRequests, env.body
18
21
  when 504
19
22
  raise Closeio::GatewayTimeout, env.body
20
23
  when ERROR_STATUSES
@@ -1,3 +1,3 @@
1
1
  module Closeio
2
- VERSION = '3.3.0'.freeze
2
+ VERSION = '3.4.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: closeio
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Brooks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-18 00:00:00.000000000 Z
11
+ date: 2018-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  version: '0'
183
183
  requirements: []
184
184
  rubyforge_project:
185
- rubygems_version: 2.6.13
185
+ rubygems_version: 2.4.8
186
186
  signing_key:
187
187
  specification_version: 4
188
188
  summary: A Ruby wrapper for the CloseIO API