alexa_modelmd 0.3.2 → 0.3.3

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
  SHA256:
3
- metadata.gz: 880464a50ba30066c0d76f367ebd7f67110dba02553543822e67b7138c01baab
4
- data.tar.gz: ee470fa98a333848ba69a1238cd5d99753c0491a2ce87961436aa35641988c8f
3
+ metadata.gz: 736075ce9976f511c70f705d29c45a540e869e1bd3c41e2f7a0b76cdfd050745
4
+ data.tar.gz: aaa9e95ae0dc3a22ee4d23e7972db8b1ab55090d45e72486c1903260419e8bc1
5
5
  SHA512:
6
- metadata.gz: 41fa80b8a788ee61bf273148c579e5642093503969caa2b15ab12edfe1e565e0aa3224883e8915bbfc861f6e21b6828d291d2f70020101616b8c47685a7275b7
7
- data.tar.gz: c679228f682e615298a308e8765731834058e1e0033fb89b3ec661c3d788ea0838f1c13197119b7384f6662893801d39482e9e77cd5abc7b1ba8c7f28cc83215
6
+ metadata.gz: 25a1534a821a2564f681f83cd0fd9d2ded834c294ea4334e5ee63faa48837fce0753c88172a0263ae9e55c7d24918ce0d00680ae50173e517fc77a96b6738f9e
7
+ data.tar.gz: d5a5533f5407cf1f23e56432b63df412d28222635d438fcd2c07c69bd4ca40272dd646b56dffae7199081b7545bdc42762575bdb926d552f627d90633d5d84f0
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/alexa_modelmd.rb CHANGED
@@ -10,6 +10,7 @@ require 'wiki_md'
10
10
 
11
11
 
12
12
  class AlexaModelMd < WikiMd
13
+ using ColouredText
13
14
 
14
15
  class Intent
15
16
  using ColouredText
@@ -30,6 +31,42 @@ class AlexaModelMd < WikiMd
30
31
  end
31
32
 
32
33
  end
34
+
35
+ def initialize(wiki=nil, keywords={})
36
+
37
+ wcis = keywords.delete :whatcanisay
38
+ puts 'wcis: ' + wcis.inspect if @debug
39
+
40
+ super(wiki, keywords)
41
+
42
+ if wcis then
43
+
44
+ found = self.find 'What can I say'
45
+
46
+ if not found then
47
+
48
+ s=<<EOF
49
+ # What can I say
50
+
51
+ ## WhatCanISay
52
+
53
+ * what can I say
54
+ * give me some examples
55
+
56
+ `
57
+ #rsc.alexamodelmd.sample_utterances '#{self.title}'
58
+ "Not yet enabled."
59
+ `
60
+
61
+ + help whatcanisay
62
+ EOF
63
+
64
+ self.create_section s
65
+
66
+ end
67
+
68
+ end
69
+ end
33
70
 
34
71
  def entries()
35
72
 
@@ -48,6 +85,11 @@ class AlexaModelMd < WikiMd
48
85
 
49
86
  end
50
87
 
88
+ def endpoint() @dxsx.dx.endpoint end
89
+ def endpoint=(s) @dxsx.dx.endpoint = s end
90
+ def invocation() @dxsx.dx.invocation end
91
+ def invocation=(s) @dxsx.dx.invocation = s end
92
+
51
93
  # Transforms the document into an Alexa_modelmd formatted document
52
94
  #
53
95
  def to_md
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alexa_modelmd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,7 +35,7 @@ cert_chain:
35
35
  RiKpAQ+I6BbdLUJTK2K+PB/nbZ6mul1+aS64XsSo/h49h7MP3lGxHFZyfX1RuE4j
36
36
  Uv6UCmrr9La+izsyIDyQli0u
37
37
  -----END CERTIFICATE-----
38
- date: 2019-02-11 00:00:00.000000000 Z
38
+ date: 2019-02-13 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: wiki_md
metadata.gz.sig CHANGED
Binary file