liveblog 0.9.8 → 0.9.9

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: b9e7efba163efa2bb780dd8f6a42c31b7028f8dd
4
- data.tar.gz: da69610ceeaf3e86458c2d9cb7a2a899abe33325
3
+ metadata.gz: 20c20b2aa9d5e0be4711035e111a696981494f0f
4
+ data.tar.gz: 4b853b6639ef36c6753757ceef2e48d62c01fe09
5
5
  SHA512:
6
- metadata.gz: 5e841b51baed86036ab066b53f9744f9f66582bac228e3fa2741804ebe7096a160fa0b866dd6eafc2db404d72d617fed94fc0ab55d48178e3a0eb03a0bb7bb87
7
- data.tar.gz: 095c41449061b8f7a7cd821b059a36f89f3bba5dd30b9f27ced32e3f027f9c50c56cd2a1b059826178483d2cf2c9e660e6942b36e5a875b7727a802f2e1fccd7
6
+ metadata.gz: 6879bbeea21e4e732cd98bfdf159c2267cb7756f4385c9447fac29e97d199c903b604d8741a2e8289b009b71361c3b42d7e7c1f01a991d73bde3a88ac5fabc23
7
+ data.tar.gz: d881d27c9a20ea8a4994fdd17f4e9e16348681eafe331e69fdc042a2cf1513dabf060b5147ab04873a7158a62d6be7fce0423443e6f6247517943f3bf280b404
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/liveblog.rb CHANGED
@@ -364,6 +364,17 @@ EOF
364
364
 
365
365
  end
366
366
  end
367
+
368
+ related_links_filepath = File.join(path(), 'related_links.xml')
369
+
370
+ if File.exists? related_links_filepath then
371
+
372
+ related_links = Rexle::Element.new 'related_links'
373
+ doc2 = Rexle.new(File.read(related_links_filepath))
374
+ doc2.root.xpath('body/*').each {|element| related_links.add element }
375
+
376
+ doc.root.add related_links
377
+ end
367
378
 
368
379
  render_html doc
369
380
  File.write formatted_filepath, doc.xml(pretty: true)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liveblog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8
4
+ version: 0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  WoOSxvsTN7qoA8F0W4mkDpf+HhHxBOLTPykcHMIlx2gILLnNraaZ1rJlZAqWABGj
32
32
  v8lGgeeqqjd5QA==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-05-02 00:00:00.000000000 Z
34
+ date: 2015-05-12 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: dynarex
metadata.gz.sig CHANGED
Binary file