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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be073789390a9bc4b8ee8f1355b359c43a03db7b39d4a1092811c5a0df281275
4
- data.tar.gz: 2152532d8674c8486b50fce13a6329337c08994b7cd264bc11025a12d2259db0
3
+ metadata.gz: 9d29cfb2e116756c7657e573834d48753642668d988d8f1445f2d557e05225e6
4
+ data.tar.gz: 105253e156c300d52f96f7f4a37714927e32b3c38ae19872102c738fab069f42
5
5
  SHA512:
6
- metadata.gz: 6ed7f49c33b34620f0a34c6f68fd0774e474e9de64f0890de135a1af8c26a8e34637398a0babee927259850ccbb9ca0ba791dc069d2a21fcf404a69f289b3294
7
- data.tar.gz: ac0743f609fb732536bd2e2a5b03ff60c2a29f624b92cc2e9bb2cfd9f61f59bd49017c89aabeda9958a73037c1403415166095730a44ad5d3d1e62ba41af0090
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
- @schema ||= 'items[title, identifier]/item(title, description, time, link)'
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 - %d %b %Y')
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.0
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-02-24 00:00:00.000000000 Z
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