runeblog 0.3.25 → 0.3.26

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: 1634f68d28af34445954bd9850f55772966c33f8d2f007527b26eecc032f1b53
4
- data.tar.gz: 11c6fdeddde23b4fed649723f3ad922f9ed7315caa611136e5f1918ef8c9e281
3
+ metadata.gz: 646006af4da125dc3a6d968d76078b017e3b88d109a566e9e6b58cf90b24f91e
4
+ data.tar.gz: 2c6de1ce325f0183ad07c72fd13f73464079c2939a0980d35aedaa339117b866
5
5
  SHA512:
6
- metadata.gz: 88fe3e00659520d8f2374e083bb244a1d8dfb93db05d035191d669f4b0a73c74f248cba790680a90d52e4dcafc63dc3c0c27f7d8968771b9536b19aab49b6d66
7
- data.tar.gz: 0e33bd019f9a7b2278543291779a46234db6b845a4a7f282c8b7fdad0548f0af5dce5ccac2b9315d61636d44a51f6183b8ef1ee41befbaccd9708d383aa42851
6
+ metadata.gz: 3bf8be383a0b54359dfc55da15f33008348039de26d6ce79806c49db682c4015e6239a6cc0614dd50cc630de4e2df8d403e75c6b6640cd750fdf6f91d6d96ebd
7
+ data.tar.gz: 551c4be7d6f9d3b89c4e9a681083fbb63598a8e885b2bf1fc86816cc469ae39319a08e68590a1740d30e234698f54e8ea4e8e54d03b477fccddbca4b45acbe26
@@ -197,6 +197,7 @@ def banner
197
197
  count += 1
198
198
  tag, *data = line.split
199
199
  data ||= []
200
+ deps = [@blog.view.globals[:ViewDir]/:data/"global.lt3"]
200
201
  case tag
201
202
  when "width"; wide = data[0]
202
203
  when "height"; high = data[0]
@@ -217,7 +218,7 @@ def banner
217
218
  if ! File.exist?(file)
218
219
  src = file.sub(/html$/, "lt3")
219
220
  if File.exist?(src)
220
- preprocess src: src, dst: file, call: ".nopara", vars: @blog.view.globals
221
+ preprocess src: src, dst: file, deps: deps, call: ".nopara", vars: @blog.view.globals
221
222
  else
222
223
  raise FoundNeither(file, src)
223
224
  end
@@ -21,14 +21,6 @@ std = "themes/standard"
21
21
  data = "." # CHANGED
22
22
 
23
23
  Menu.top_config = {
24
- "Variables (general)" => edit("#{data}/global.lt3"),
25
- " View-specific" => edit("settings/view.txt"),
26
- " Recent posts" => edit("settings/recent.txt"),
27
- " Publishing" => edit("settings/publish.txt"),
28
- "Configuration: enable/disable" => edit("settings/features.txt"),
29
- " Reddit" => edit("config/reddit/credentials.txt"),
30
- " Facebook" => edit("config/facebook/credentials.txt"),
31
- " Twitter" => edit("config/twitter/credentials.txt"),
32
24
  "View: generator" => edit("#{std}/blog/generate.lt3"),
33
25
  " HEAD info" => edit("#{std}/blog/head.lt3"),
34
26
  " Layout " => edit("#{std}/blog/index.lt3"),
@@ -39,6 +31,14 @@ Menu.top_config = {
39
31
  "Generator for a post" => edit("#{std}/post/generate.lt3"),
40
32
  " HEAD info for post" => edit("#{std}/post/head.lt3"),
41
33
  " Content for post" => edit("#{std}/post/index.lt3"),
34
+ "Variables (general)" => edit("#{data}/global.lt3"),
35
+ " View-specific" => edit("settings/view.txt"),
36
+ " Recent posts" => edit("settings/recent.txt"),
37
+ " Publishing" => edit("settings/publish.txt"),
38
+ "Configuration: enable/disable" => edit("settings/features.txt"),
39
+ " Reddit" => edit("config/reddit/credentials.txt"),
40
+ " Facebook" => edit("config/facebook/credentials.txt"),
41
+ " Twitter" => edit("config/twitter/credentials.txt"),
42
42
  "Global CSS" => edit("#{std}/etc/blog.css.lt3"),
43
43
  "External JS/CSS (Bootstrap, etc.)" => edit("/etc/externals.lt3")
44
44
  }
@@ -21,10 +21,10 @@ def stale?(src, dst, deps, force = false)
21
21
  end
22
22
 
23
23
  def preprocess(cwd: Dir.pwd, src:,
24
- dst: nil, strip: false,
25
- deps: [], copy: nil, debug: false, force: false,
26
- mix: [], call: [],
27
- vars: {})
24
+ dst: nil, strip: false,
25
+ deps: [], copy: nil, debug: false, force: false,
26
+ mix: [], call: [],
27
+ vars: {})
28
28
  src += LEXT unless src.end_with?(LEXT)
29
29
  if strip
30
30
  dst = File.basename(src).sub(/.lt3$/,"")
@@ -33,8 +33,6 @@ def preprocess(cwd: Dir.pwd, src:,
33
33
  end
34
34
  sp = " "*12
35
35
 
36
-
37
-
38
36
  Dir.chdir(cwd) do
39
37
  if debug
40
38
  STDERR.puts "#{sp} -- preprocess "
@@ -251,7 +251,7 @@ log! str: "=== ...finished!"
251
251
  end
252
252
  n = viewnames.values.find_index(@blog.view.name)
253
253
  name = @blog.view.name
254
- k, name = STDSCR.menu(title: "Views", items: viewnames, curr: n)
254
+ k, name = STDSCR.menu(title: "Views", items: viewnames, curr: n, wrap: true)
255
255
  return if name.nil?
256
256
  log! str: "cv Setting to #{name.inspect}"
257
257
  @blog.view = name
@@ -418,7 +418,6 @@ log! str: "cv Setting to #{name.inspect}"
418
418
  base = draft.sub(/.lt3$/, "")
419
419
  dir = @blog.root/:posts/base
420
420
  meta = nil
421
- puts "Trying chdir into #{dir}..."
422
421
  Dir.chdir(dir) { meta = @blog.read_metadata }
423
422
  num, title = meta.num, meta.title
424
423
  num = '%4d' % num.to_s
@@ -1,7 +1,7 @@
1
1
  if !defined?(RuneBlog::Path)
2
2
 
3
3
  class RuneBlog
4
- VERSION = "0.3.25"
4
+ VERSION = "0.3.26"
5
5
 
6
6
  path = Gem.find_files("runeblog").grep(/runeblog-/).first
7
7
  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.3.25
4
+ version: 0.3.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-07 00:00:00.000000000 Z
11
+ date: 2020-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: livetext