botbase-module-conversation 0.1.5 → 0.1.6

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
  SHA1:
3
- metadata.gz: fad671012ac294ef9372a4f15e6b5859b543de3b
4
- data.tar.gz: ed2542629135cfeb2873b2fa26adf9315237f22f
3
+ metadata.gz: 4ce72018d314b75f92169c3cd17baa4bede58e81
4
+ data.tar.gz: 887751a222ebed2c805c49a97e131a5835780aad
5
5
  SHA512:
6
- metadata.gz: f64f8390d91cd5bbb19f1623978d17170172925a0d0fd20d4297b8276811161a096fb9a7cd597825ac55d08f63d9b2a9fdd959a568ebba0c0466731348e236a4
7
- data.tar.gz: '019f83049243cf13feb7509ef13942390700189e7fa1ad665ccd44db9f86d0a4c8f514340489df0836a81aeb4868535ff9cfe5781960430993b88e8a4d95a5cf'
6
+ metadata.gz: 1e2ffd853502f3e6ad58dccdc3a7918cfab08c38bd2f54578b0ca8a19cb596c36cae02b9476c34b67ae8cb0c643154ef6ceaa235d0ee76fb27b71f08e0d66055
7
+ data.tar.gz: f8eb1744b516152dbfbd9f268e099a9f1ac58bcc24ec73764a2d8f7c7bacc2a02321f914ef409b9bb6e9f39fe9f5ea92e926551fbb2d1e6507b0d0466eedf59a
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -12,9 +12,9 @@ require 'rexle-builder'
12
12
  class BotBaseModuleConversation
13
13
 
14
14
  def initialize(host: nil, package_src: nil,
15
- default_package: nil, default_job: nil)
16
-
15
+ default_package: nil, default_job: nil, callback: nil)
17
16
 
17
+ @bot = callback
18
18
  @rsc = RSC.new host, package_src
19
19
 
20
20
  a = run(default_package, default_job)
@@ -22,6 +22,7 @@ class BotBaseModuleConversation
22
22
  @doc = Rexle.new("<conversations/>")
23
23
  #puts 'adding phrases : ' + a.inspect
24
24
  add_phrases(a)
25
+
25
26
 
26
27
  end
27
28
 
@@ -33,6 +34,7 @@ class BotBaseModuleConversation
33
34
 
34
35
  if found then
35
36
 
37
+ notice 'botbase/debug: module-conversation queried, found ' + found[0]
36
38
  #puts 'found: ' +found.inspect
37
39
 
38
40
  package, job = found.last.split
@@ -84,8 +86,13 @@ class BotBaseModuleConversation
84
86
  answer
85
87
  end
86
88
 
89
+ def notice(msg)
90
+ @bot.debug msg if @bot
91
+ end
92
+
87
93
  def run(package, job, h={})
88
94
  puts 'package: ' + package.inspect
95
+ puts 'h:' + h.inspect
89
96
  @rsc.send(package.to_sym).method(job.to_sym).call(h)
90
97
  end
91
98
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: botbase-module-conversation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  aNO/RQYUa1Pqx9RMIGgZIeQPtuaxxfqQ6uiq/S5GWoIKIDOmES69g981bASbOtYs
32
32
  geN7Uzk3bTsKxA==
33
33
  -----END CERTIFICATE-----
34
- date: 2017-07-17 00:00:00.000000000 Z
34
+ date: 2017-10-14 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rsc
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  requirements: []
102
102
  rubyforge_project:
103
- rubygems_version: 2.6.8
103
+ rubygems_version: 2.6.13
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: A botbase module intended for holding a conversation between the user and
metadata.gz.sig CHANGED
Binary file