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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d512122e81904260c84fa1820a5611561e70e32a
4
- data.tar.gz: 2fdb9f22ad05544f87aa4afb014204ba117a108d
3
+ metadata.gz: 3749881e218c8b690136c51205d05d6b5271899b
4
+ data.tar.gz: 98a812aef291d5c2c4c69824dc997c7495471f4a
5
5
  SHA512:
6
- metadata.gz: 7511ebd8464acf9d9c8eb6fbe0eda787262e04779547ecbce51d5fdf92baac367f734c8ef88de7812f9a6a77a55ba550b5da1bab46fe0a796643eb808338716a
7
- data.tar.gz: 82b839225d71eff9e1803ec69c23a6a1c5af74cd311958cc9add80791e2ddc828c6d091ba178f41b016948929e8b1dae8e3c4ebc2e2f0b8ce18358f70dca2259
6
+ metadata.gz: f61d51c2e341c1619fe51062363ecef4fcc27ac3226f6b5b77376572bf8a4a946a00382e8348a361284a7c62fcbc5eda1a71bae43b1055a36ac79984230f0432
7
+ data.tar.gz: a4e24ee10f93e6186fb7441c2f4daf5966708520f7234774ed52eb53936832a7bf4e4195243406dec6c3c9ab1fca7b05dfffad7f3d1fbe1ad30bacc37d326a7c
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- alexa_toolbox (1.0.3)
4
+ alexa_toolbox (1.0.4)
5
5
  bundler (~> 1.14)
6
6
  rake
7
7
 
@@ -39,11 +39,11 @@ module AlexaToolbox
39
39
  end
40
40
 
41
41
  def add_item_to_list(token,image,text_content)
42
- @list_items.push({
43
- token: token,
44
- image: image.build,
45
- textContent: text_content.build
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
 
@@ -1,3 +1,3 @@
1
1
  module AlexaToolbox
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
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
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-01 00:00:00.000000000 Z
11
+ date: 2017-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler