mymedia-kvx 0.2.5 → 0.2.6

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: ec380ef5892c5ac2fcdf82baac911c46fd7af6a2
4
- data.tar.gz: bbe15b512d11cf8d0782730a84657fcaef237327
3
+ metadata.gz: ebae74096330ea5c94b066056721c567d25fa5e9
4
+ data.tar.gz: 4b1daafd9083fa46a7738848152e4234e8d94ea2
5
5
  SHA512:
6
- metadata.gz: 00dc51820e7fdac810f0fc215fa8d5494d7885cdad100dc77d5ac13abce144c7ddf24607741e17966a49fd1f8e634012371d26dd6b553052a8300ce039ef7cf9
7
- data.tar.gz: f9f7f490cdee0a67ada3e37a2f577cdd2e3bb98b2d353680e2af2aa5cb21e565f2d066835dab311bb3e4e19b32159dfb34d3d63ea054a79111f897c41a0ad80a
6
+ metadata.gz: d134e9edd58fbea8313aa4b863d490b462abacd4b8f81fd799a5a2d896414995d28207c852404cedbc4f8beb30ef3b54e2aa8af2c90be0e5729a3aeb5b52dab1
7
+ data.tar.gz: 40c20798b9f638ee36c77c25e7760667e197b4ccd64beca29879cab152329d500573df14240d6ddae5d9c4a13b5c18422caed2721c1542a0accd9642ce1e83cf
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/mymedia-kvx.rb CHANGED
@@ -67,8 +67,8 @@ class MyMediaKvx < MyMedia::Base
67
67
 
68
68
  if not File.basename(src_path)[/#{@prefix}\d{6}T\d{4}\.txt/] then
69
69
 
70
- xml_filename = File.basename(src_path).sub(/txt$/,'xml')
71
- FileUtils.cp destination, @home + "/#{@public_type}/" + xml_filename
70
+ html_filename = File.basename(src_path).sub(/\.txt$/, @target_ext)
71
+ FileUtils.cp destination, @home + "/#{@public_type}/" + html_filename
72
72
 
73
73
  if File.extname(src_path) == '.txt' then
74
74
  FileUtils.cp src_path, @home + "/#{@public_type}/" + File.basename(src_path)
@@ -77,9 +77,9 @@ class MyMediaKvx < MyMedia::Base
77
77
  #publish the static links feed
78
78
  kvx_filepath = @home + "/#{@public_type}/static.xml"
79
79
 
80
- target_url = "%s/%s/%s" % [@website, @public_type, xml_filename]
80
+ target_url = "%s/%s/%s" % [@website, @public_type, html_filename]
81
81
 
82
- publish_dynarex(kvx_filepath, {title: xml_filename, url: target_url })
82
+ publish_dynarex(kvx_filepath, {title: html_filename, url: target_url })
83
83
 
84
84
  end
85
85
 
@@ -123,6 +123,11 @@ class MyMediaKvx < MyMedia::Base
123
123
  %w(xml-stylesheet title='XSL_formatting' type='text/xsl') \
124
124
  + ["href='#{@website}/#{xsldir}/#{@public_type}.xsl'"]
125
125
 
126
+ summary = doc.root.element('summary')
127
+ a = summary.xpath('title|tags|original_source|' + \
128
+ 'source_url|source_file|published|xslt')
129
+ a.each {|x| x.attributes[:class] = 'meta'}
130
+
126
131
  File.write destination, doc.xml(pretty: true)
127
132
 
128
133
  [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.5
4
+ version: 0.2.6
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-15 00:00:00.000000000 Z
34
+ date: 2015-05-27 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: mymedia
metadata.gz.sig CHANGED
Binary file