tangolicious 0.1.1 → 0.1.2

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: 463a5efbf10d80f8e7f18f0a19922f6c40c5cf85
4
- data.tar.gz: aac137d00c44f2a9cb1569bd54da1221406dbd21
3
+ metadata.gz: cf9dfaba0c73ef04290137c8debd2d526a2f234f
4
+ data.tar.gz: e7c192516a6b7d732b7fe913f69dbdac0f0526cd
5
5
  SHA512:
6
- metadata.gz: 83ccbb758512cd5b2ec13a3fd700a8ada9a4d16fd90ce590488747377bab81ddf4a95283702c725b49c62ceca3979be86db8ca83a6bf4ded5c3d0fb589cd2469
7
- data.tar.gz: ad4cec1b27e120e80efcb65ca3dbdbf0b5dee3e08a52784c89c704bf6a6878eb5b0411b42fc1bd5431ea2552281fa2622fb47f29d6d1989ecad3fa5d83cf0af0
6
+ metadata.gz: 595c4b44af25f6487cf7fd01f135a1c81b08d0aec81dd44318cf2f8ad488ec323cccd89dcca4a3c7f95285e3578405065a75897c633e41cc48a25427e7b2ffd8
7
+ data.tar.gz: fd33d783ea327b3905b4ba4833ce4c12f4baf854f8a3c78d921c205d4999682576aad01c45166f11996387766afc8f811f72b32f7bca4ae6b4358746deea99ec
@@ -6,6 +6,7 @@ module Tangolicious
6
6
  class Forbidden < StandardError; end
7
7
  class NotFound < StandardError; end
8
8
  class UnprocessableEntity < StandardError; end
9
+ class InternalServiceError < StandardError; end
9
10
  class ServiceUnavailable < StandardError; end
10
11
  end
11
12
  end
@@ -38,6 +38,7 @@ module Tangolicious
38
38
  raise Exceptions::Forbidden.new(response) if response.fetch('httpCode', nil) == 403
39
39
  raise Exceptions::NotFound.new(response) if response.fetch('httpCode', nil) == 404
40
40
  raise Exceptions::UnprocessableEntity.new(response) if response.fetch('httpCode', nil) == 422
41
+ raise Exceptions::InternalServiceError.new(response) if response.fetch('httpCode', nil) == 500
41
42
  raise Exceptions::ServiceUnavailable.new(response) if response.fetch('httpCode', nil) == 503
42
43
  response
43
44
  end
@@ -1,3 +1,3 @@
1
1
  module Tangolicious
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tangolicious
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Davis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-04 00:00:00.000000000 Z
11
+ date: 2017-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler