alexa_rubykit 1.2.0 → 1.2.1
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 +4 -4
- data/README.md +11 -2
- data/lib/alexa_rubykit.rb +2 -2
- data/lib/alexa_rubykit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8eabfbd8af2def2e5c8da3287f0780a136dcddb7
|
|
4
|
+
data.tar.gz: fb8da8a9978f2596ef17834b0ced826d06b6d28c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6cb1e0e9ffec21c05eb8fd7f54e1b2d55be7402291b0ee24f91d7b0a2b08ed0edf472933b951683107662f67ad78bc9115481a7f6c0c7c95d982c9a40b4ab74d
|
|
7
|
+
data.tar.gz: 45f2d038c9d4b867ea69e611ce3112fd13d4350595583025f0d7f5b25f5a76d4774a053ad29dd3981f4595d687c47cc3a46cdff030e9becec92724ccf385b634
|
data/README.md
CHANGED
|
@@ -45,8 +45,17 @@ response.build_response
|
|
|
45
45
|
|
|
46
46
|
Will generate a valid outputspeech response in JSON format:
|
|
47
47
|
|
|
48
|
-
```
|
|
49
|
-
|
|
48
|
+
```JSON
|
|
49
|
+
{
|
|
50
|
+
"version": "1.0",
|
|
51
|
+
"response": {
|
|
52
|
+
"outputSpeech": {
|
|
53
|
+
"type": "PlainText",
|
|
54
|
+
"text": "Ruby is running ready!"
|
|
55
|
+
},
|
|
56
|
+
"shouldEndSession": true
|
|
57
|
+
}
|
|
58
|
+
}
|
|
50
59
|
```
|
|
51
60
|
|
|
52
61
|
## Troubleshooting
|
data/lib/alexa_rubykit.rb
CHANGED
|
@@ -18,7 +18,7 @@ module AlexaRubykit
|
|
|
18
18
|
|
|
19
19
|
# Returns true if all the Alexa request objects are set.
|
|
20
20
|
def self.valid_alexa?(request_json)
|
|
21
|
-
!request_json.nil?
|
|
22
|
-
!request_json['version'].nil?
|
|
21
|
+
!request_json.nil? && !request_json['session'].nil? &&
|
|
22
|
+
!request_json['version'].nil? && !request_json['request'].nil?
|
|
23
23
|
end
|
|
24
24
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: alexa_rubykit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Damian Finol
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-04-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|