traitify 1.4.0 → 1.5.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: 261a556aad6aecf312c66a850910b0657aeb6c6b
4
- data.tar.gz: a8fa60ebf999db0fa01260751602b2eca4620fc2
3
+ metadata.gz: 7d1d8d46bde7ca60ee71d5c336dd2b4b6d2932fa
4
+ data.tar.gz: 5d014d112832e1afac06b52a5aaac1d39bab2933
5
5
  SHA512:
6
- metadata.gz: 445f43a6bb9f9f19276798fe23094bb63d3617c441961b96e82784ee31dd903de84b65c7b29445b4d5561f4d31d4aa53bb43f9a700aa77c5a37e4185518d160b
7
- data.tar.gz: bba888360a4fd1f8973323a6bdbfd3ce606fe105887426a1b852b3f9fc3c0defeef1bb785e1c3d5daad4497b1e2ab486ae4bb056f884e3eb7dcd8447c5ea4351
6
+ metadata.gz: 89e2e2b8bbd83736b23098380e410e657973acc246d5548d4a9c2cafb5f03cb24645f3999dfadd48c9aa1af8c9eae2d189bc74e1af422ea89678a34520c4a43b
7
+ data.tar.gz: 690079cdab2b80331c1b62ebd316046bb57f55d3aea46f2c8f67bad51ad748dbcfea96965f79b712e4af5d790d8e1188eb8d5ce3719ad6ab8ed7edb7853ec618
@@ -8,6 +8,7 @@ module Traitify
8
8
  when 401 then Traitify::Unauthorized
9
9
  when 404 then Traitify::NotFound
10
10
  when 422 then Traitify::UnprocessableEntity
11
+ when 500..505 then Traitify::ServerError
11
12
  end
12
13
  klass.new(response)
13
14
  end
@@ -36,4 +37,5 @@ module Traitify
36
37
  class Unauthorized < Error; end
37
38
  class NotFound < Error; end
38
39
  class UnprocessableEntity < Error; end
40
+ class ServerError < Error; end
39
41
  end
@@ -1,3 +1,3 @@
1
1
  module Traitify
2
- VERSION = "1.4.0"
2
+ VERSION = "1.5.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: traitify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Prats
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-10 00:00:00.000000000 Z
11
+ date: 2014-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie