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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5e8ba24c9e6ca19a170be8d4e925ac95e89511e2
4
- data.tar.gz: 48408c740b0ec858c3159824f2ea190a9ff487df
3
+ metadata.gz: 0515d8aff0f5502ee500bf27643d2db00c5f2257
4
+ data.tar.gz: d54b203ce894bcbfc40604c78e5f5442d5315755
5
5
  SHA512:
6
- metadata.gz: 7048fadeedc9213ce2f34823c7a12257ea7092b32a3b1b691f175ea6d5cd374b927cff87907811871e75260c8066390fa83c9acf96283f2caee05edfeca53d7d
7
- data.tar.gz: 4f94f8409c5e413a44f71b5ba2d1b5a6386bf4c8622c1b32d83b566a501f6779180ca947075980b0a88d8ac5b30eb2b6a35d68766f1331c6575a2c994f5cf3bb
6
+ metadata.gz: e2c2dd3201dd4f1b5928f1459ab2fb1353b5f2a88d4e2037fc17434960966ba63e602ece410236c44ea7fbfa1b8a03d365621b15ea17fb5869a3f9bbd3b9131f
7
+ data.tar.gz: 005652fc3257af55532d8dc618268a5b8bcf66e4819fb01ccf2692157cf1ed8834109ec3c4dc10ac48d07c84747d164acc4bcfe775bd030f8d961082345e9d89
@@ -43,7 +43,7 @@ module AlexaGenerator
43
43
 
44
44
  def self.build(name, type, &block)
45
45
  builder = Builder.new(name, type)
46
- block.call(builder)
46
+ block.call(builder) if block
47
47
  builder
48
48
  end
49
49
  end
@@ -1,3 +1,3 @@
1
1
  module AlexaGenerator
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
@@ -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.0
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-20 00:00:00.000000000 Z
11
+ date: 2016-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec