servactory 2.2.0.rc1 → 2.2.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/servactory/configuration/factory.rb +8 -0
- data/lib/servactory/context/workspace.rb +1 -1
- data/lib/servactory/result.rb +1 -4
- data/lib/servactory/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5277367d01d5c23db3c801f825d1712c09985c5c46f4776154dfbcf5b1f3a39
|
4
|
+
data.tar.gz: caf9a6aee71b1aad8fb6864891e2fff8d10343a60dda587751f1e1f84de6f219
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '018e0d467b3ac2a2dd76937de6c1048622038d2f80381b28672ddeb9b47e575920d0704a8b6b0dd73c4ec30c76acca72bad7da55b2c052614f7db94b36299b5c'
|
7
|
+
data.tar.gz: 3e4b1ad12e8f69068ed578330ce6bbee417400b40b042f5ae35245ca14c5e257a7330ccfceb475932833af510fcef3c0534bd22b90d6ae980cf55dd7ae939157
|
@@ -35,6 +35,14 @@ module Servactory
|
|
35
35
|
@config.input_option_helpers.merge(input_option_helpers)
|
36
36
|
end
|
37
37
|
|
38
|
+
def internal_option_helpers(internal_option_helpers)
|
39
|
+
@config.internal_option_helpers.merge(internal_option_helpers)
|
40
|
+
end
|
41
|
+
|
42
|
+
def output_option_helpers(output_option_helpers)
|
43
|
+
@config.output_option_helpers.merge(output_option_helpers)
|
44
|
+
end
|
45
|
+
|
38
46
|
def action_aliases(action_aliases)
|
39
47
|
@config.action_aliases.merge(action_aliases)
|
40
48
|
end
|
@@ -55,7 +55,7 @@ module Servactory
|
|
55
55
|
end
|
56
56
|
|
57
57
|
def fail_result!(service_result)
|
58
|
-
fail!(message: service_result.error.message, meta: service_result.error.meta)
|
58
|
+
fail!(service_result.error.type, message: service_result.error.message, meta: service_result.error.meta)
|
59
59
|
end
|
60
60
|
|
61
61
|
private
|
data/lib/servactory/result.rb
CHANGED
@@ -61,10 +61,7 @@ module Servactory
|
|
61
61
|
define_singleton_method(:failure?) { false }
|
62
62
|
|
63
63
|
outputs.methods(false).each do |method_name|
|
64
|
-
|
65
|
-
|
66
|
-
define_singleton_method(:"#{method_name}?") { Servactory::Utils.query_attribute(method_value) }
|
67
|
-
define_singleton_method(method_name) { method_value }
|
64
|
+
define_singleton_method(method_name) { outputs.send(method_name) }
|
68
65
|
end
|
69
66
|
|
70
67
|
self
|
data/lib/servactory/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: servactory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.0.
|
4
|
+
version: 2.2.0.rc3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Sokolov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -72,6 +72,20 @@ dependencies:
|
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '2.5'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: async
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '1.31'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '1.31'
|
75
89
|
- !ruby/object:Gem::Dependency
|
76
90
|
name: pry
|
77
91
|
requirement: !ruby/object:Gem::Requirement
|