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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d6a56f6078b011ccffe1919572a6ad9f0aa875d4bb60c65266067d27348ef6ab
4
- data.tar.gz: b1a9663b9c869cf51a58d759051c66993ee6c56c39df6af124431e76446c7029
3
+ metadata.gz: da6c130c36f356fb652d296c3ecbfb480882d0c22684fdcb5733125b3c75f1d4
4
+ data.tar.gz: 53a50ecd69906be870330e0f5996676a3cf22828db0134da7873859edad84c01
5
5
  SHA512:
6
- metadata.gz: e3c83ac26946c0e56b455bc77c2c9f9856805d68c7b1246fd1228a5641e623a5418e2808664819b64ae46220b3f736ced1321470b6c457cbf5fbb7859c5e8b88
7
- data.tar.gz: 0caa9e11816c378eba543b90014f401bb541e84687683832d5d556e9ef122ab5c715870370fad539384dd35250929fcfa9f2b84384295e76eac776c9c00f1ea9
6
+ metadata.gz: c978e3d9bc24b5ea7f13bf04bdd32e55860a50dc82e7046abc938618d3a63dccfd3e94cc864e4a05231d794dd0f835a00f09b7f990da3c4632a0f9030fbce124
7
+ data.tar.gz: 4a6fc6fcc552a056407d4b0213180a593b88fd3f62e76e6a1e93cc0023b432588c10ad6263bb0cdae41bd4d5a001aae5a8837a058a736b917e9308437e3b0d4c
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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.1.6
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-10-16 00:00:00.000000000 Z
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