daily_notices 0.7.2 → 0.7.3
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/lib/daily_notices.rb +7 -3
- data.tar.gz.sig +0 -0
- metadata +8 -8
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1847519cd9ecced81910d9b0d1ba8e71b0eee2fec13c4f18ec4f594f34172869
|
4
|
+
data.tar.gz: 550caf76cae6740376ea7ecf903969bbb50eaa444d2f15c57e49f0028c93195a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 105c15ffe704ed78f7c8c91abe06be5575c049ed04345be20c0fc979c72691f228fedaff14eb25b2a71df03eb2889f7745648a689b43ecbe90aeb564fa798ca0
|
7
|
+
data.tar.gz: c79cd794580731b2c626a1530f29d0911f8342214a488ef8f4ba7c844777efec7fc60631a5864ce29b32b9a5232eb5534a3f4045a6626b7d778a31d77c817268
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/daily_notices.rb
CHANGED
@@ -66,11 +66,12 @@ class DailyNotices
|
|
66
66
|
|
67
67
|
if FileX.exists? @rssfile then
|
68
68
|
@rss = RSScreator.new @rssfile, dx_xslt: @rss_xslt,
|
69
|
-
custom_fields: ['topic']
|
69
|
+
custom_fields: ['topic'], log: @log
|
70
70
|
else
|
71
71
|
|
72
72
|
@rss = RSScreator.new @rssfile, dx_xslt: @rss_xslt,
|
73
|
-
custom_fields: ['topic']
|
73
|
+
custom_fields: ['topic'], log: @log
|
74
|
+
|
74
75
|
@rss.xslt = @rss_xslt
|
75
76
|
@rss.title = @title || identifier.capitalize + ' daily notices'
|
76
77
|
@rss.description = 'Generated using the daily_notices gem'
|
@@ -105,13 +106,15 @@ class DailyNotices
|
|
105
106
|
|
106
107
|
#@dx.create({description: description, time: time}, id: id)
|
107
108
|
puts 'before @dx.create' if @debug
|
109
|
+
@log.info 'daily_notices/create: before' if @log
|
108
110
|
|
109
111
|
# deep clone the Hash object
|
110
112
|
h3 = Marshal.load( Marshal.dump(h) )
|
111
113
|
h[:card] = h[:card].to_json if h[:card] and h[:card].is_a? Hash
|
112
114
|
|
113
115
|
@dx.create(h, id: id)
|
114
|
-
|
116
|
+
@log.info 'daily_notices/create: after' if @log
|
117
|
+
#puts 'after @dx.create' if @debug
|
115
118
|
|
116
119
|
@dx.save @indexpath
|
117
120
|
|
@@ -134,6 +137,7 @@ class DailyNotices
|
|
134
137
|
|
135
138
|
end
|
136
139
|
|
140
|
+
@log.debug 'daily_notices/create: h3: ' + h3.inspect if @log
|
137
141
|
@rss.add(item: h3, id: id)
|
138
142
|
@rss.save @rssfile
|
139
143
|
# open up the RSS file and fill in the title and description fields
|
data.tar.gz.sig
CHANGED
Binary file
|
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.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,28 +35,28 @@ cert_chain:
|
|
35
35
|
mq989lGt58a/Y5CLIB7CrHXwKhKPrMrl9wrNJQaGhmKCpC48MvGPzmGUKYO3OTRK
|
36
36
|
QCT4F3Esm7/YTYtL3CQJWI1T
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2022-01-
|
38
|
+
date: 2022-01-19 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: rss_creator
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- - ">="
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: 0.5.0
|
47
44
|
- - "~>"
|
48
45
|
- !ruby/object:Gem::Version
|
49
46
|
version: '0.5'
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 0.5.1
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
|
-
- - ">="
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version: 0.5.0
|
57
54
|
- - "~>"
|
58
55
|
- !ruby/object:Gem::Version
|
59
56
|
version: '0.5'
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: 0.5.1
|
60
60
|
- !ruby/object:Gem::Dependency
|
61
61
|
name: dx_sliml
|
62
62
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|