servactory 2.4.2 → 2.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/servactory/result.rb +13 -1
- data/lib/servactory/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 326823cbdccc9f0f3dfca48c5b2ddbf518d50a713c45280b19da21ddf4483907
|
4
|
+
data.tar.gz: ebf05e0ebdd4b9941809137d3f1e092ac72560fc199689d91713c253edcb3cd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b99933c23fd601a8e5164a425695799b94648da7ba02232a676938f00466ce8bc60ecc59db4257f3d9e1b60ba98dbabb3f021bfbff263c085fe7c800c0b47976
|
7
|
+
data.tar.gz: db16a9b4bbdfcfa4fdd11c6eabf8ae45468c8989d34ddc6a268df17e29e68878c5be9db72fda4a5e07529d2a6ccd3a9e2a1a2eb73b60389e9bd9fd637b894a56
|
data/lib/servactory/result.rb
CHANGED
@@ -9,6 +9,18 @@ module Servactory
|
|
9
9
|
define_singleton_method(key) { value }
|
10
10
|
end
|
11
11
|
end
|
12
|
+
|
13
|
+
def inspect
|
14
|
+
"#<#{self.class.name} #{draw_result}>"
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
def draw_result
|
20
|
+
methods(false).sort.map do |method_name|
|
21
|
+
"@#{method_name}=#{send(method_name)}"
|
22
|
+
end.join(", ")
|
23
|
+
end
|
12
24
|
end
|
13
25
|
|
14
26
|
private_constant :Outputs
|
@@ -39,7 +51,7 @@ module Servactory
|
|
39
51
|
end
|
40
52
|
|
41
53
|
def on_failure(type = :all)
|
42
|
-
yield(exception: @exception) if failure? && [:all, @exception&.type].include?(type)
|
54
|
+
yield(outputs: outputs, exception: @exception) if failure? && [:all, @exception&.type].include?(type)
|
43
55
|
|
44
56
|
self
|
45
57
|
end
|
data/lib/servactory/version.rb
CHANGED