mymedia-kvx 0.2.2 → 0.2.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54008cbc4ca31a476efdb7b25f371762e89f796a
4
- data.tar.gz: e873bc78b547791f9b33f18d76b2debd46b5d20a
3
+ metadata.gz: 594bf47cd69f8fe51d77edc8d37830766abeaf3e
4
+ data.tar.gz: 342d6c255403ed22092f0a18666d9baca968b88c
5
5
  SHA512:
6
- metadata.gz: 9f116c437371a2e0b42b902259c95eccff6e606b37d2318d54271915e5acc71d4625fbcbf587e45ff2142e54993cf8cf6015c208faba7d28ae20d470cd7f9a87
7
- data.tar.gz: 2a51bc2fdd76704e6cbbf15e36022d9a86b1b60ec0e2d43562bcf3173ed280718ffbb458ff8272f3ed6cf0ab6b2fc3b81de4e9e5aaf59eba15abf3f24bdc3ad8
6
+ metadata.gz: 3f73624b2cb69065d5f91e87d8150bf1ec1195f2ed7bb0ec6b99c1aae6c7a6372065b0485e75170e9899525bb9a0855f8b859bb79b9d1365d33451752ebda9b5
7
+ data.tar.gz: 1a3cea68ba6b256085d3cab8254467eb822dfc44349d2a662e7f176f46da36a579d7710035b82f88646a409f41fd77c5fb13df2dc3c98bad101b14a49e5967b7
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/mymedia-kvx.rb CHANGED
@@ -60,7 +60,7 @@ class MyMediaKvx < MyMedia::Base
60
60
  end
61
61
 
62
62
  # add the XSLT instruction to the destination XML file
63
- File.write dest_xml, doc.xml(pretty: true)
63
+ File.write dest_xml, kvx.to_doc.xml(pretty: true)
64
64
 
65
65
  # transform the XML to an HTML file
66
66
 
@@ -120,12 +120,12 @@ class MyMediaKvx < MyMedia::Base
120
120
  kvx.summary[:published] = Time.now.strftime("%d-%m-%Y %H:%M")
121
121
  kvx.summary[:xslt] = @xsl unless kvx.summary[:xslt]
122
122
 
123
- doc = Rexle.new File.read(dest_xml)
123
+ doc = kvx.to_doc
124
124
  doc.instructions.push \
125
125
  %w(xml-stylesheet title='XSL_formatting' type='text/xsl') \
126
126
  + ["href='#{@website}/r/xsl/#{@public_type}.xsl'"]
127
127
 
128
- File.write destination, kvx.to_xml
128
+ File.write destination, doc.xml(pretty: true)
129
129
 
130
130
  [kvx, raw_msg]
131
131
  end
data.tar.gz.sig CHANGED
Binary file
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.2
4
+ version: 0.2.3
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-11 00:00:00.000000000 Z
34
+ date: 2015-05-14 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: mymedia
metadata.gz.sig CHANGED
Binary file