servactory 1.6.13 → 1.6.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8fb456eae63f08b03712474124ad24d2af28d8cf34501dcc442ff489d94152c0
4
- data.tar.gz: 250cc4f9058345bfe888034c163aa49720cb5e469fe7956093defce979f85c9b
3
+ metadata.gz: 8a9d23fed4bbdc5728e707c47939ccfd2ed055c3bf052300908d09816ce580b7
4
+ data.tar.gz: e64b68886cb0e74706fddf989f1facedf37fd6020419f1d11f533229688b55f1
5
5
  SHA512:
6
- metadata.gz: d8a3b0c171df80b8eab5941f7c6fdfd01a032689aab2b45ca91f4f6a1ef199f12e0cd998cf8a92380f1bceb76577c5d5ebe746ed1afa5ecd4c96c7c3815e39b9
7
- data.tar.gz: b2a0eefa30dfc7841a425bb9b7f3405bbbea0d93c1a2d9e0e6d6306eba376ab452becff2f7fe511f775593ea6679f0b24f442eb2353934ee3444868e5654fe37
6
+ metadata.gz: b108bb63a08baef6a09e11aa85f93407ce857a309e6d7e816a089db79285df5020a216ee3c4a1bef5ab87dd82951058514d11fbcd6c6b7682e2d984170545856
7
+ data.tar.gz: 6ae5e3e1ab815608900749693d010397c584439f809e71aac8ccbf00007285b625bcbe258a45cec22c95f3ef340e5f1b0f202b1747d71cbe7902f3707a85ec06
@@ -3,6 +3,7 @@
3
3
  module Servactory
4
4
  class Base
5
5
  include Configuration::DSL
6
+ include Info::DSL
6
7
  include Context::DSL
7
8
  include Inputs::DSL
8
9
  include Internals::DSL
@@ -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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Servactory
4
- module Test
4
+ module TestKit
5
5
  class FakeType; end
6
6
  end
7
7
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Servactory
4
- module Test
4
+ module TestKit
5
5
  class Result
6
6
  def initialize(**attributes)
7
7
  attributes.each_pair do |method_name, method_return|
@@ -4,7 +4,7 @@ module Servactory
4
4
  module VERSION
5
5
  MAJOR = 1
6
6
  MINOR = 6
7
- PATCH = 13
7
+ PATCH = 14
8
8
 
9
9
  STRING = [MAJOR, MINOR, PATCH].join(".")
10
10
  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: 1.6.13
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-14 00:00:00.000000000 Z
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/test/fake_type.rb
253
- - lib/servactory/test/result.rb
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