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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2e2d6239b2bc6f88fb80687c6facad5415fac4427618a7b2e47e760d326dc9e
4
- data.tar.gz: 0e051d0b4adcc856fdf39451dfc2e85bcf80c80e4fc96b98edd34f736ac44796
3
+ metadata.gz: 65a0fbb53ba0184ee98c700924397a7054684add4f5516508410cfdbbfb742cd
4
+ data.tar.gz: fa4a3f7a744cf1ec29203ee172d111800a1bf0f6402a99fe07a05053dc8b7f86
5
5
  SHA512:
6
- metadata.gz: 400005cd7790c4d6af7e098f28c28697ea1a5a7e4b97a80dfcd121143a904f9504493d48f98085bcc07876cabd40f5ecbffcc4a5b7d7d37efca46780fd6ffb1c
7
- data.tar.gz: f0713c12bb117df71c84f0f41ae9fc2d11c0cc9479882b7fe2154b5567dc68d2295bd099b8597fcac209738c86f6c511f256d25443e8bf95e6e9dd2b00b34207
6
+ metadata.gz: e6b1a30fb4f7d2682747516d099915d232d49a48c26bfe7c42ea8d33cce49ee27cab3d488b636ad24abeafb239f79ecbe92790019077d48ac59d484e0a0c2f5b
7
+ data.tar.gz: bc0f11f41b53e6cf625d85e84adf52bb13317417f303041fac1dc5974120433348a38924932d35ce3cc65034945fa6e9247ba9efd4e1b86643e1372e6ab04e46
@@ -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
@@ -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.inspect}"
389
+ # STDERR.puts "-- entry = #{entry.size} chars"
388
390
  entries << entry
389
391
  text << entry
390
392
  end
@@ -2,7 +2,7 @@
2
2
  if ! (Object.constants.include?(:RuneBlog) && RuneBlog.constants.include?(:Path))
3
3
 
4
4
  class RuneBlog
5
- VERSION = "0.2.60"
5
+ VERSION = "0.2.61"
6
6
 
7
7
  path = Gem.find_files("runeblog").grep(/runeblog-/).first
8
8
  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.60
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 00:00:00.000000000 Z
11
+ date: 2019-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: livetext