alexa_modelmd 0.3.3 → 0.3.4

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: 736075ce9976f511c70f705d29c45a540e869e1bd3c41e2f7a0b76cdfd050745
4
- data.tar.gz: aaa9e95ae0dc3a22ee4d23e7972db8b1ab55090d45e72486c1903260419e8bc1
3
+ metadata.gz: f82ce59210a48fb0e07f93eb8b0782248d31c9eea201ccb89fc070dab3d52fa7
4
+ data.tar.gz: 6588a76310ec0d4c617143b52fd42959e3fa29cd4b8863acbd63ec8801ca61f0
5
5
  SHA512:
6
- metadata.gz: 25a1534a821a2564f681f83cd0fd9d2ded834c294ea4334e5ee63faa48837fce0753c88172a0263ae9e55c7d24918ce0d00680ae50173e517fc77a96b6738f9e
7
- data.tar.gz: d5a5533f5407cf1f23e56432b63df412d28222635d438fcd2c07c69bd4ca40272dd646b56dffae7199081b7545bdc42762575bdb926d552f627d90633d5d84f0
6
+ metadata.gz: 00c3949d0ade4d5970dc4261d5fb0c333092414ffd4cfd00fb41b9249eba24f04192e3e93080b898ed1e3159ca54d0ed88f708e3133574bcff7ad0513698a4a7
7
+ data.tar.gz: 522f8fc2fc739a3b71c77a651a3978ad0a9dbfbf2ed12f10d00c4cee1c4a39e294d11ada4bafea0a7129fa3c54d6b73cbd6d81e655bfdc5c97974cc516f00466
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/alexa_modelmd.rb CHANGED
@@ -8,6 +8,9 @@
8
8
 
9
9
  require 'wiki_md'
10
10
 
11
+ class AMSummaryExceptiom < Exception
12
+ end
13
+
11
14
 
12
15
  class AlexaModelMd < WikiMd
13
16
  using ColouredText
@@ -89,6 +92,22 @@ EOF
89
92
  def endpoint=(s) @dxsx.dx.endpoint = s end
90
93
  def invocation() @dxsx.dx.invocation end
91
94
  def invocation=(s) @dxsx.dx.invocation = s end
95
+
96
+ def save_rsf()
97
+ if @dxsx.dx.respond_to? :rsf_file then
98
+ FileX.write @dxsx.dx.rsf_file, to_rsf()
99
+ else
100
+ raise AMSummaryExceptiom, 'no rsf_file summary field found'
101
+ end
102
+ end
103
+
104
+ def save_txt()
105
+ if @dxsx.dx.respond_to? :txt_file then
106
+ FileX.write @dxsx.dx.txt_file, to_txt()
107
+ else
108
+ raise AMSummaryExceptiom, 'no txt_file summary field found'
109
+ end
110
+ end
92
111
 
93
112
  # Transforms the document into an Alexa_modelmd formatted document
94
113
  #
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.3
4
+ version: 0.3.4
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-13 00:00:00.000000000 Z
38
+ date: 2019-03-11 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: wiki_md
@@ -83,9 +83,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  requirements: []
86
- rubygems_version: 3.0.2
86
+ rubygems_version: 3.0.1
87
87
  signing_key:
88
88
  specification_version: 4
89
- summary: Using a WikiMd foramtted document, generates a basic Amazon Alexa model in
89
+ summary: Using a WikiMd formatted document, generates a basic Amazon Alexa model in
90
90
  XML format, as well as other formats.
91
91
  test_files: []
metadata.gz.sig CHANGED
Binary file