alexa_objects 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/alexa_objects/echo_request.rb +5 -5
- data/lib/alexa_objects/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c28b0d744cff50b1c262d890cbf270c3f034562c
|
4
|
+
data.tar.gz: a2107b9eb3dd5131d73879df0d1548c56968c4f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6bcf6a4e092886e0e6924dead84a49459f1a938e3b1407ed2852cc32da8de27c669ca0612447e02fbef2d6a0944020867f96edb64e4a79d56d1dbd2b916a7fe
|
7
|
+
data.tar.gz: 8d32ab1f6d70313ea551563c59a76ed798ff05dc2bd179a44e7f4c6da599fb206f99ce778729391a9391709cc39dbc7b7dc33627ef0de46bd6c799107b140dfb
|
data/README.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Based on [@sarkonovich](https://github.com/sarkonovich)'s awesome work on https://github.com/sarkonovich/Alexa-Hue.
|
@@ -11,9 +11,9 @@ module AlexaObjects
|
|
11
11
|
request = response_hash["request"]
|
12
12
|
|
13
13
|
if session
|
14
|
-
@user_id = session["user"]["userId"]
|
15
|
-
@access_token = session["user"]["accessToken"]
|
16
|
-
@application_id = session["application"]["applicationId"]
|
14
|
+
@user_id = session["user"]["userId"] if session["user"]
|
15
|
+
@access_token = session["user"]["accessToken"] if session["user"]
|
16
|
+
@application_id = session["application"]["applicationId"] if session["application"]
|
17
17
|
end
|
18
18
|
|
19
19
|
if request
|
@@ -22,8 +22,8 @@ module AlexaObjects
|
|
22
22
|
@session_new = request["new"]
|
23
23
|
|
24
24
|
if request["intent"]
|
25
|
-
@intent_name = request["intent"]["name"]
|
26
|
-
@slots = build_struct(request["intent"]["slots"])
|
25
|
+
@intent_name = request["intent"]["name"] if request["intent"]
|
26
|
+
@slots = build_struct(request["intent"]["slots"]) if request["intent"]
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alexa_objects
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Lucas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -104,6 +104,7 @@ files:
|
|
104
104
|
- ".gitignore"
|
105
105
|
- Gemfile
|
106
106
|
- Guardfile
|
107
|
+
- README.md
|
107
108
|
- Rakefile
|
108
109
|
- alexa_objects.gemspec
|
109
110
|
- lib/alexa_objects.rb
|