alexa_skillresponse 0.1.6 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/alexa_skillresponse.rb +26 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da6c130c36f356fb652d296c3ecbfb480882d0c22684fdcb5733125b3c75f1d4
|
4
|
+
data.tar.gz: 53a50ecd69906be870330e0f5996676a3cf22828db0134da7873859edad84c01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c978e3d9bc24b5ea7f13bf04bdd32e55860a50dc82e7046abc938618d3a63dccfd3e94cc864e4a05231d794dd0f835a00f09b7f990da3c4632a0f9030fbce124
|
7
|
+
data.tar.gz: 4a6fc6fcc552a056407d4b0213180a593b88fd3f62e76e6a1e93cc0023b432588c10ad6263bb0cdae41bd4d5a001aae5a8837a058a736b917e9308437e3b0d4c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/alexa_skillresponse.rb
CHANGED
@@ -141,3 +141,29 @@ class AlexaSkillResponse
|
|
141
141
|
end
|
142
142
|
|
143
143
|
end
|
144
|
+
|
145
|
+
class AlexaSkillResponseCollection
|
146
|
+
|
147
|
+
def initialize(skills={}, debug: false, rsc: nil,
|
148
|
+
whitelist: {users: nil, devices: nil})
|
149
|
+
|
150
|
+
@debug = debug
|
151
|
+
@skills = skills.inject({}) do |r, x|
|
152
|
+
|
153
|
+
package_name, rsf_package = x
|
154
|
+
asr = AlexaSkillResponse.new(rsf_package, debug: debug, rsc: rsc,
|
155
|
+
whitelist: whitelist)
|
156
|
+
r.merge(package_name => asr)
|
157
|
+
|
158
|
+
end
|
159
|
+
|
160
|
+
end
|
161
|
+
|
162
|
+
def run(h)
|
163
|
+
|
164
|
+
puts '@skills: ' + @skills.inspect if @debug
|
165
|
+
@skills[h[:skill]].run h
|
166
|
+
|
167
|
+
end
|
168
|
+
|
169
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alexa_skillresponse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
obt/CzvPP/5wTAZ3kG4fIkKjG+uZex3kzilp36IiV7xqRl9MoTwoMzicLeFTp6rb
|
36
36
|
+GNpSLfh598icuXMC/UULHGE
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2019-
|
38
|
+
date: 2019-12-08 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: rscript
|
metadata.gz.sig
CHANGED
Binary file
|