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 +4 -4
- data/lib/traitify/error.rb +2 -0
- data/lib/traitify/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d1d8d46bde7ca60ee71d5c336dd2b4b6d2932fa
|
4
|
+
data.tar.gz: 5d014d112832e1afac06b52a5aaac1d39bab2933
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89e2e2b8bbd83736b23098380e410e657973acc246d5548d4a9c2cafb5f03cb24645f3999dfadd48c9aa1af8c9eae2d189bc74e1af422ea89678a34520c4a43b
|
7
|
+
data.tar.gz: 690079cdab2b80331c1b62ebd316046bb57f55d3aea46f2c8f67bad51ad748dbcfea96965f79b712e4af5d790d8e1188eb8d5ce3719ad6ab8ed7edb7853ec618
|
data/lib/traitify/error.rb
CHANGED
@@ -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
|
data/lib/traitify/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2014-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hashie
|