daily_notices 0.7.0 → 0.7.1
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 +5 -2
- metadata +2 -2
- 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: 9d29cfb2e116756c7657e573834d48753642668d988d8f1445f2d557e05225e6
|
4
|
+
data.tar.gz: 105253e156c300d52f96f7f4a37714927e32b3c38ae19872102c738fab069f42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b67265385e875a1e06298a942184287493117e490390e8e562769e7dcc9055b2362bf7a957e80e1763c75aa01aa89c00bdb20816ffd6913d940b6f5f227741de
|
7
|
+
data.tar.gz: a97e40f82b5b09ecca4d821e40f1d2e422007087548f4ea96c7a9874204aed7ff8488f75294cdd8fde477db67ea765f789354e7f959ba8611ece4818a0bf4a12
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/daily_notices.rb
CHANGED
@@ -23,7 +23,10 @@ class DailyNotices
|
|
23
23
|
target_page, target_xslt, identifier, log, debug
|
24
24
|
|
25
25
|
|
26
|
-
|
26
|
+
# note: card is intended for storing meta data in JSON format
|
27
|
+
|
28
|
+
@schema ||= 'items[title, identifier, image]/item(title, description, ' +
|
29
|
+
'card, time, link)'
|
27
30
|
@default_key ||= 'uid'
|
28
31
|
|
29
32
|
if dx_xslt.nil? then
|
@@ -95,7 +98,7 @@ class DailyNotices
|
|
95
98
|
h[:link] ||= create_link(id)
|
96
99
|
h[:title] ||= h[:description]
|
97
100
|
.split(/\n/,2).first.gsub(/\<\/?\w+[^>]*>/,'')[0..140]
|
98
|
-
h[:time] ||= Time.now.strftime('%H:%M %p
|
101
|
+
h[:time] ||= Time.now.strftime('%H:%M %p · %b %d %Y')
|
99
102
|
|
100
103
|
#@dx.create({description: description, time: time}, id: id)
|
101
104
|
puts 'before @dx.create' if @debug
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
mq989lGt58a/Y5CLIB7CrHXwKhKPrMrl9wrNJQaGhmKCpC48MvGPzmGUKYO3OTRK
|
36
36
|
QCT4F3Esm7/YTYtL3CQJWI1T
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2021-
|
38
|
+
date: 2021-03-19 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: rss_creator
|
metadata.gz.sig
CHANGED
Binary file
|