liveblog-plugin-dxtags 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/liveblog-plugin-dxtags.rb +15 -4
- metadata +4 -4
- 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: 5d00f5ff67c97937c3f43bf34c27a4db8367e5f9
|
4
|
+
data.tar.gz: 54c8a9541835576accf48285e7b29a71fb6344ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b227293b550f30aa5a9a6a6a3ef6dc7aefd34a3943f295de3ab03608b3a937e76b690b63616884e15e0b1ebabd4e2c998fcc98775d4bfab284ff3e041daae6d
|
7
|
+
data.tar.gz: d4566185c2e5ab8e7598d434415a80da59c505d9b644586789fd7e20b6b09265ac64b6d8bd6b152c21169118c64179b2377f5dcf7c7a30e7a655be04bbeca58d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
@@ -34,9 +34,7 @@ class LiveBlogPluginDxTags
|
|
34
34
|
|
35
35
|
def on_new_day(filepath, urlpath)
|
36
36
|
|
37
|
-
|
38
|
-
px = Polyrex.new 'tags/tag[label]/entry[title, url]'
|
39
|
-
px.save File.join(@todays_filepath, 'tags-seealso.xml')
|
37
|
+
px = create_tags_seealso(@todays_filepath)
|
40
38
|
|
41
39
|
return unless File.exists? filepath
|
42
40
|
|
@@ -124,7 +122,9 @@ class LiveBlogPluginDxTags
|
|
124
122
|
def on_doc_update(doc)
|
125
123
|
|
126
124
|
pxfilepath = File.join(@todays_filepath, 'tags-seealso.xml')
|
127
|
-
|
125
|
+
|
126
|
+
px = File.exists?(pxfilepath) ? Polyrex.new(pxfilepath) : \
|
127
|
+
create_tags_seealso(@todays_filepath)
|
128
128
|
|
129
129
|
doc.root.xpath('records/section').each do |node|
|
130
130
|
|
@@ -160,5 +160,16 @@ class LiveBlogPluginDxTags
|
|
160
160
|
|
161
161
|
end
|
162
162
|
|
163
|
+
private
|
164
|
+
|
165
|
+
# create a new tags-seealso.xml file inside today's file directory
|
166
|
+
#
|
167
|
+
def create_tags_seealso(todays_filepath)
|
168
|
+
|
169
|
+
px = Polyrex.new 'tags/tag[label]/entry[title, url]'
|
170
|
+
px.save File.join(todays_filepath, 'tags-seealso.xml')
|
171
|
+
px
|
172
|
+
|
173
|
+
end
|
163
174
|
|
164
175
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: liveblog-plugin-dxtags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
DXcLXI4HpK9NTT7eif1OEaffjDQB6ujUsiCoXlLGtpKyAxsNSawaE8B+5UqsvQGz
|
32
32
|
UQ37fJy67PnG+Q==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2017-
|
34
|
+
date: 2017-11-04 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: dynarex-tags
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
version: '0.2'
|
43
43
|
- - ">="
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0.2.
|
45
|
+
version: 0.2.8
|
46
46
|
type: :runtime
|
47
47
|
prerelease: false
|
48
48
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
version: '0.2'
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.2.
|
55
|
+
version: 0.2.8
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: polyrex
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|