runeblog 0.3.35 → 0.3.36
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/global.lt3 +3 -3
- data/empty_view/themes/standard/blog/index.lt3 +8 -4
- data/lib/liveblog.rb +1 -0
- data/lib/lowlevel.rb +19 -7
- data/lib/processing.rb +6 -0
- data/lib/repl.rb +2 -4
- data/lib/runeblog.rb +1 -4
- data/lib/runeblog_version.rb +1 -1
- data/lib/view.rb +0 -2
- data/runeblog.gemspec +2 -2
- data/test/.blogs/data/VERSION +2 -2
- data/test/.blogs/data/global.lt3 +3 -3
- data/test/.blogs/data/sequence +1 -1
- data/test/.blogs/drafts/0001-whats-at-stubbs.lt3 +13 -0
- data/test/.blogs/drafts/0002-the-new-amphitheatre-is-overrated.lt3 +14 -0
- data/test/.blogs/drafts/0003-the-graffiti-wall.lt3 +42 -0
- data/test/.blogs/drafts/0004-the-waller-creek-project.lt3 +13 -0
- data/test/.blogs/drafts/0005-life-on-sabine-street.lt3 +13 -0
- data/test/.blogs/drafts/0006-remember-modest-mouse.lt3 +14 -0
- data/test/.blogs/posts/0001-whats-at-stubbs/guts.html +6 -0
- data/test/.blogs/posts/0001-whats-at-stubbs/metadata.txt +7 -0
- data/test/.blogs/posts/0001-whats-at-stubbs/teaser.txt +1 -0
- data/test/.blogs/posts/0002-the-new-amphitheatre-is-overrated/guts.html +6 -0
- data/test/.blogs/posts/0002-the-new-amphitheatre-is-overrated/metadata.txt +7 -0
- data/test/.blogs/posts/0002-the-new-amphitheatre-is-overrated/teaser.txt +1 -0
- data/test/.blogs/posts/0003-the-graffiti-wall/guts.html +6 -0
- data/test/.blogs/posts/0003-the-graffiti-wall/metadata.txt +7 -0
- data/test/.blogs/posts/0003-the-graffiti-wall/teaser.txt +1 -0
- data/test/.blogs/posts/0004-the-waller-creek-project/guts.html +6 -0
- data/test/.blogs/posts/0004-the-waller-creek-project/metadata.txt +7 -0
- data/test/.blogs/posts/0004-the-waller-creek-project/teaser.txt +1 -0
- data/test/.blogs/posts/0005-life-on-sabine-street/guts.html +6 -0
- data/test/.blogs/posts/0005-life-on-sabine-street/metadata.txt +7 -0
- data/test/.blogs/posts/0005-life-on-sabine-street/teaser.txt +1 -0
- data/test/.blogs/posts/0006-remember-modest-mouse/guts.html +6 -0
- data/test/.blogs/posts/0006-remember-modest-mouse/metadata.txt +7 -0
- data/test/.blogs/posts/0006-remember-modest-mouse/teaser.txt +1 -0
- data/test/.blogs/views/around_austin/global.lt3 +3 -3
- data/test/.blogs/views/around_austin/posts/0001-whats-at-stubbs/guts.html +6 -0
- data/test/.blogs/views/around_austin/posts/0001-whats-at-stubbs/metadata.txt +7 -0
- data/test/.blogs/views/around_austin/posts/0001-whats-at-stubbs/teaser.txt +1 -0
- data/test/.blogs/views/around_austin/posts/0002-the-new-amphitheatre-is-overrated/guts.html +6 -0
- data/test/.blogs/views/around_austin/posts/0002-the-new-amphitheatre-is-overrated/metadata.txt +7 -0
- data/test/.blogs/views/around_austin/posts/0002-the-new-amphitheatre-is-overrated/teaser.txt +1 -0
- data/test/.blogs/views/around_austin/posts/0003-the-graffiti-wall/guts.html +6 -0
- data/test/.blogs/views/around_austin/posts/0003-the-graffiti-wall/metadata.txt +7 -0
- data/test/.blogs/views/around_austin/posts/0003-the-graffiti-wall/teaser.txt +1 -0
- data/test/.blogs/views/around_austin/posts/0004-the-waller-creek-project/guts.html +6 -0
- data/test/.blogs/views/around_austin/posts/0004-the-waller-creek-project/metadata.txt +7 -0
- data/test/.blogs/views/around_austin/posts/0004-the-waller-creek-project/teaser.txt +1 -0
- data/test/.blogs/views/around_austin/posts/0005-life-on-sabine-street/guts.html +6 -0
- data/test/.blogs/views/around_austin/posts/0005-life-on-sabine-street/metadata.txt +7 -0
- data/test/.blogs/views/around_austin/posts/0005-life-on-sabine-street/teaser.txt +1 -0
- data/test/.blogs/views/around_austin/posts/0006-remember-modest-mouse/guts.html +6 -0
- data/test/.blogs/views/around_austin/posts/0006-remember-modest-mouse/metadata.txt +7 -0
- data/test/.blogs/views/around_austin/posts/0006-remember-modest-mouse/teaser.txt +1 -0
- data/test/.blogs/views/around_austin/remote/banner/navbar/about.html +10 -0
- data/test/.blogs/views/around_austin/remote/banner/navbar/contact.html +10 -0
- data/test/.blogs/views/around_austin/remote/banner/navbar/faq.html +46 -0
- data/test/.blogs/views/around_austin/remote/etc/blog.css +66 -0
- data/test/.blogs/views/around_austin/remote/history +6 -0
- data/test/.blogs/views/around_austin/remote/life-on-sabine-street.html +2 -0
- data/test/.blogs/views/around_austin/remote/recent.html +4 -0
- data/test/.blogs/views/around_austin/remote/remember-modest-mouse.html +2 -0
- data/test/.blogs/views/around_austin/remote/the-graffiti-wall.html +2 -0
- data/test/.blogs/views/around_austin/remote/the-new-amphitheatre-is-overrated.html +2 -0
- data/test/.blogs/views/around_austin/remote/the-waller-creek-project.html +2 -0
- data/test/.blogs/views/around_austin/remote/whats-at-stubbs.html +2 -0
- data/test/.blogs/views/around_austin/remote/widgets/bydates/README +2 -0
- data/test/.blogs/views/around_austin/remote/widgets/bydates/bydates.rb +18 -0
- data/test/.blogs/views/around_austin/remote/widgets/bydates/card.css +1 -0
- data/test/.blogs/views/around_austin/remote/widgets/bydates/custom.rb +1 -0
- data/test/.blogs/views/around_austin/remote/widgets/bydates/main.css +2 -0
- data/test/.blogs/views/around_austin/remote/widgets/links/README +2 -0
- data/test/.blogs/views/around_austin/remote/widgets/links/card.css +1 -0
- data/test/.blogs/views/around_austin/remote/widgets/links/custom.rb +1 -0
- data/test/.blogs/views/around_austin/remote/widgets/links/links.rb +90 -0
- data/test/.blogs/views/around_austin/remote/widgets/links/list.data +3 -0
- data/test/.blogs/views/around_austin/remote/widgets/links/main.css +2 -0
- data/test/.blogs/views/around_austin/remote/widgets/news/README +2 -0
- data/test/.blogs/views/around_austin/remote/widgets/news/card.css +1 -0
- data/test/.blogs/views/around_austin/remote/widgets/news/custom.rb +1 -0
- data/test/.blogs/views/around_austin/remote/widgets/news/list.data +4 -0
- data/test/.blogs/views/around_austin/remote/widgets/news/main.css +2 -0
- data/test/.blogs/views/around_austin/remote/widgets/news/news.rb +88 -0
- data/test/.blogs/views/around_austin/remote/widgets/pages/README +2 -0
- data/test/.blogs/views/around_austin/remote/widgets/pages/card.css +1 -0
- data/test/.blogs/views/around_austin/remote/widgets/pages/custom.rb +1 -0
- data/test/.blogs/views/around_austin/remote/widgets/pages/disclaim.lt3 +10 -0
- data/test/.blogs/views/around_austin/remote/widgets/pages/faq.lt3 +41 -0
- data/test/.blogs/views/around_austin/remote/widgets/pages/like-dislike.lt3 +11 -0
- data/test/.blogs/views/around_austin/remote/widgets/pages/list.data +4 -0
- data/test/.blogs/views/around_austin/remote/widgets/pages/local.rb +0 -0
- data/test/.blogs/views/around_austin/remote/widgets/pages/main.css +2 -0
- data/test/.blogs/views/around_austin/remote/widgets/pages/other-stuff.lt3 +10 -0
- data/test/.blogs/views/around_austin/remote/widgets/pages/pages.rb +130 -0
- data/test/.blogs/views/around_austin/remote/widgets/pinned/README +2 -0
- data/test/.blogs/views/around_austin/remote/widgets/pinned/card.css +1 -0
- data/test/.blogs/views/around_austin/remote/widgets/pinned/custom.rb +1 -0
- data/test/.blogs/views/around_austin/remote/widgets/pinned/main.css +2 -0
- data/test/.blogs/views/around_austin/remote/widgets/pinned/pinned.rb +111 -0
- data/test/.blogs/views/around_austin/remote/widgets/search/README +2 -0
- data/test/.blogs/views/around_austin/remote/widgets/search/card.css +1 -0
- data/test/.blogs/views/around_austin/remote/widgets/search/custom.rb +1 -0
- data/test/.blogs/views/around_austin/remote/widgets/search/main.css +2 -0
- data/test/.blogs/views/around_austin/remote/widgets/search/search.rb +18 -0
- data/test/.blogs/views/around_austin/remote/widgets/sitemap/README +2 -0
- data/test/.blogs/views/around_austin/remote/widgets/sitemap/card.css +1 -0
- data/test/.blogs/views/around_austin/remote/widgets/sitemap/custom.rb +1 -0
- data/test/.blogs/views/around_austin/remote/widgets/sitemap/main.css +2 -0
- data/test/.blogs/views/around_austin/remote/widgets/sitemap/sitemap.rb +18 -0
- data/test/.blogs/views/around_austin/remote/widgets/tag-cloud/OLD-example.lt3 +12 -0
- data/test/.blogs/views/around_austin/remote/widgets/tag-cloud/README +2 -0
- data/test/.blogs/views/around_austin/remote/widgets/tag-cloud/card.css +1 -0
- data/test/.blogs/views/around_austin/remote/widgets/tag-cloud/custom.rb +1 -0
- data/test/.blogs/views/around_austin/remote/widgets/tag-cloud/main.css +2 -0
- data/test/.blogs/views/around_austin/remote/widgets/tag-cloud/tag-cloud.lt3 +3 -0
- data/test/.blogs/views/around_austin/remote/widgets/tag-cloud/tag-cloud.rb +18 -0
- data/test/.blogs/views/around_austin/settings/view.txt +4 -4
- data/test/.blogs/views/around_austin/themes/standard/banner/navbar/navbar.html +10 -0
- data/test/.blogs/views/around_austin/themes/standard/banner/top.html +22 -0
- data/test/.blogs/views/around_austin/themes/standard/blog/index.lt3 +8 -4
- data/test/.blogs/views/around_austin/themes/standard/etc/blog.css +66 -0
- data/test/.blogs/views/around_austin/widgets/links/links-card.html +18 -0
- data/test/.blogs/views/around_austin/widgets/links/links-main.html +13 -0
- data/test/binblog.txt +2 -0
- data/test/stderr.out +0 -0
- metadata +119 -9
- data/test/.blogs/views/around_austin/themes/standard/global.lt3 +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea9b85dbf3f321c19a1d899e4a6497b519d7cfa5c9fc03845aa3afa4b13e7638
|
4
|
+
data.tar.gz: b5f8701cbe8582e1ce91236a5780ee7a1e8a718116a6ce82139dde6b555bb81a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e883273032e6248242617fa9d6bf268ec941362662a02f8675eca3e1f5ede9bd0937480c4682bc59511d4e44c16708c3d34ab4e023e89af763ff9770c77b9aed
|
7
|
+
data.tar.gz: 5d55bed811723a81323e3850d0481340b6f24d66845c57d555b2587a9194661dc6890acf142b8650a8f9bb3b512259519b705ab6975084028a3e09096a1b7a03
|
data/data/global.lt3
CHANGED
@@ -3,11 +3,11 @@
|
|
3
3
|
. <variable> <value>
|
4
4
|
. --------------------------------------------------
|
5
5
|
|
6
|
-
.variables view
|
6
|
+
.variables view settings/view.txt
|
7
7
|
|
8
|
-
.variables recent
|
8
|
+
.variables recent settings/recent.txt
|
9
9
|
|
10
|
-
.variables publish
|
10
|
+
.variables publish settings/publish.txt
|
11
11
|
|
12
12
|
.variables
|
13
13
|
host http://SITE
|
data/lib/liveblog.rb
CHANGED
data/lib/lowlevel.rb
CHANGED
@@ -1,17 +1,29 @@
|
|
1
|
-
def whence(back = 0)
|
1
|
+
private def whence(back = 0)
|
2
2
|
file, line, inmeth = caller[back].split(":")
|
3
3
|
meth = inmeth[4..-2]
|
4
4
|
[file, line, meth]
|
5
5
|
end
|
6
6
|
|
7
|
+
private def display(file, line, meth, msg)
|
8
|
+
puts "--- #{meth} #{line} in #{file}"
|
9
|
+
puts "::: " + msg if msg
|
10
|
+
end
|
11
|
+
|
7
12
|
def checkpoint(msg = nil)
|
8
13
|
file, line, meth = whence(1)
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
14
|
+
display(file, line, meth, msg)
|
15
|
+
end
|
16
|
+
|
17
|
+
def checkpoint?(msg = nil) # with sleep 3
|
18
|
+
file, line, meth = whence(1)
|
19
|
+
display(file, line, meth, msg)
|
20
|
+
end
|
21
|
+
|
22
|
+
def checkpoint!(msg = nil) # with pause
|
23
|
+
file, line, meth = whence(1)
|
24
|
+
display(file, line, meth, msg)
|
25
|
+
print "::: Pause..."
|
26
|
+
gets
|
15
27
|
end
|
16
28
|
|
17
29
|
def warning(err)
|
data/lib/processing.rb
CHANGED
@@ -25,6 +25,10 @@ def preprocess(cwd: Dir.pwd, src:,
|
|
25
25
|
deps: [], copy: nil, debug: false, force: false,
|
26
26
|
mix: [], call: [],
|
27
27
|
vars: {})
|
28
|
+
params = "cwd = #{cwd.inspect}\n src = #{src.inspect}\n dst = #{dst.inspect}"
|
29
|
+
params << "\n deps = #{deps.inspect}\n copy = #{copy.inspect}\n debug = #{debug} force = #{force}"
|
30
|
+
params << "\n mix = #{mix.inspect} call = #{call.inspect}\n vars = #{vars.inspect}"
|
31
|
+
# checkpoint! "args: #{params}"
|
28
32
|
src += LEXT unless src.end_with?(LEXT)
|
29
33
|
if strip
|
30
34
|
dst = File.basename(src).sub(/.lt3$/,"")
|
@@ -61,8 +65,10 @@ def preprocess(cwd: Dir.pwd, src:,
|
|
61
65
|
EOF
|
62
66
|
if stale
|
63
67
|
live = Livetext.customize(mix: "liveblog", call: call, vars: vars)
|
68
|
+
checkpoint! "Calling xform_file"
|
64
69
|
log!(str: "Calling xform_file... src = #{src} pwd = #{Dir.pwd}")
|
65
70
|
out = live.xform_file(src)
|
71
|
+
checkpoint!
|
66
72
|
File.write(dst, out)
|
67
73
|
system!("cp #{dst} #{copy}") if copy
|
68
74
|
end
|
data/lib/repl.rb
CHANGED
@@ -231,14 +231,12 @@ log! str: "=== Calling generate_post(#{orig})"
|
|
231
231
|
end
|
232
232
|
|
233
233
|
def cmd_rebuild
|
234
|
-
log! str: "=== Starting cmd_rebuild..."
|
235
234
|
puts
|
236
235
|
regen_posts
|
237
|
-
log! str: "=== Generating view..."
|
238
236
|
@blog.generate_view(@blog.view)
|
239
|
-
|
237
|
+
checkpoint! "Generating index..."
|
240
238
|
@blog.generate_index(@blog.view)
|
241
|
-
|
239
|
+
checkpoint! "...finished!"
|
242
240
|
rescue => err
|
243
241
|
_tmp_error(err)
|
244
242
|
end
|
data/lib/runeblog.rb
CHANGED
@@ -140,10 +140,7 @@ class RuneBlog
|
|
140
140
|
log!(enter: "RuneBlog.read", args: [root_rel])
|
141
141
|
RuneBlog.new(root_rel)
|
142
142
|
rescue => err
|
143
|
-
|
144
|
-
# puts "Error - see stderr.out"
|
145
|
-
puts err.inspect # + "\n" + err&.backtrace
|
146
|
-
sleep 3
|
143
|
+
fatal(err)
|
147
144
|
end
|
148
145
|
|
149
146
|
def initialize(root_rel = ".blogs") ##### FIXME ??
|
data/lib/runeblog_version.rb
CHANGED
data/lib/view.rb
CHANGED
@@ -42,9 +42,7 @@ class RuneBlog::View
|
|
42
42
|
return unless File.exist?(gfile) # Hackish!! how is View.new called from create_view??
|
43
43
|
|
44
44
|
live = Livetext.customize(call: ".nopara")
|
45
|
-
checkpoint "Error here? gfile = #{gfile}"
|
46
45
|
live.xform_file(gfile)
|
47
|
-
checkpoint "After xform"
|
48
46
|
live.setvar("ViewDir", @blog.root/:views/@name)
|
49
47
|
live.setvar("View", @name)
|
50
48
|
@globals = live.vars
|
data/runeblog.gemspec
CHANGED
@@ -23,11 +23,11 @@ spec = Gem::Specification.new do |s|
|
|
23
23
|
s.authors = ["Hal Fulton"]
|
24
24
|
s.email = 'rubyhacker@gmail.com'
|
25
25
|
s.executables << "blog"
|
26
|
-
s.add_runtime_dependency 'livetext', '~> 0.9', '>= 0.9.
|
26
|
+
s.add_runtime_dependency 'livetext', '~> 0.9', '>= 0.9.45'
|
27
27
|
s.add_runtime_dependency 'rubytext', '~> 0.1', '>= 0.1.27'
|
28
28
|
s.add_runtime_dependency 'rouge', '~> 3.25', '>= 3.25.0'
|
29
29
|
|
30
|
-
s.add_development_dependency 'minitest', '~> 5.
|
30
|
+
s.add_development_dependency 'minitest', '~> 5.20', '>= 5.20.0'
|
31
31
|
|
32
32
|
# Files...
|
33
33
|
main = Find.find("bin").to_a +
|
data/test/.blogs/data/VERSION
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
0.3.
|
2
|
-
Blog created: 2024-05-
|
1
|
+
0.3.35
|
2
|
+
Blog created: 2024-05-21 17:50:33 -0500
|
data/test/.blogs/data/global.lt3
CHANGED
@@ -3,11 +3,11 @@
|
|
3
3
|
. <variable> <value>
|
4
4
|
. --------------------------------------------------
|
5
5
|
|
6
|
-
.variables view
|
6
|
+
.variables view settings/view.txt
|
7
7
|
|
8
|
-
.variables recent
|
8
|
+
.variables recent settings/recent.txt
|
9
9
|
|
10
|
-
.variables publish
|
10
|
+
.variables publish settings/publish.txt
|
11
11
|
|
12
12
|
.variables
|
13
13
|
host http://SITE
|
data/test/.blogs/data/sequence
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
6
|
@@ -0,0 +1,14 @@
|
|
1
|
+
.post 2
|
2
|
+
|
3
|
+
.title The new amphitheatre is overrated
|
4
|
+
.pubdate 2024-05-03
|
5
|
+
.views around_austin
|
6
|
+
.tags
|
7
|
+
|
8
|
+
.teaser
|
9
|
+
It used to be that all major concerts played the Erwin Center.
|
10
|
+
|
11
|
+
.end
|
12
|
+
.pin around_austin
|
13
|
+
Now, depending on what you consider "major," blah blah blah...
|
14
|
+
|
@@ -0,0 +1,42 @@
|
|
1
|
+
.post 3
|
2
|
+
|
3
|
+
.title The graffiti wall
|
4
|
+
.pubdate 2024-05-05
|
5
|
+
.views around_austin
|
6
|
+
.tags
|
7
|
+
|
8
|
+
.teaser
|
9
|
+
RIP, Hope Gallery
|
10
|
+
|
11
|
+
.end
|
12
|
+
|
13
|
+
.dropcap It's been a while since I was there. They say it was torn down
|
14
|
+
while I wasn't looking. Never tagged anything there, of course, nor
|
15
|
+
anywhere else. Spraypainting public places isn't my thing, but in this
|
16
|
+
case I condoned it because it was sort of there for that purpose.
|
17
|
+
|
18
|
+
This fake entry is a long one so as to demonstrate both drop-caps
|
19
|
+
(above) and an inset quote. Blah blah blah. Lorem ipsum dolor and
|
20
|
+
a partridge in a pear tree.
|
21
|
+
|
22
|
+
.inset left 20
|
23
|
+
Wherever you go, there you are. Last night I saw upon the stair
|
24
|
+
a little man who was not there. He wasn't there again today; I
|
25
|
+
wish, I wish he'd go away. As far as we know, our computer has
|
26
|
+
never had an undetected error.
|
27
|
+
|On a clean disk, you can seek forever.
|
28
|
+
And never let it be denied that
|
29
|
+
pobbles are happier without their toes. And may your snark never
|
30
|
+
be a boojum. How do you know you aren't dreaming right now? When
|
31
|
+
you see a butterfly, think of Chuang Tzu.
|
32
|
+
.end
|
33
|
+
|
34
|
+
Contact light. Houston, this is Tranquility Base. The Eagle has
|
35
|
+
landed. That's one small step for (a) man, one giant leap for
|
36
|
+
mankind.
|
37
|
+
|
38
|
+
Here's the PDF of $$link["Ruby for the Old-Time C Programmer"|http://rubyhacker.com/blog2/rubydino.pdf]
|
39
|
+
|
40
|
+
Pity this busy monster, manunkind, not. Pity rather... Listen:
|
41
|
+
There's a hell of a universe next door; let's go.
|
42
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
Stubbs has been around for longer than civilization.
|
@@ -0,0 +1 @@
|
|
1
|
+
It used to be that all major concerts played the Erwin Center.
|
@@ -0,0 +1 @@
|
|
1
|
+
RIP, Hope Gallery
|
@@ -0,0 +1 @@
|
|
1
|
+
Will it ever be finished?
|
@@ -0,0 +1 @@
|
|
1
|
+
It's like Pooh Corner, except not.
|
@@ -0,0 +1 @@
|
|
1
|
+
They date to the 90s or before.
|
@@ -3,11 +3,11 @@
|
|
3
3
|
. <variable> <value>
|
4
4
|
. --------------------------------------------------
|
5
5
|
|
6
|
-
.variables view
|
6
|
+
.variables view settings/view.txt
|
7
7
|
|
8
|
-
.variables recent
|
8
|
+
.variables recent settings/recent.txt
|
9
9
|
|
10
|
-
.variables publish
|
10
|
+
.variables publish settings/publish.txt
|
11
11
|
|
12
12
|
.variables
|
13
13
|
host http://SITE
|
@@ -0,0 +1 @@
|
|
1
|
+
Stubbs has been around for longer than civilization.
|
@@ -0,0 +1 @@
|
|
1
|
+
It used to be that all major concerts played the Erwin Center.
|
@@ -0,0 +1 @@
|
|
1
|
+
RIP, Hope Gallery
|
@@ -0,0 +1 @@
|
|
1
|
+
Will it ever be finished?
|
@@ -0,0 +1 @@
|
|
1
|
+
It's like Pooh Corner, except not.
|
@@ -0,0 +1 @@
|
|
1
|
+
They date to the 90s or before.
|