liveblog 1.0.8 → 1.0.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f3983cc2329e58fed6e4de0063e6a35602d95c0
4
- data.tar.gz: 7654ee323a0a504695935ca86856e3b34c800f5f
3
+ metadata.gz: 7e99c1660024370d08d8e7adbac1396964365718
4
+ data.tar.gz: 0c741ce4a418c0790a49c0b216f19467eebc494d
5
5
  SHA512:
6
- metadata.gz: 2a3b0dee3a942519cca53a1331cea9a610c725c50e4b8e636b268dce3ca23972f596910665c08b6dc89263b475f744da1250463047a10807d19ea8303d60a973
7
- data.tar.gz: 058d3398272fb894279afc9bcd8ef445e293c598a12aecb6646f00c3044d85a13d622aa6d9be4b21d392a62b301d8b6393e3e99b94420acd8760dbf811bce728
6
+ metadata.gz: 6907d316486d31c6d086efd79b6db60df717dffbf46e905bd53eb248c963e6bd496d5761e1cacffbc9435ebe10ac9515c3f3eeee83d8c614042fa171217f25aa
7
+ data.tar.gz: 0692c62cb26607c049fb2d8f81c2a6a68c9203537cc74d00f31acdd7a1a849493498d9174be9c9075709e3dc18405a6745a5f17fd111f3621dd7189e553acf2b
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/liveblog.rb CHANGED
@@ -122,8 +122,8 @@ class LiveBlog
122
122
 
123
123
  klass_name = 'LiveBlogPlugin' + name.to_s
124
124
 
125
- r << Kernel.const_get(klass_name)\
126
- .new(settings: settings, variables: {filepath: @dir})
125
+ r << Kernel.const_get(klass_name).new(settings: settings, \
126
+ variables: {filepath: @dir, todays_filepath: path(@d)})
127
127
 
128
128
  end
129
129
 
@@ -271,7 +271,7 @@ EOF
271
271
  @dx.create({x: raw_entry.sub(/(#\w+)$/){|x| x.downcase}}, \
272
272
  id: hashtag.downcase, custom_attributes: {uid: uid})
273
273
 
274
- @plugins.each do |x|
274
+ @plugins.each do |x|
275
275
  x.on_new_section(raw_entry, hashtag) if x.respond_to? :on_new_section
276
276
  end
277
277
 
@@ -382,6 +382,8 @@ EOF
382
382
  doc.root.xpath('records/section').each do |node|
383
383
 
384
384
  node.attributes[:created] ||= Time.now.to_s
385
+ #t = Time.parse(node.attributes[:last_modified].empty? ? \
386
+ # node.attributes[:created] : node.attributes[:last_modified])
385
387
  t = Time.parse(node.attributes[:created])
386
388
  element = Rexle::Element.new('time', value: t.strftime("%-I:%M%P"), \
387
389
  attributes: {class: 'border'})
@@ -534,4 +536,4 @@ EOF
534
536
  nil
535
537
  end
536
538
  end
537
- end
539
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liveblog
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  WoOSxvsTN7qoA8F0W4mkDpf+HhHxBOLTPykcHMIlx2gILLnNraaZ1rJlZAqWABGj
32
32
  v8lGgeeqqjd5QA==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-09-26 00:00:00.000000000 Z
34
+ date: 2015-10-12 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: dxsectionx
metadata.gz.sig CHANGED
Binary file