mymedia-kvx 0.2.1 → 0.2.2

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
  SHA1:
3
- metadata.gz: dfd302542de5394b130d108785afe9c42e94badf
4
- data.tar.gz: a3f18e8cc7e2611e719377dc91451568c8622c78
3
+ metadata.gz: 54008cbc4ca31a476efdb7b25f371762e89f796a
4
+ data.tar.gz: e873bc78b547791f9b33f18d76b2debd46b5d20a
5
5
  SHA512:
6
- metadata.gz: 72d545ad82de933c07bb18b4e60c0ce91fa31aa342129652783781cc78dd5a1eda68a1e52c4c51fb05e48ad604719368f14556c9635a4cea7d74b308a8e1372b
7
- data.tar.gz: d3fcdff70227e23e42b1f4c61515ca564e271e1c87e16d79b1af31a480f8aaf42a98c3dbc15cdf4376d3f50e014f3ba0a72048909ec02074199fb4cdeabb0307
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.1
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-05 00:00:00.000000000 Z
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