daily_notices 0.4.4 → 0.5.0
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/daily_notices.rb +10 -4
- metadata +22 -2
- metadata.gz.sig +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c16315b44f08205668301f964affdada57583ce5
|
4
|
+
data.tar.gz: d38c8441c3dbb8e5c9af084f5b3dd8214e635af8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e827116bfa1cf937fc26f85904a632733af55eec502e141663c6aaf3b6a48b32bb8657dfbc14c121d33a78041c0c42711921cc55dd83b57cee793d71a674b8b3
|
7
|
+
data.tar.gz: eb9d1cf8745fe867a957c317b4bc6341adb79b305dc8d4b22efb5c31a9ba089f26fceecf974e0b4914e1cd28275014bc309e08821810e6847ab4002a0760a8b4
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/daily_notices.rb
CHANGED
@@ -4,8 +4,10 @@
|
|
4
4
|
|
5
5
|
|
6
6
|
require 'dx_sliml'
|
7
|
-
require '
|
7
|
+
require 'rx_sliml'
|
8
8
|
require 'fileutils'
|
9
|
+
require 'rss_creator'
|
10
|
+
|
9
11
|
|
10
12
|
|
11
13
|
class DailyNotices
|
@@ -105,8 +107,13 @@ class DailyNotices
|
|
105
107
|
rxdoc = Rexle.new(kvx.to_xml)
|
106
108
|
rxdoc.instructions << ['xml-stylsheet',\
|
107
109
|
"title='XSL_formatting' type='text/xsl' href='#{@target_xslt}'"]
|
108
|
-
|
109
110
|
File.write target_path.sub(/\.html$/,'.xml', ), rxdoc.xml(pretty: true)
|
111
|
+
|
112
|
+
unless File.exists? @target_xslt then
|
113
|
+
File.write @target_xslt,
|
114
|
+
RxSliml.new(fields: %i(description time)).to_xslt
|
115
|
+
end
|
116
|
+
|
110
117
|
File.write target_path, rx.to_html(xslt: @target_xslt)
|
111
118
|
|
112
119
|
end
|
@@ -164,8 +171,7 @@ class DailyNotices
|
|
164
171
|
private
|
165
172
|
|
166
173
|
def create_link(id)
|
167
|
-
[File.join(@url_base, File.basename(@filepath),
|
168
|
-
@archive_path, '#' + id)].join('/')
|
174
|
+
[File.join(@url_base, File.basename(@filepath), 'status', id)].join('/')
|
169
175
|
end
|
170
176
|
|
171
177
|
# configures the target page (using a Dynarex document) for a new day
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: daily_notices
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
8he6uWzjGUd5dEdL/ASnQ9lBbvl0TStzNEnsGNBV94H/6fnjx7MHQ/CWQE/M877s
|
32
32
|
zcuMgGZau1C2mg==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2016-11-
|
34
|
+
date: 2016-11-13 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rss_creator
|
@@ -73,6 +73,26 @@ dependencies:
|
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 0.1.6
|
76
|
+
- !ruby/object:Gem::Dependency
|
77
|
+
name: rx_sliml
|
78
|
+
requirement: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.1'
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 0.1.2
|
86
|
+
type: :runtime
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - "~>"
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '0.1'
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: 0.1.2
|
76
96
|
- !ruby/object:Gem::Dependency
|
77
97
|
name: rss_sliml
|
78
98
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Q��=sƱ�f��/���>�e.����"F�[��
|