runeblog 0.3.31 → 0.3.33

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: ca2c06c94334073094c247fa91d80fa690f8f41417ce06ad8bd08ffa54a8d4ac
4
- data.tar.gz: 93899333a0e474f92ef37b5f2d5d69d87872d8c725b03f7e4bdb7f672b34f373
3
+ metadata.gz: 6c3a0263fc23bab307b33128588c5f41ba1bd3011069322f9b8716afa78b07d4
4
+ data.tar.gz: 92e6f6f794b2a4eeb4aff6492ac659dc9be894bee1b69817cad028e6a9f1224e
5
5
  SHA512:
6
- metadata.gz: 7820991850f9fa9219452402d8cef6344575cb2785bf94bd5a3bc5594039ecbe1a492b475730ba5bd72374a5fd0e1b0c2a0855659a0094ae3d9a39ac8d2be27a
7
- data.tar.gz: cc06dafcb764e76bf21f84687d434017304df0df2c2c7066f984373289eede21951e3a1c90ab93749d855ffb161479a7ff7076de76a0c7743317099101cb5086
6
+ metadata.gz: dea18f22c31c05a2a96424b8d948958b5bbbc5bdd417119d7547972bfdf5597f1372ad9929409705a28c2c5e3fff9552b0607a91df90438968f34acd635762a7
7
+ data.tar.gz: 22300854304c115129158ab773b141f85281431efec03a87ad8969f085cd2322f5a30f2daa42abf796ec6c651420de1ccb9c4ab94984959a4d82cdef1f34d2e6
data/lib/liveblog.rb CHANGED
@@ -323,12 +323,12 @@ end
323
323
 
324
324
  # Move elsewhere later!
325
325
 
326
- def h1; _passthru "<h1>#{@_data}</h1>"; end
327
- def h2; _passthru "<h2>#{@_data}</h2>"; end
328
- def h3; _passthru "<h3>#{@_data}</h3>"; end
329
- def h4; _passthru "<h4>#{@_data}</h4>"; end
330
- def h5; _passthru "<h5>#{@_data}</h5>"; end
331
- def h6; _passthru "<h6>#{@_data}</h6>"; end
326
+ def h1; _passthru "<h1>#{api.data}</h1>"; end
327
+ def h2; _passthru "<h2>#{api.data}</h2>"; end
328
+ def h3; _passthru "<h3>#{api.data}</h3>"; end
329
+ def h4; _passthru "<h4>#{api.data}</h4>"; end
330
+ def h5; _passthru "<h5>#{api.data}</h5>"; end
331
+ def h6; _passthru "<h6>#{api.data}</h6>"; end
332
332
 
333
333
  def hr; _passthru "<hr>"; end
334
334
 
@@ -402,7 +402,7 @@ end
402
402
  def title
403
403
  log!(enter: __method__)
404
404
  raise NoPostCall unless @meta
405
- title = @_data.chomp
405
+ title = api.data.chomp
406
406
  @meta.title = title
407
407
  setvar :title, title
408
408
  # FIXME refactor -- just output variables for a template
@@ -412,9 +412,9 @@ end
412
412
  def pubdate
413
413
  log!(enter: __method__)
414
414
  raise NoPostCall unless @meta
415
- api.debug "data = #@_data"
415
+ api.debug "data = #{api.data}"
416
416
  # Check for discrepancy?
417
- match = /(\d{4}).(\d{2}).(\d{2})/.match @_data
417
+ match = /(\d{4}).(\d{2}).(\d{2})/.match api.data
418
418
  junk, y, m, d = match.to_a
419
419
  y, m, d = y.to_i, m.to_i, d.to_i
420
420
  @meta.date = ::Date.new(y, m, d)
@@ -425,7 +425,7 @@ end
425
425
  def tags
426
426
  log!(enter: __method__)
427
427
  raise NoPostCall unless @meta
428
- api.debug "args = #{_args}"
428
+ api.debug "args = #{api.args}"
429
429
  @meta.tags = api.args.dup || []
430
430
  api.optional_blank_line
431
431
  end
@@ -433,7 +433,7 @@ end
433
433
  def views
434
434
  log!(enter: __method__)
435
435
  raise NoPostCall unless @meta
436
- api.debug "data = #{_args}"
436
+ api.debug "args = #{api.args}"
437
437
  @meta.views = api.args.dup
438
438
  api.optional_blank_line
439
439
  end
@@ -441,8 +441,8 @@ end
441
441
  def pin
442
442
  log!(enter: __method__)
443
443
  raise NoPostCall unless @meta
444
- api.debug "data = #{_args}" # verify only valid views?
445
- pinned = @_args
444
+ api.debug "args = #{api.args}" # verify only valid views?
445
+ pinned = api.args
446
446
  @meta.pinned = pinned
447
447
  pinned.each do |pinview|
448
448
  dir = @blog.root/:views/pinview/"widgets/pinned/"
@@ -833,7 +833,7 @@ def _passthru(line)
833
833
  return if line.nil?
834
834
  line = _format(line)
835
835
  api.out line + "\n"
836
- api.out "<p>" if line.empty? && ! @_nopara
836
+ api.out "<p>" if line.empty? && ! api.nopara
837
837
  end
838
838
 
839
839
  def _passthru_noline(line)
@@ -841,7 +841,7 @@ def _passthru_noline(line)
841
841
  return if line.nil?
842
842
  line = _format(line)
843
843
  api.out line
844
- api.out "<p>" if line.empty? && ! @_nopara
844
+ api.out "<p>" if line.empty? && ! api.nopara
845
845
  end
846
846
 
847
847
  def _write_metadata
@@ -1,7 +1,7 @@
1
1
  if !defined?(RuneBlog::Path)
2
2
 
3
3
  class RuneBlog
4
- VERSION = "0.3.31"
4
+ VERSION = "0.3.33"
5
5
 
6
6
  path = Gem.find_files("runeblog").grep(/runeblog-/).first
7
7
  Path = File.dirname(path)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runeblog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.31
4
+ version: 0.3.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton