alexa_toolbox 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/alexa_toolbox/display_directive_template.rb +5 -6
- data/lib/alexa_toolbox/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: 3749881e218c8b690136c51205d05d6b5271899b
|
4
|
+
data.tar.gz: 98a812aef291d5c2c4c69824dc997c7495471f4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f61d51c2e341c1619fe51062363ecef4fcc27ac3226f6b5b77376572bf8a4a946a00382e8348a361284a7c62fcbc5eda1a71bae43b1055a36ac79984230f0432
|
7
|
+
data.tar.gz: a4e24ee10f93e6186fb7441c2f4daf5966708520f7234774ed52eb53936832a7bf4e4195243406dec6c3c9ab1fca7b05dfffad7f3d1fbe1ad30bacc37d326a7c
|
data/Gemfile.lock
CHANGED
@@ -39,11 +39,11 @@ module AlexaToolbox
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def add_item_to_list(token,image,text_content)
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
42
|
+
list_item = {}
|
43
|
+
list_item[:token] = token if !token.nil?
|
44
|
+
list_item[:image] = image.build if !image.nil?
|
45
|
+
list_item[:textContent] = text_content.build if !text_content.nil?
|
46
|
+
@list_items.push(list_item)
|
47
47
|
end
|
48
48
|
|
49
49
|
def build
|
@@ -58,7 +58,6 @@ module AlexaToolbox
|
|
58
58
|
template[:image] = @image.build if !@image.nil? && ["ListTemplate1","ListTemplate2","ListTemplate3","BodyTemplate2","BodyTemplate3","BodyTemplate6"].include?(@type)
|
59
59
|
template[:listItems] = @list_items if !@list_items.empty?
|
60
60
|
|
61
|
-
|
62
61
|
template
|
63
62
|
end
|
64
63
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alexa_toolbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul McMahon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|