botbase-module-skillmodel 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -0
- data/lib/botbase-module-skillmodel.rb +27 -0
- metadata +106 -0
- metadata.gz.sig +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 851b42cae946b4ec66d4428c30634b031abb3340
|
4
|
+
data.tar.gz: 6ce775d78e328b38650bdef4991de57cfa9d7d49
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 94fe99d45f96d243cc0af22a78970a5b89f623c14d23518500ed50af6bc271180c4d096d7a3f3792ee62237b4dfbb0d31a09b9ad36f3a9677be4f50fb0175031
|
7
|
+
data.tar.gz: 296ad5ad9ff86438eb2b705610b7aa24b82a7dc1ccfa188ae06902cb6fc0d3088c39895e0be50aba69740577ecbea1c81b6525b6eff7ca625ccf49b3e3b178df
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
��sAdq֞��f-G����Ic����J@ﳛ+ԝ�=夲NI���>��*ש:e+��8)��}}�o�K�C���#��������!uS�D����OA�r*��Ff n)K����y,ps,`�j�Q�J�>%\a,^��^��J{lm֍8P��z��*���8<d����V��ӢC]c�����˅����ZĢ�.BJ1D�v~���rň��C�P�FN�e�p�\.�.�4=���e�'� ������{DL�x
|
@@ -0,0 +1,27 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
# file: botbase-module-skillmodel.rb
|
4
|
+
|
5
|
+
# A Botbase module to interact with an HTTP service
|
6
|
+
# using the Alexa Skill protocol
|
7
|
+
|
8
|
+
require 'alexa_modelbuilder'
|
9
|
+
require 'alexa_skillsimulator'
|
10
|
+
|
11
|
+
|
12
|
+
class BotBaseModuleSkillModel
|
13
|
+
|
14
|
+
def initialize(file: nil, invocation: nil, userid: nil, callback: nil)
|
15
|
+
|
16
|
+
@invocation = invocation
|
17
|
+
amb = AlexaModelBuilder.new(File.read file)
|
18
|
+
@skillbot = AlexaSkillSimulator.new(amb.to_manifest, amb.to_model,
|
19
|
+
userid: userid)
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
def query(sender='user01', msg, mode: :voicechat, echo_node: 'node1')
|
24
|
+
@skillbot.ask 'ask ' + @invocation + ' ' + msg
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
metadata
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: botbase-module-skillmodel
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- James Robertson
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDXjCCAkagAwIBAgIBATANBgkqhkiG9w0BAQUFADAsMSowKAYDVQQDDCFnZW1t
|
14
|
+
YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMTgwNzI5MjAzMjMzWhcN
|
15
|
+
MTkwNzI5MjAzMjMzWjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
|
16
|
+
cnRzb24vREM9ZXUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQClNW4H
|
17
|
+
aOuiDkojricNuu182cYrKNouPfi677HQbLF4n/4a34yxj1PP9IwfV3ozrMQP8k6l
|
18
|
+
qdR2zL+2850yIAKsaCzOcAOnT0UpjmS4v5GJssFKDnDZV1jfZJ77ZyVMAkD92Nei
|
19
|
+
oo94pUetdn4YkoRe+UgcfAd6KCo+CVvgUmJSzUMaBr64t5d+EKItmdQrn6efvfHk
|
20
|
+
iaekKOp3+V1T2JpA20/sAPgPqk2/Er3t3TotXOh8tHw6teAqeEObcbjn56re7wC2
|
21
|
+
D4u2ljtLQ/SUoynpJ+zf+YZjPZXbDy4z/q2GBx/X86ci0jyyYZ1DELUj1CN2MPiV
|
22
|
+
HlJhQKJzNaCG1GfvAgMBAAGjgYowgYcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
|
23
|
+
HQYDVR0OBBYEFAzeG27B7kwcLDtzIe1wKxemJKxwMCYGA1UdEQQfMB2BG2dlbW1h
|
24
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTAmBgNVHRIEHzAdgRtnZW1tYXN0ZXJAamFt
|
25
|
+
ZXNyb2JlcnRzb24uZXUwDQYJKoZIhvcNAQEFBQADggEBACPLsKBEhKVAnA1j3ldD
|
26
|
+
wucQo2pSIkJ1MJtS2eV8PaezxEGLGsE8IOfNYZI8xepmp3IVW51cc0QiWZu0YqwR
|
27
|
+
rh9nf+Hz1MfSOc7w/H/yhyFTsPu1+qnQ1zp5BAwGYJ2mlxOc/ab8Rk/8RS0DnFwY
|
28
|
+
MAW20Uxeh7ifws+liysOzMZKog/3RKdpNfp9Pl9IfiB0pdexW6sUCMBTclZdv4Zv
|
29
|
+
/O+K6VY1dQ19ej5oxATKIrBaHLgimthq4H9NB+PBr7sgBS5bp3WXaOQitL4SVH1M
|
30
|
+
pDk5RECfpAaJIKRkbU8rsy+OkEVR0xHn9V0nf4Hrs3Z9MpcAvqaE+ZlpkgfWrt1f
|
31
|
+
p5c=
|
32
|
+
-----END CERTIFICATE-----
|
33
|
+
date: 2018-07-29 00:00:00.000000000 Z
|
34
|
+
dependencies:
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: alexa_modelbuilder
|
37
|
+
requirement: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0.4'
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: 0.4.0
|
45
|
+
type: :runtime
|
46
|
+
prerelease: false
|
47
|
+
version_requirements: !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
49
|
+
- - "~>"
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: '0.4'
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.4.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: alexa_skillsimulator
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.2'
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 0.2.3
|
65
|
+
type: :runtime
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - "~>"
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0.2'
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 0.2.3
|
75
|
+
description:
|
76
|
+
email: james@jamesrobertson.eu
|
77
|
+
executables: []
|
78
|
+
extensions: []
|
79
|
+
extra_rdoc_files: []
|
80
|
+
files:
|
81
|
+
- lib/botbase-module-skillmodel.rb
|
82
|
+
homepage: https://github.com/jrobertson/botbase-module-skillmodel
|
83
|
+
licenses:
|
84
|
+
- MIT
|
85
|
+
metadata: {}
|
86
|
+
post_install_message:
|
87
|
+
rdoc_options: []
|
88
|
+
require_paths:
|
89
|
+
- lib
|
90
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0'
|
100
|
+
requirements: []
|
101
|
+
rubyforge_project:
|
102
|
+
rubygems_version: 2.6.13
|
103
|
+
signing_key:
|
104
|
+
specification_version: 4
|
105
|
+
summary: A Botbase module to interact with an HTTP service using the Alexa Skill protocol.
|
106
|
+
test_files: []
|
metadata.gz.sig
ADDED
Binary file
|