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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c12708849de24be4c1dc728185784afde60fa4cddad681d52d591561b4acacd
4
- data.tar.gz: d1d5d7334b5e6b1ecc7f92b526faa60f67521fc73a3f33ab4d30f8b2e2b94f5c
3
+ metadata.gz: e5277367d01d5c23db3c801f825d1712c09985c5c46f4776154dfbcf5b1f3a39
4
+ data.tar.gz: caf9a6aee71b1aad8fb6864891e2fff8d10343a60dda587751f1e1f84de6f219
5
5
  SHA512:
6
- metadata.gz: ccf9a3ae3d9a1d9336ff447018c5aa17dc62348a19b37184d18296ca2eb03174fe90c37ff30d85d70ac31236f4efc8903e594afcd87f5b0ddbd10b188b8c75d7
7
- data.tar.gz: 0fac6ae21c307e87ce9b022c6e0c140162d8c8536325586df72022eb72e8545516c4a988224b554b9bc0af4a89895b796848614572ad42429f323c84c45b19a2
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
@@ -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
- method_value = outputs.send(method_name)
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
@@ -5,7 +5,7 @@ module Servactory
5
5
  MAJOR = 2
6
6
  MINOR = 2
7
7
  PATCH = 0
8
- PRE = "rc1"
8
+ PRE = "rc3"
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join(".")
11
11
  end
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.rc1
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-19 00:00:00.000000000 Z
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