runeblog 0.2.98 → 0.2.99
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/blog +1 -0
- data/lib/liveblog.rb +7 -0
- data/lib/processing.rb +6 -2
- data/lib/runeblog.rb +3 -4
- data/lib/runeblog_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d65eb398cbd787046ff303ec0d045c6f3abac93b31c165bf102e54d4239f23c
|
4
|
+
data.tar.gz: 036b16fbc5c3aeae33dd0483f1e5415f93f1cbc8852c78d43c79c87458b233e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87c32ca6cb9ed8c7245178726cac650ebd1f2470f09f59cc89b3705496a7dd88503f3dce7fdd78ba26052894861aa69cc3dbf0f8be462699f7bfbe3738f2fc7f
|
7
|
+
data.tar.gz: 968b1a74bac6320060a1ffa4bdc0d3e747c450dcdd032842533f3f4d05815eecfdbada1a71c211e07b81cc1b0be3c8d0dc65d7326bbcfe3a4dcd7c062fae32fb
|
data/bin/blog
CHANGED
@@ -31,6 +31,7 @@ def get_universal
|
|
31
31
|
str = File.read(univ)
|
32
32
|
str = str.gsub(/AUTHOR/, author)
|
33
33
|
str = str.gsub(/SITE_DOMAIN/, site)
|
34
|
+
File.write(univ, str)
|
34
35
|
else
|
35
36
|
vim_params = '-c ":set hlsearch" -c ":hi Search ctermfg=2 ctermbg=6" +/"\(AUTHOR.*\|SITE.*\)"'
|
36
37
|
edit_file(univ, vim: vim_params)
|
data/lib/liveblog.rb
CHANGED
@@ -275,6 +275,13 @@ def h6; _passthru "<h6>#{@_data}</h6>"; end
|
|
275
275
|
|
276
276
|
def hr; _passthru "<hr>"; end
|
277
277
|
|
278
|
+
def nlist
|
279
|
+
_out "<ol>"
|
280
|
+
_body {|line| _out "<li>#{line}</li>" }
|
281
|
+
_out "</ol>"
|
282
|
+
_optional_blank_line
|
283
|
+
end
|
284
|
+
|
278
285
|
def list
|
279
286
|
_out "<ul>"
|
280
287
|
_body {|line| _out "<li>#{line}</li>" }
|
data/lib/processing.rb
CHANGED
@@ -21,11 +21,15 @@ def stale?(src, dst, deps, force = false)
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def preprocess(cwd: Dir.pwd, src:,
|
24
|
-
dst:
|
24
|
+
dst: nil, strip: false,
|
25
25
|
deps: [], copy: nil, debug: false, force: false,
|
26
26
|
mix: [], call: [], vars: {})
|
27
27
|
src += LEXT unless src.end_with?(LEXT)
|
28
|
-
|
28
|
+
if strip
|
29
|
+
dst = File.basename(src).sub(/.lt3$/,"")
|
30
|
+
else
|
31
|
+
dst += ".html" unless dst.end_with?(".html")
|
32
|
+
end
|
29
33
|
sp = " "*12
|
30
34
|
Dir.chdir(cwd) do
|
31
35
|
if debug
|
data/lib/runeblog.rb
CHANGED
@@ -373,7 +373,7 @@ class RuneBlog
|
|
373
373
|
html = "/tmp/post_entry.html"
|
374
374
|
preprocess src: post_entry_name, dst: html,
|
375
375
|
call: ".nopara" # , deps: depend # , debug: true
|
376
|
-
@_post_entry
|
376
|
+
@_post_entry = File.read(html)
|
377
377
|
vp = post_lookup(id)
|
378
378
|
nslug, aslug, title, date, teaser_text =
|
379
379
|
vp.nslug, vp.aslug, vp.title, vp.date, vp.teaser_text
|
@@ -499,9 +499,8 @@ class RuneBlog
|
|
499
499
|
@theme/"blog/head.lt3",
|
500
500
|
# @theme/"navbar/navbar.lt3",
|
501
501
|
@theme/"blog/index.lt3"] # FIXME what about assets?
|
502
|
-
preprocess cwd: vdir/"themes/standard/etc",
|
503
|
-
|
504
|
-
call: ".nopara" # , dst: "blog.css"
|
502
|
+
preprocess cwd: vdir/"themes/standard/etc", src: "blog.css.lt3",
|
503
|
+
copy: vdir/"remote/etc/", call: [".nopara"], strip: true
|
505
504
|
preprocess cwd: vdir/"themes/standard", deps: depend, force: true,
|
506
505
|
src: "blog/generate.lt3", dst: vdir/:remote/"index.html",
|
507
506
|
call: ".nopara"
|
data/lib/runeblog_version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: runeblog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.99
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hal Fulton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: livetext
|