frontapp 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/frontapp/error.rb +2 -0
- data/lib/frontapp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c84f037b7cc7663aee1d15e20998de2ba93ac6b9
|
4
|
+
data.tar.gz: '0587e127ce575fd3e15b710e89238dc9064baab4'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d93206614d9d0524e19e2322dd77457a39ed0682aad6da9f6e1ea12c4e9b860d2a56a916ee8fb731f72120e3f80af99ae569f845e8e59f3a4699bc88aa7fa50c
|
7
|
+
data.tar.gz: b5878450b98cd27e239f24748ed8efab4785bc9d57850cf7d36a35be792eeebdf93eb3c76087856faf41f7b34df91cc78ee181a2df79bd5b6f9e857a979aec5c
|
data/lib/frontapp/error.rb
CHANGED
@@ -6,6 +6,7 @@ module Frontapp
|
|
6
6
|
when 401 then UnauthorizedError
|
7
7
|
when 404 then NotFoundError
|
8
8
|
when 409 then ConflictError
|
9
|
+
when 429 then TooManyRequestsError
|
9
10
|
else self
|
10
11
|
end
|
11
12
|
error_class.new(response)
|
@@ -21,4 +22,5 @@ module Frontapp
|
|
21
22
|
class NotFoundError < Error; end
|
22
23
|
class ConflictError < Error; end
|
23
24
|
class UnauthorizedError < Error; end
|
25
|
+
class TooManyRequestsError < Error; end
|
24
26
|
end
|
data/lib/frontapp/version.rb
CHANGED