servactory 1.6.13 → 1.6.14
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a9d23fed4bbdc5728e707c47939ccfd2ed055c3bf052300908d09816ce580b7
|
4
|
+
data.tar.gz: e64b68886cb0e74706fddf989f1facedf37fd6020419f1d11f533229688b55f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b108bb63a08baef6a09e11aa85f93407ce857a309e6d7e816a089db79285df5020a216ee3c4a1bef5ab87dd82951058514d11fbcd6c6b7682e2d984170545856
|
7
|
+
data.tar.gz: 6ae5e3e1ab815608900749693d010397c584439f809e71aac8ccbf00007285b625bcbe258a45cec22c95f3ef340e5f1b0f202b1747d71cbe7902f3707a85ec06
|
data/lib/servactory/base.rb
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Servactory
|
4
|
+
module Info
|
5
|
+
module DSL
|
6
|
+
def self.included(base)
|
7
|
+
base.extend(ClassMethods)
|
8
|
+
end
|
9
|
+
|
10
|
+
module ClassMethods
|
11
|
+
def info
|
12
|
+
Servactory::Info::Result.new(
|
13
|
+
inputs: collection_of_inputs.names,
|
14
|
+
internals: collection_of_internals.names,
|
15
|
+
outputs: collection_of_outputs.names
|
16
|
+
)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Servactory
|
4
|
+
module Info
|
5
|
+
class Result
|
6
|
+
attr_reader :inputs,
|
7
|
+
:internals,
|
8
|
+
:outputs
|
9
|
+
|
10
|
+
def initialize(inputs:, internals:, outputs:)
|
11
|
+
@inputs = inputs
|
12
|
+
@internals = internals
|
13
|
+
@outputs = outputs
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
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: 1.6.
|
4
|
+
version: 1.6.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Sokolov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -205,6 +205,8 @@ files:
|
|
205
205
|
- lib/servactory/errors/input_error.rb
|
206
206
|
- lib/servactory/errors/internal_error.rb
|
207
207
|
- lib/servactory/errors/output_error.rb
|
208
|
+
- lib/servactory/info/dsl.rb
|
209
|
+
- lib/servactory/info/result.rb
|
208
210
|
- lib/servactory/inputs/collection.rb
|
209
211
|
- lib/servactory/inputs/define_input_conflict.rb
|
210
212
|
- lib/servactory/inputs/define_input_method.rb
|
@@ -249,8 +251,8 @@ files:
|
|
249
251
|
- lib/servactory/outputs/validations/type.rb
|
250
252
|
- lib/servactory/outputs/workbench.rb
|
251
253
|
- lib/servactory/result.rb
|
252
|
-
- lib/servactory/
|
253
|
-
- lib/servactory/
|
254
|
+
- lib/servactory/test_kit/fake_type.rb
|
255
|
+
- lib/servactory/test_kit/result.rb
|
254
256
|
- lib/servactory/utils.rb
|
255
257
|
- lib/servactory/version.rb
|
256
258
|
homepage: https://github.com/afuno/servactory
|