runeblog 0.2.60 → 0.2.61
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/repl.rb +4 -0
- data/lib/runeblog.rb +7 -5
- 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: 65a0fbb53ba0184ee98c700924397a7054684add4f5516508410cfdbbfb742cd
|
4
|
+
data.tar.gz: fa4a3f7a744cf1ec29203ee172d111800a1bf0f6402a99fe07a05053dc8b7f86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6b1a30fb4f7d2682747516d099915d232d49a48c26bfe7c42ea8d33cce49ee27cab3d488b636ad24abeafb239f79ecbe92790019077d48ac59d484e0a0c2f5b
|
7
|
+
data.tar.gz: bc0f11f41b53e6cf625d85e84adf52bb13317417f303041fac1dc5974120433348a38924932d35ce3cc65034945fa6e9247ba9efd4e1b86643e1372e6ab04e46
|
data/lib/repl.rb
CHANGED
@@ -157,6 +157,10 @@ module RuneBlog::REPL
|
|
157
157
|
def cmd_preview(arg, testing = false)
|
158
158
|
reset_output
|
159
159
|
local = @blog.view.local_index
|
160
|
+
unless File.exist?(local)
|
161
|
+
puts "\n No index. Rebuilding..."
|
162
|
+
cmd_rebuild(nil)
|
163
|
+
end
|
160
164
|
result = system!("open #{local}")
|
161
165
|
raise CantOpen(local) unless result
|
162
166
|
@out
|
data/lib/runeblog.rb
CHANGED
@@ -331,11 +331,11 @@ class RuneBlog
|
|
331
331
|
text = nil
|
332
332
|
@theme = @view.dir/"themes/standard"
|
333
333
|
post_entry_name = @theme/"blog/post_entry.lt3"
|
334
|
-
STDERR.puts "-- @pename = #{post_entry_name}"
|
335
|
-
STDERR.puts "-- @pe = #{@_post_entry.inspect}"
|
334
|
+
# STDERR.puts "-- @pename = #{post_entry_name}"
|
335
|
+
# STDERR.puts "-- @pe = #{@_post_entry.inspect}"
|
336
336
|
depend = [post_entry_name]
|
337
337
|
xlate src: post_entry_name, dst: "/tmp/post_entry.html" # , deps: depend # , debug: true
|
338
|
-
STDERR.puts "-- xlate result: #{`ls -l /tmp/post_entry.html`}"
|
338
|
+
# STDERR.puts "-- xlate result: #{`ls -l /tmp/post_entry.html`}"
|
339
339
|
@_post_entry ||= File.read("/tmp/post_entry.html")
|
340
340
|
vp = post_lookup(id)
|
341
341
|
nslug, aslug, title, date, teaser_text =
|
@@ -375,16 +375,18 @@ STDERR.puts "-- xlate result: #{`ls -l /tmp/post_entry.html`}"
|
|
375
375
|
<body>
|
376
376
|
HTML
|
377
377
|
posts = _sorted_posts
|
378
|
+
STDERR.puts "Posts = "
|
379
|
+
posts.each {|x| STDERR.puts " " + x }
|
378
380
|
wanted = [8, posts.size].min # estimate how many we want?
|
379
381
|
enum = posts.each
|
380
382
|
entries = []
|
381
383
|
wanted.times do
|
382
384
|
postid = File.basename(enum.next)
|
383
385
|
postid = postid.to_i
|
384
|
-
STDERR.puts "-- postid = #{postid}"
|
386
|
+
# STDERR.puts "-- postid = #{postid}"
|
385
387
|
# posts.each {|x| STDERR.puts " #{x}" }
|
386
388
|
entry = index_entry(postid)
|
387
|
-
STDERR.puts "-- entry = #{entry.
|
389
|
+
# STDERR.puts "-- entry = #{entry.size} chars"
|
388
390
|
entries << entry
|
389
391
|
text << entry
|
390
392
|
end
|
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.61
|
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-11-
|
11
|
+
date: 2019-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: livetext
|