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 +4 -4
- data/lib/closeio/error.rb +3 -0
- data/lib/closeio/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4eac0813d8d95df8447595cf2fa7419997dd6011
|
4
|
+
data.tar.gz: 5d8a02d6d60b615bba879c945c5e04fc24face1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ab93206853f58036103a62c8224c18f391c7e072b72c21f1bd5f27dc712f2449f1f52c13a7a98bf9e5462dc732d7182ac4ef79114b4c21b79e1b4b4d803fb16
|
7
|
+
data.tar.gz: a80aa188cf1a12d2e2f3977381292d48cd551f00dcd2aa8c4dac0c269ad3f1febdfd47f2321d436e7d4be53f342d61c92df85f5bea01883bc8265b5725edc3e9
|
data/lib/closeio/error.rb
CHANGED
@@ -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
|
data/lib/closeio/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|