finix 0.9 → 0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/finix/error.rb +12 -0
- data/lib/finix/resources/resource.rb +1 -1
- data/lib/finix/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Yzg5Y2E4MmY3NzNhYzJmMjcwNGNmOTdhOTk5ZTA5NzFkMjVkYTE5Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTgyMjk3ZDA5NGU2OGYyMDFjODc3YzlkMWM0ODFiOTBlNGYyOWQwNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDg5Yzk1ZGYzYTU0YWFlMTZhNDE2MzFmZjYzYmExZWQ4NzI2YWZjYTYyNTY4
|
10
|
+
NDgwNTBjMDEwOWM3M2IwNDI1MTZiNWZjNjYwYjZkODgwMWYwNDM4ZjFiNWRl
|
11
|
+
OTlmM2U0NGNhYTY2N2YwMzA4OTE1N2NlZWJkN2RlYmNhNDQ3MjU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTVmZDQ1MzNlNWE4N2Y2Mjc0OWNlODUyMTdjNDYxN2I3MDE4YTViMmYzYzVk
|
14
|
+
ZTE0ZjJjZjVkN2E5YWZiMmU5ODllNzFiZjE2MTZmMzEzMGIxOTUwMTM2NGI5
|
15
|
+
M2UzMjVkZmRjZTI5MjY3MDkxMDUxY2YzMzdjMjYyNWNiN2NjY2Y=
|
data/lib/finix/error.rb
CHANGED
@@ -13,6 +13,10 @@ module Finix
|
|
13
13
|
def to_s
|
14
14
|
"#{@errors}"
|
15
15
|
end
|
16
|
+
|
17
|
+
def inspect
|
18
|
+
to_s
|
19
|
+
end
|
16
20
|
end
|
17
21
|
|
18
22
|
class ResourceError
|
@@ -22,6 +26,14 @@ module Finix
|
|
22
26
|
@attributes = {}
|
23
27
|
@attributes = @attributes.merge error
|
24
28
|
end
|
29
|
+
|
30
|
+
def to_s
|
31
|
+
"#{self.class.name.split('::').last || ''} #{@attributes}"
|
32
|
+
end
|
33
|
+
|
34
|
+
def inspect
|
35
|
+
to_s
|
36
|
+
end
|
25
37
|
end
|
26
38
|
|
27
39
|
class BadRequest < ResourceErrors; end
|
data/lib/finix/version.rb
CHANGED