alexa_modelmd 0.3.4 → 0.3.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
  SHA256:
3
- metadata.gz: f82ce59210a48fb0e07f93eb8b0782248d31c9eea201ccb89fc070dab3d52fa7
4
- data.tar.gz: 6588a76310ec0d4c617143b52fd42959e3fa29cd4b8863acbd63ec8801ca61f0
3
+ metadata.gz: 61d1eef74158c30026a1a91e305771f69f1aa0923b30a6d346279bebd1ea4ea9
4
+ data.tar.gz: e3e0712352a95c7919c64f767121a99467dc6b0e2141c960c9f7cebf142d63c2
5
5
  SHA512:
6
- metadata.gz: 00c3949d0ade4d5970dc4261d5fb0c333092414ffd4cfd00fb41b9249eba24f04192e3e93080b898ed1e3159ca54d0ed88f708e3133574bcff7ad0513698a4a7
7
- data.tar.gz: 522f8fc2fc739a3b71c77a651a3978ad0a9dbfbf2ed12f10d00c4cee1c4a39e294d11ada4bafea0a7129fa3c54d6b73cbd6d81e655bfdc5c97974cc516f00466
6
+ metadata.gz: baee7cb66de06fa8057a82bba76842f5e1032463617c534909b0d36f7966f8ad66662aa850b26088e9d27eb2342f10071fd4cdbb191248aba395d112deeb34b9
7
+ data.tar.gz: bec9883bdb5722f8130f8fbc4b00658c322a120a5460af22168767772e421af0e95419378e00288751c68aa2289a1b63be38aa10a4c30867c5762f8c1c560896
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/alexa_modelmd.rb CHANGED
@@ -8,6 +8,7 @@
8
8
 
9
9
  require 'wiki_md'
10
10
 
11
+
11
12
  class AMSummaryExceptiom < Exception
12
13
  end
13
14
 
@@ -128,6 +129,8 @@ EOF
128
129
  Rexslt.new(rsf_xslt(), to_xml(), debug: @debug).to_s
129
130
  end
130
131
 
132
+ # note: An intent or an utterance can't contain numbers
133
+ #
131
134
  def to_xml()
132
135
 
133
136
  a = RexleBuilder.build do |xml|
@@ -151,11 +154,11 @@ EOF
151
154
 
152
155
  xml.intent do
153
156
 
154
- xml.name intent.name
157
+ xml.name intent.name.gsub(/\d+/, '')
155
158
 
156
159
  xml.utterances do
157
160
  intent.utterances.each do |utterance|
158
- xml.utterance utterance
161
+ xml.utterance utterance.gsub(/\d+/, '')
159
162
  end
160
163
  end
161
164
 
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.4
4
+ version: 0.3.5
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-03-11 00:00:00.000000000 Z
38
+ date: 2019-04-21 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