runeblog 0.3.31 → 0.3.32
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 +4 -4
- data/lib/liveblog.rb +12 -12
- data/lib/runeblog_version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d996f836b5bd500be74c95744391c5fa65aefeb6365a9cdb54d10bbd1b1017b
|
4
|
+
data.tar.gz: 9ddc154d9313f44ea0dfdbb4a4bc78fc9f3f4ae72539a74b873ed09ac7ad1df4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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>#{
|
327
|
-
def h2; _passthru "<h2>#{
|
328
|
-
def h3; _passthru "<h3>#{
|
329
|
-
def h4; _passthru "<h4>#{
|
330
|
-
def h5; _passthru "<h5>#{
|
331
|
-
def h6; _passthru "<h6>#{
|
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 =
|
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 =
|
415
|
+
api.debug "data = #{api.data}"
|
416
416
|
# Check for discrepancy?
|
417
|
-
match = /(\d{4}).(\d{2}).(\d{2})/.match
|
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 =
|
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? && !
|
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? && !
|
844
|
+
api.out "<p>" if line.empty? && ! api.nopara
|
845
845
|
end
|
846
846
|
|
847
847
|
def _write_metadata
|
data/lib/runeblog_version.rb
CHANGED