kanal 0.5.0 → 0.5.1
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 +4 -4
- data/Gemfile.lock +2 -2
- data/lib/kanal/core/helpers/response_execution_block.rb +2 -2
- data/lib/kanal/core/output/output.rb +7 -2
- data/lib/kanal/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 103821024c6f83e5b37cdbfd488fef5c1b33424604b1d089478b26f585a70f77
|
|
4
|
+
data.tar.gz: 05ef0a2d55f73134e7a84613e7f65ceb44c253aa1808e22ea7e5acc1e8907824
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c04a428a1f6275b06e6b2d9a49bddfa33be0a2f1ca871b4242d26b98b8f01cca563e8c184a587ce84e3961773fb27055a330a6f3dd83c0b9f417452807a1528
|
|
7
|
+
data.tar.gz: efc4734c9c5e700b3a35cda943c86b6361e8be1d037d8e2390fe10cb95b24d826fe8f639bc376692eea4c6f77ea34683144b12bbdaaaf332d7497a907467b3b1
|
data/Gemfile.lock
CHANGED
|
@@ -38,7 +38,7 @@ module Kanal
|
|
|
38
38
|
def construct_output(core)
|
|
39
39
|
logger.info "Constructing output for input ##{input.__id__}"
|
|
40
40
|
|
|
41
|
-
output = Output::Output.new core.output_parameter_registrator, core
|
|
41
|
+
output = Output::Output.new core.output_parameter_registrator, @input, core
|
|
42
42
|
|
|
43
43
|
begin
|
|
44
44
|
core.hooks.call :output_just_created, input, output
|
|
@@ -47,7 +47,7 @@ module Kanal
|
|
|
47
47
|
rescue => e
|
|
48
48
|
logger.error "Failed to construct output for input ##{input.__id__}. Error: '#{e}'"
|
|
49
49
|
|
|
50
|
-
output = Output::Output.new core.output_parameter_registrator, core
|
|
50
|
+
output = Output::Output.new core.output_parameter_registrator, @input, core
|
|
51
51
|
|
|
52
52
|
error_node = @error_node || @default_error_node
|
|
53
53
|
|
|
@@ -12,10 +12,15 @@ module Kanal
|
|
|
12
12
|
include Helpers
|
|
13
13
|
include Helpers::ParameterFinderWithMethodMissingMixin
|
|
14
14
|
|
|
15
|
-
attr_reader :core
|
|
15
|
+
attr_reader :input, :core
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
#
|
|
18
|
+
# @param parameter_registrator [Kanal::Core::Helpers::ParameterRegistrator]
|
|
19
|
+
# @param input [Kanal::Core::Input::Input] input required for dsl in respond blocks to have access to input
|
|
20
|
+
# @param core [Kanal::Core::Core] core required also for dsl to access services or other information about core
|
|
21
|
+
def initialize(parameter_registrator, input, core)
|
|
18
22
|
@core = core
|
|
23
|
+
@input = input
|
|
19
24
|
@parameter_bag = ParameterBagWithRegistrator.new parameter_registrator
|
|
20
25
|
end
|
|
21
26
|
|
data/lib/kanal/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kanal
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- idchlife
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-04-
|
|
11
|
+
date: 2023-04-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Thanks to the core library, ecosystem of Kanal tools can be extendted
|
|
14
14
|
to use with input-output bot-like behaviour, with routing
|