liveblog-plugin-dxtags 0.2.7 → 0.2.8
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/liveblog-plugin-dxtags.rb +20 -1
- metadata +25 -25
- 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: be9e6c74cdd61c8a69b63e731199989d30a4074c
|
|
4
|
+
data.tar.gz: bb08332af090138725be7e179eb71eeba901c26d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 839fe8f93a416d602babe07434c3e5d171b3686a3e9ede05f0441028eae197d14e66f6c4650d2dea790a8f69fb29670dcf00c541757cf0b3eb3ccba9284323a7
|
|
7
|
+
data.tar.gz: 3e396d720bd0c0ce6caf20d0111f730d64d62dec11dc8685ee9a7d29dad5f345d3f652c116e9ea013d7e9a238a75f2728cdfdd50f0944824dfbfd740bab110d5
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
|
@@ -6,6 +6,14 @@ require 'polyrex'
|
|
|
6
6
|
require 'dynarex-tags'
|
|
7
7
|
|
|
8
8
|
|
|
9
|
+
# description:
|
|
10
|
+
|
|
11
|
+
# The liveblog-plugin-dxtags gem helps create a list of related liveblog
|
|
12
|
+
# articles for a specific liveblog entry. If we had a liveblog entry titl
|
|
13
|
+
# "# I am replacing a bath plug #diy", the 3 most recent entries tagged as #diy
|
|
14
|
+
# would appear in the *see also* list underneath the liveblog entry
|
|
15
|
+
# on the web page
|
|
16
|
+
|
|
9
17
|
class LiveBlogPluginDxTags
|
|
10
18
|
|
|
11
19
|
def initialize(settings: {}, variables: {})
|
|
@@ -17,13 +25,23 @@ class LiveBlogPluginDxTags
|
|
|
17
25
|
|
|
18
26
|
end
|
|
19
27
|
|
|
28
|
+
# triggered when tomorrow's date is now today's date
|
|
29
|
+
# parameters:
|
|
30
|
+
# filepath: the index filpath for yesterday's liveblog entry
|
|
31
|
+
# e.g. jamesrobertson.eu/liveblog/2017/oct/16/index.xml
|
|
32
|
+
# urlpath: the URL path for yesterday's liveblog entry
|
|
33
|
+
# e.g. jamesrobertson.eu/liveblog/2017/oct/16/
|
|
34
|
+
|
|
20
35
|
def on_new_day(filepath, urlpath)
|
|
21
36
|
|
|
37
|
+
# create a new tags-seealso.xml file inside today's file directory
|
|
22
38
|
px = Polyrex.new 'tags/tag[label]/entry[title, url]'
|
|
23
39
|
px.save File.join(@todays_filepath, 'tags-seealso.xml')
|
|
24
40
|
|
|
25
41
|
return unless File.exists? filepath
|
|
26
42
|
|
|
43
|
+
# opens the master file for all the liveblog tags
|
|
44
|
+
# e.g. jamesrobertson.eu/liveblog/dxtags.xml
|
|
27
45
|
dxt = DynarexTags.new(@parent_filepath, tagfile_xslt: @tag_xsltpath)
|
|
28
46
|
|
|
29
47
|
dxt.generate(filepath) do |section|
|
|
@@ -142,4 +160,5 @@ class LiveBlogPluginDxTags
|
|
|
142
160
|
|
|
143
161
|
end
|
|
144
162
|
|
|
145
|
-
|
|
163
|
+
|
|
164
|
+
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.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -12,26 +12,26 @@ cert_chain:
|
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
|
13
13
|
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0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
|
31
|
-
|
|
32
|
-
|
|
26
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAUxW+cziy
|
|
27
|
+
jjdwMLYD5hTz9N1LFUFhgkNt4bn6ztjmkBG52zNqKAvN1xzygIRm8fPalpOv8Wz/
|
|
28
|
+
FnE8j8j9+RL6B+qWiIkoodC+wGEHnXKEisRoZCmZMXkSoJRbo0lIQUjBLdyF9m1P
|
|
29
|
+
z3dEJJ5QcLQv3lbEkqdhy1l/T0tgPQrhpX8zrIcU5mIBdFhsl+yIypdXimE9j1m/
|
|
30
|
+
qiLl36ugbZYFNV5UPZu82MlfaegaV3+BMwAbNMb+96zbbmHYH6KeitrAtIiEOqxR
|
|
31
|
+
DXcLXI4HpK9NTT7eif1OEaffjDQB6ujUsiCoXlLGtpKyAxsNSawaE8B+5UqsvQGz
|
|
32
|
+
UQ37fJy67PnG+Q==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date:
|
|
34
|
+
date: 2017-10-17 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.5
|
|
46
46
|
type: :runtime
|
|
47
47
|
prerelease: false
|
|
48
48
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -52,29 +52,29 @@ dependencies:
|
|
|
52
52
|
version: '0.2'
|
|
53
53
|
- - ">="
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
|
-
version: 0.2.
|
|
55
|
+
version: 0.2.5
|
|
56
56
|
- !ruby/object:Gem::Dependency
|
|
57
57
|
name: polyrex
|
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
|
59
59
|
requirements:
|
|
60
60
|
- - "~>"
|
|
61
61
|
- !ruby/object:Gem::Version
|
|
62
|
-
version: '1.
|
|
62
|
+
version: '1.1'
|
|
63
63
|
- - ">="
|
|
64
64
|
- !ruby/object:Gem::Version
|
|
65
|
-
version: 1.
|
|
65
|
+
version: 1.1.12
|
|
66
66
|
type: :runtime
|
|
67
67
|
prerelease: false
|
|
68
68
|
version_requirements: !ruby/object:Gem::Requirement
|
|
69
69
|
requirements:
|
|
70
70
|
- - "~>"
|
|
71
71
|
- !ruby/object:Gem::Version
|
|
72
|
-
version: '1.
|
|
72
|
+
version: '1.1'
|
|
73
73
|
- - ">="
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: 1.
|
|
75
|
+
version: 1.1.12
|
|
76
76
|
description:
|
|
77
|
-
email: james@
|
|
77
|
+
email: james@jamesrobertson.eu
|
|
78
78
|
executables: []
|
|
79
79
|
extensions: []
|
|
80
80
|
extra_rdoc_files: []
|
|
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
100
100
|
version: '0'
|
|
101
101
|
requirements: []
|
|
102
102
|
rubyforge_project:
|
|
103
|
-
rubygems_version: 2.
|
|
103
|
+
rubygems_version: 2.6.13
|
|
104
104
|
signing_key:
|
|
105
105
|
specification_version: 4
|
|
106
106
|
summary: A LiveBlog plugin which creates or updates the hashtags lookup files from
|
metadata.gz.sig
CHANGED
|
Binary file
|