kanal 0.5.0 → 0.5.1

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: 17fda67309b135e40e75787a8b2aba0908259bf25b55f3da4ad7170082090745
4
- data.tar.gz: 0f751de312d93913c2f81e3b69eaee000359fa01327c873c64a128e46d88286c
3
+ metadata.gz: 103821024c6f83e5b37cdbfd488fef5c1b33424604b1d089478b26f585a70f77
4
+ data.tar.gz: 05ef0a2d55f73134e7a84613e7f65ceb44c253aa1808e22ea7e5acc1e8907824
5
5
  SHA512:
6
- metadata.gz: 8523d9eeed98f12107d9550cdc6e823707df37a817ed055229fa7b4b45c12d99e2786e83e1fd3be74acf98e4c01d2312aab37fa86f52869b7583ad3885c1def2
7
- data.tar.gz: aa2272b6afcbf4f1dc655c7ed91e57df4caa0e046e4e420c0ddb5985d6cc7b470d05aa3bf372b656004aa5519e1071307d9de84ac1c4e0d6dfb4fe43a70ac6b4
6
+ metadata.gz: 0c04a428a1f6275b06e6b2d9a49bddfa33be0a2f1ca871b4242d26b98b8f01cca563e8c184a587ce84e3961773fb27055a330a6f3dd83c0b9f417452807a1528
7
+ data.tar.gz: efc4734c9c5e700b3a35cda943c86b6361e8be1d037d8e2390fe10cb95b24d826fe8f639bc376692eea4c6f77ea34683144b12bbdaaaf332d7497a907467b3b1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kanal (0.5.0)
4
+ kanal (0.5.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -105,4 +105,4 @@ DEPENDENCIES
105
105
  yard
106
106
 
107
107
  BUNDLED WITH
108
- 2.4.5
108
+ 2.4.9
@@ -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
- def initialize(parameter_registrator, core)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kanal
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.1"
5
5
  end
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.0
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-14 00:00:00.000000000 Z
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