askio 0.1.1 → 0.2.0

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
  SHA256:
3
- metadata.gz: d6ddd0fb1be8c2d8db722be5c1169ac6bc14e2dbb067615271e6356044a46ce2
4
- data.tar.gz: 8cc232e680255d1e23e675f423bff1b9e28c7e5f270a3080e809e58ac2c97048
3
+ metadata.gz: 1bf6a2799c498fec76dcf619ef5eeb16869e749cdf0da71eee54316b8eb848e8
4
+ data.tar.gz: ab89e31dfeec400d09ba58eaf617ac295877bfa8ea23d11b26134e137bc2effa
5
5
  SHA512:
6
- metadata.gz: '0924b421ec50ebe7c20ab842f3f6d604327a94b8a53ddb779f7b4737e044c6b909b214d105deefff96341157327187e8e597d584dc4e28ce8a59799e639796a7'
7
- data.tar.gz: 0dd1d5d3244583aa3a5c1e58ca042e8e917f70bd6098978e99e5edca5d56e4e2414e5faeb986ce42f522d8415bdb40c610c9968e9074a088c63eb3e697360c06
6
+ metadata.gz: 97348bb3d2b25463738b39e0d9ef0dbf1634c74498e5104f8c1dcd696e23b6c66d41599f1d2610c214f3a463ec538f6ecb928e5667ec2bb0523035ce040d4553
7
+ data.tar.gz: adf919d1c10a681b3d394d36f25076fa18c42a69418cf4ab7f38ad6e39f146fc99e4cdd74a77be8eea8b90745f402709dfa0af6a9e66a26808ce5f0c4df1fc00
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -13,10 +13,11 @@ class AskIO
13
13
  attr_reader :invocation, :utterances
14
14
 
15
15
  def initialize(manifest, model, debug: false, userid: nil,
16
- deviceid: nil, appid: nil)
16
+ deviceid: nil, appid: nil, modelid: nil)
17
17
 
18
18
  @debug, @userid, @deviceid, @appid = debug, userid, deviceid, appid
19
-
19
+ @modelid = modelid
20
+
20
21
  @locale = manifest['manifest']['publishingInformation']['locales']\
21
22
  .keys.first
22
23
  puts '@locale: ' + @locale.inspect if @debug
@@ -98,7 +99,7 @@ class AskIO
98
99
  h['context']['System']['device']['deviceId'] = @deviceid if @deviceid
99
100
 
100
101
  if @appid then
101
- h['session']['appliaction']['applicationId'] = @appid
102
+ h['session']['application']['applicationId'] = @appid
102
103
  h['context']['System']['application']['applicationId'] = @appid
103
104
  end
104
105
 
@@ -139,7 +140,7 @@ class AskIO
139
140
 
140
141
  end
141
142
 
142
- yield(symbolize[h])
143
+ yield(@modelid, symbolize[h])
143
144
 
144
145
  else
145
146
 
@@ -151,6 +152,7 @@ class AskIO
151
152
 
152
153
  speech = r[:response][:outputSpeech]
153
154
  speech[:text] || speech[:ssml]
155
+
154
156
  end
155
157
 
156
158
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: askio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,7 +35,7 @@ cert_chain:
35
35
  cak2FQTKponGmVYw6J+i/FElf5KaCMS/hgW8xUBDLby3YA2TiKU0UXQ5lQxF3UoI
36
36
  TnML4yqW9q5HUi0og4onU1l1
37
37
  -----END CERTIFICATE-----
38
- date: 2019-10-19 00:00:00.000000000 Z
38
+ date: 2019-12-11 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: rest-client
metadata.gz.sig CHANGED
Binary file