bomberman 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,6 +5,8 @@ module Bomberman
5
5
 
6
6
  class Unauthorized < Error; end
7
7
 
8
+ class RateLimitExceeded < Error; end
9
+
8
10
  class Forbidden < Error; end
9
11
 
10
12
  class NotFound < Error; end
@@ -54,6 +54,8 @@ module Bomberman
54
54
  raise Bomberman::BadRequest
55
55
  elsif request.status == 401
56
56
  raise Bomberman::Unauthorized
57
+ elsif request.status == 403
58
+ raise Bomberman::RateLimitExceeded
57
59
  elsif request.status == 500
58
60
  raise Bomberman::InternalServerError
59
61
  end
@@ -1,3 +1,3 @@
1
1
  module Bomberman
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bomberman
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-11 00:00:00.000000000 Z
12
+ date: 2013-06-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday