mymedia-kvx 0.2.1 → 0.2.2
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 +0 -0
- data.tar.gz.sig +0 -0
- data/lib/mymedia-kvx.rb +9 -0
- metadata +2 -2
- 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: 54008cbc4ca31a476efdb7b25f371762e89f796a
|
|
4
|
+
data.tar.gz: e873bc78b547791f9b33f18d76b2debd46b5d20a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f116c437371a2e0b42b902259c95eccff6e606b37d2318d54271915e5acc71d4625fbcbf587e45ff2142e54993cf8cf6015c208faba7d28ae20d470cd7f9a87
|
|
7
|
+
data.tar.gz: 2a51bc2fdd76704e6cbbf15e36022d9a86b1b60ec0e2d43562bcf3173ed280718ffbb458ff8272f3ed6cf0ab6b2fc3b81de4e9e5aaf59eba15abf3f24bdc3ad8
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/mymedia-kvx.rb
CHANGED
|
@@ -58,6 +58,9 @@ class MyMediaKvx < MyMedia::Base
|
|
|
58
58
|
File.write raw_dest_xml, kvx.to_s
|
|
59
59
|
|
|
60
60
|
end
|
|
61
|
+
|
|
62
|
+
# add the XSLT instruction to the destination XML file
|
|
63
|
+
File.write dest_xml, doc.xml(pretty: true)
|
|
61
64
|
|
|
62
65
|
# transform the XML to an HTML file
|
|
63
66
|
|
|
@@ -116,6 +119,12 @@ class MyMediaKvx < MyMedia::Base
|
|
|
116
119
|
kvx.summary[:source_file] = File.basename(txt_destination)
|
|
117
120
|
kvx.summary[:published] = Time.now.strftime("%d-%m-%Y %H:%M")
|
|
118
121
|
kvx.summary[:xslt] = @xsl unless kvx.summary[:xslt]
|
|
122
|
+
|
|
123
|
+
doc = Rexle.new File.read(dest_xml)
|
|
124
|
+
doc.instructions.push \
|
|
125
|
+
%w(xml-stylesheet title='XSL_formatting' type='text/xsl') \
|
|
126
|
+
+ ["href='#{@website}/r/xsl/#{@public_type}.xsl'"]
|
|
127
|
+
|
|
119
128
|
File.write destination, kvx.to_xml
|
|
120
129
|
|
|
121
130
|
[kvx, raw_msg]
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mymedia-kvx
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
YzFxKlntIoLHNxMAQ9M9J4Yo+Lqm3HQ1PfyOUBU1Ut9Jkp76o++6L7SZbjSkvntp
|
|
32
32
|
3P+jHJ4bpGBJQg==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2015-05-
|
|
34
|
+
date: 2015-05-11 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: mymedia
|
metadata.gz.sig
CHANGED
|
Binary file
|