runeblog 0.3.31 → 0.3.32

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: 7d996f836b5bd500be74c95744391c5fa65aefeb6365a9cdb54d10bbd1b1017b
4
+ data.tar.gz: 9ddc154d9313f44ea0dfdbb4a4bc78fc9f3f4ae72539a74b873ed09ac7ad1df4
5
5
  SHA512:
6
- metadata.gz: 7820991850f9fa9219452402d8cef6344575cb2785bf94bd5a3bc5594039ecbe1a492b475730ba5bd72374a5fd0e1b0c2a0855659a0094ae3d9a39ac8d2be27a
7
- data.tar.gz: cc06dafcb764e76bf21f84687d434017304df0df2c2c7066f984373289eede21951e3a1c90ab93749d855ffb161479a7ff7076de76a0c7743317099101cb5086
6
+ metadata.gz: 2206dad8d14232d9d61653969b762c5fb5ad57c3bd417897bc86e2a9e85f6f19aa870dc872ae833e81c01aca35c5a953b7bd3ca95abcc2f988061583dbf91004
7
+ data.tar.gz: 1a23109be0e265f7ec7e34d9e2b6f3a1a6bcce3cad996f4270571d1c41dd2e0f03f16316e55e89b0a582e500260d915108b6dc75c0b3a56f8eeadb36b03f5918
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)
@@ -442,7 +442,7 @@ def pin
442
442
  log!(enter: __method__)
443
443
  raise NoPostCall unless @meta
444
444
  api.debug "data = #{_args}" # verify only valid views?
445
- pinned = @_args
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.32"
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.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton