alexa_objects 1.0.6 → 1.0.7
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/lib/alexa_objects/response.rb +4 -4
- data/lib/alexa_objects/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99de8e715d255cd018dfda9cfc1a118653c20975
|
4
|
+
data.tar.gz: 16f1560a4427b0ddb093e21e345f4860313d3d52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acf87b3f1e1693c1794a2e8653c1b3bf0cbed0e74172793d4cd75ee53ba7778453a40c23fe7353114d087bf4270b3d82144918443674cbc8bbfe9108dd8bb7bb
|
7
|
+
data.tar.gz: b05c531d601ebfb8e73d85d714f54be4f6de741ed6fcf0d3e0a2b050aec52abe3970e3a0170718160fad5b0028fd655bac757ef852753427e494258267069665
|
@@ -21,7 +21,7 @@ module AlexaObjects
|
|
21
21
|
@session_attributes[key] << value if @session_attributes[key]
|
22
22
|
end
|
23
23
|
|
24
|
-
def to_hash(with_card
|
24
|
+
def to_hash(with_card=false)
|
25
25
|
hash = {
|
26
26
|
"version" => "2.0",
|
27
27
|
"sessionAttributes" => @session_attributes,
|
@@ -49,11 +49,11 @@ module AlexaObjects
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def link_card
|
52
|
-
self.hash(
|
52
|
+
self.hash(true).tap { |hs| hs["response"]["card"] = {"type" => "LinkAccount"} }
|
53
53
|
end
|
54
54
|
|
55
|
-
def to_json(with_card
|
56
|
-
return self.to_hash(with_card
|
55
|
+
def to_json(with_card=false)
|
56
|
+
return self.to_hash(with_card).to_json
|
57
57
|
end
|
58
58
|
end
|
59
59
|
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.7
|
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-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: recursive-open-struct
|
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
version: '0'
|
146
146
|
requirements: []
|
147
147
|
rubyforge_project:
|
148
|
-
rubygems_version: 2.
|
148
|
+
rubygems_version: 2.5.1
|
149
149
|
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: A pairing of objects for parsing Amazon Echo/Alexa skill requests.
|