alexa_modelmd 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +3 -1
- data/lib/alexa_modelmd.rb +4 -4
- metadata +1 -1
- metadata.gz.sig +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 880464a50ba30066c0d76f367ebd7f67110dba02553543822e67b7138c01baab
|
4
|
+
data.tar.gz: ee470fa98a333848ba69a1238cd5d99753c0491a2ce87961436aa35641988c8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41fa80b8a788ee61bf273148c579e5642093503969caa2b15ab12edfe1e565e0aa3224883e8915bbfc861f6e21b6828d291d2f70020101616b8c47685a7275b7
|
7
|
+
data.tar.gz: c679228f682e615298a308e8765731834058e1e0033fb89b3ec661c3d788ea0838f1c13197119b7384f6662893801d39482e9e77cd5abc7b1ba8c7f28cc83215
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1 +1,3 @@
|
|
1
|
-
|
1
|
+
3l'��m
|
2
|
+
&C �Kír��(�c�!��SE�G$ͳ��Q�]h�p�X$�E+�J�\�0�G�έ�A-�҆h@��9��a%P�r��J�/��\����;GJ�)���۞�ƛ�}��.%�).���"�Y�{��Q�4�x�O�n��$W��DdtLDm�g�?�T�:^�X�̄uG!Ú�V �i�?2W�e�l�����mL���w#��o�?�#�a�Qu���A�[�OY��>r! `�2���Ywܕ�ͼkn��}zsrDʹ)��F�=�OR�!ɍZ
|
3
|
+
���@�iM��B:�8�d{P�������#"$Eyzr�+��
|
data/lib/alexa_modelmd.rb
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
# file: alexa_modelmd.rb
|
4
4
|
|
5
|
-
# description: Using a WikiMd
|
6
|
-
# Alexa model in XML format, as well as other formats.
|
5
|
+
# description: Using a WikiMd foramatted document, this generates a basic
|
6
|
+
# Amazon Alexa model in XML format, as well as other formats.
|
7
7
|
|
8
8
|
|
9
9
|
require 'wiki_md'
|
@@ -20,8 +20,8 @@ class AlexaModelMd < WikiMd
|
|
20
20
|
|
21
21
|
@debug = debug
|
22
22
|
puts ('Intent | s: ' + s.inspect).debug if @debug
|
23
|
-
|
24
|
-
|
23
|
+
html = Kramdown::Document.new(Martile.new(s).to_html).to_html
|
24
|
+
doc = Rexle.new("<root9>%s</root9>" % html)
|
25
25
|
@name = doc.root.element('h2/text()').to_s
|
26
26
|
@utterances = doc.root.xpath('ul/li/text()').map(&:to_s)
|
27
27
|
puts ('doc: ' + doc.root.xml.inspect).debug if @debug
|
metadata
CHANGED
metadata.gz.sig
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
n� �
|
3
|
-
e�����g�����a$�5P �6�p��x)8J�*��t������j�O�3V��`Ըhg �ы���A�!o>
|
1
|
+
�m�w�HǾ��.O���5��y��8��������q�ѡ�2L�zН�V
|
2
|
+
���e�?����W�{��s0�*���IH?�F���@��:�\-F��������F�q����Iqc��&�Kn�;xXC���{���ET���a>�7��;���}��`��(��?4�>��d�E�k��F�7��^0�I��T�n���.'�����9��'��U��W�68�b5�u�0[�x���q����n���>|��3��R"�JH��$Z��#=_A}�yԢV�'/QG������?��(�,�� Z�r��j�� WQK�ީ��(��,D!��
|