alexa_generator 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/alexa_generator/slot.rb +1 -1
- data/lib/alexa_generator/version.rb +1 -1
- data/spec/alexa_generator/intent_spec.rb +12 -0
- 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: 0515d8aff0f5502ee500bf27643d2db00c5f2257
|
4
|
+
data.tar.gz: d54b203ce894bcbfc40604c78e5f5442d5315755
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2c2dd3201dd4f1b5928f1459ab2fb1353b5f2a88d4e2037fc17434960966ba63e602ece410236c44ea7fbfa1b8a03d365621b15ea17fb5869a3f9bbd3b9131f
|
7
|
+
data.tar.gz: 005652fc3257af55532d8dc618268a5b8bcf66e4819fb01ccf2692157cf1ed8834109ec3c4dc10ac48d07c84747d164acc4bcfe775bd030f8d961082345e9d89
|
data/lib/alexa_generator/slot.rb
CHANGED
@@ -41,5 +41,17 @@ describe AlexaGenerator::Slot do
|
|
41
41
|
}.to raise_error(AlexaGenerator::InvalidIntentError)
|
42
42
|
end
|
43
43
|
end
|
44
|
+
|
45
|
+
it 'should allow you to use a builtin Amazon slot type not included in alexa_generator' do
|
46
|
+
builder = AlexaGenerator::Intent.build(:MyCustomIntent) do |intent|
|
47
|
+
intent.add_slot(:Episode, 'AMAZON.TVEpisode')
|
48
|
+
end
|
49
|
+
|
50
|
+
intent = builder.create
|
51
|
+
|
52
|
+
expect(intent.slots.count).to eq(1)
|
53
|
+
expect(intent.slots.first.name).to eq(:Episode)
|
54
|
+
expect(intent.slots.first.type).to eq('AMAZON.TVEpisode')
|
55
|
+
end
|
44
56
|
end
|
45
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alexa_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Mullins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|