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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 248dd46a09bcde995ae04c6f20c0c510446c0377ac9709a33109b0ade0da392e
4
- data.tar.gz: ed6064e271145b44759401b2192cbe21d1475338db779c9b14a861e3c643599b
3
+ metadata.gz: 0d65eb398cbd787046ff303ec0d045c6f3abac93b31c165bf102e54d4239f23c
4
+ data.tar.gz: 036b16fbc5c3aeae33dd0483f1e5415f93f1cbc8852c78d43c79c87458b233e8
5
5
  SHA512:
6
- metadata.gz: 67b27edb3c7a18781eec1e3edfd885fca1edf8606d03cd62ea4e11c890eb9f4f15b7f94868827ea815f110042729d162bcaaa77171a6a6b8727dc78e78669cf2
7
- data.tar.gz: 9698861365fb1d6f9be3eb33adead8b0e48e0effd8aaafb6cec44010ebfd4ea086ba98a3d3b3d803393fd5f18b75d77ed4b67ad81a0efa6947daf324d6137056
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)
@@ -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>" }
@@ -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: (strip = true; File.basename(src).sub(/.lt3$/,"")),
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
- dst += ".html" unless (dst.end_with?(".html") || strip)
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
@@ -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 ||= File.read(html)
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", # deps: depend, debug: true,
503
- src: "blog.css.lt3", copy: vdir/"remote/etc/",
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"
@@ -3,7 +3,7 @@ if !defined?(RuneBlog::Path)
3
3
  # if ! (Object.constants.include?(:RuneBlog) && RuneBlog.constants.include?(:Path))
4
4
 
5
5
  class RuneBlog
6
- VERSION = "0.2.98"
6
+ VERSION = "0.2.99"
7
7
 
8
8
  path = Gem.find_files("runeblog").grep(/runeblog-/).first
9
9
  Path = File.dirname(path)
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.98
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-25 00:00:00.000000000 Z
11
+ date: 2019-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: livetext