mymedia-kvx 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +2 -2
- data/lib/mymedia-kvx.rb +4 -6
- data.tar.gz.sig +2 -1
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: de1cc53215b06fd15d006e5b9487ff4e15e0d4ae
|
|
4
|
+
data.tar.gz: 81e5a82ce75f225f3f6cb23c6b9e6b272a4459da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4274dec1608d4f221ee768ebeab632673c78d717ac962038a98f41b3f8e9b97e963ba00f0213cadd4d7661758a0d1254a473ab0395904abff909ac7323284e03
|
|
7
|
+
data.tar.gz: 76fa490c74bfa0e9915fee9007ebfe5a1bbfd9d6aea88b139acb2497040f7a0b8ad88a63843ebe34cd2c90777b5a113cd60ffb5aed326225315c4f1556b922a2
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
�;kL ۭ���v��{�� ].@q��>%
|
|
2
|
+
�kI�TB"9����Nxf�?B�3�:�B6뒺��S�>B�E�A[[��ӽE� �Tc"�2�����z14��т���P��ȹ(�.џM�iΤ�dxSzU�Z��C�<�Y/K�sep����)��-�?͐R���`\d����'��#IF����ᴄ�3�xAv�@X�SI*K6��>�?L��a�l�>����*�s�9�K����C��\ܧ�_�
|
data/lib/mymedia-kvx.rb
CHANGED
|
@@ -45,7 +45,7 @@ class MyMediaKvx < MyMedia::Base
|
|
|
45
45
|
if File.extname(src_path) == '.txt' then
|
|
46
46
|
|
|
47
47
|
kvx, raw_msg = copy_edit(src_path, dest_xml)
|
|
48
|
-
copy_edit(src_path, raw_dest_xml)
|
|
48
|
+
copy_edit(src_path, raw_dest_xml, xsldir: 'r/xsl')
|
|
49
49
|
|
|
50
50
|
else
|
|
51
51
|
|
|
@@ -59,8 +59,6 @@ class MyMediaKvx < MyMedia::Base
|
|
|
59
59
|
|
|
60
60
|
end
|
|
61
61
|
|
|
62
|
-
# add the XSLT instruction to the destination XML file
|
|
63
|
-
File.write dest_xml, kvx.to_doc.xml(pretty: true)
|
|
64
62
|
|
|
65
63
|
# transform the XML to an HTML file
|
|
66
64
|
|
|
@@ -85,12 +83,12 @@ class MyMediaKvx < MyMedia::Base
|
|
|
85
83
|
|
|
86
84
|
end
|
|
87
85
|
|
|
88
|
-
[raw_msg,target_url]
|
|
86
|
+
[raw_msg, target_url]
|
|
89
87
|
end
|
|
90
88
|
|
|
91
89
|
end
|
|
92
90
|
|
|
93
|
-
def copy_edit(src_path, destination, raw='')
|
|
91
|
+
def copy_edit(src_path, destination, raw='', xsldir: 'xsl')
|
|
94
92
|
|
|
95
93
|
txt_destination = destination.sub(/xml$/,'txt')
|
|
96
94
|
FileUtils.cp src_path, txt_destination
|
|
@@ -123,7 +121,7 @@ class MyMediaKvx < MyMedia::Base
|
|
|
123
121
|
doc = kvx.to_doc
|
|
124
122
|
doc.instructions.push \
|
|
125
123
|
%w(xml-stylesheet title='XSL_formatting' type='text/xsl') \
|
|
126
|
-
+ ["href='#{@website}
|
|
124
|
+
+ ["href='#{@website}/#{xsldir}/#{@public_type}.xsl'"]
|
|
127
125
|
|
|
128
126
|
File.write destination, doc.xml(pretty: true)
|
|
129
127
|
|
data.tar.gz.sig
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
���-�T����ZO�L�J^͐iI���n�A5����Ƀ{E�� �?R+\x;%�5�Yy#�ŀ��%���ߎsr��(���or���ҩ��Z4%���1{.l8�E>�nw�K
|
|
2
|
+
|.=��c�QI�0 �����U��� uH���ƨl�"|����.A\�����1�S~_Z@ԏ�˭�-��o�����L�Nۘ��2�/�� ���}9�HxuTW�N�︾$W��栝\��K(MB�ڞ1W�a�b��
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|