runeblog 0.2.36 → 0.2.37
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 132d1e47c6892b832f21544dfbb6cc1ea46d5ab4948f089842114b700725bf7e
|
4
|
+
data.tar.gz: 3b1bdf9527caa5415fc4d631ef772edad07fc79ebe6b5f3bef7acfa250b31e7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d2571ed899e5e33b85564f54bbab240fabf6944bd1c1867a68b1bcd9efec5b9dff92489a3a3ed4e28ad67c6e4e84af73ef60d178f2347582eb34d6644e11421
|
7
|
+
data.tar.gz: c326f5a238ba10ee6da0fdca4780a12b01130006f0e02049f252396f9f098cd4cf7cbcb5efabdcd61076c0d7d05e290fb8ae48ed9fae2c070ac3aa91fe475766
|
data/lib/liveblog.rb
CHANGED
@@ -319,6 +319,16 @@ def recent_posts # side-effect
|
|
319
319
|
HTML
|
320
320
|
end
|
321
321
|
|
322
|
+
def _run_local(widget)
|
323
|
+
Dir.chdir("widgets/#{widget}") do
|
324
|
+
require("./local") if File.exist?("local.rb")
|
325
|
+
end
|
326
|
+
rescue => err
|
327
|
+
STDOUT.puts err
|
328
|
+
STDOUT.puts err.backtrace.join("\n")
|
329
|
+
exit
|
330
|
+
end
|
331
|
+
|
322
332
|
def sidebar
|
323
333
|
if _args.include? "off"
|
324
334
|
_body { } # iterate, do nothing
|
@@ -331,17 +341,24 @@ def sidebar
|
|
331
341
|
wtag = :widgets/tag
|
332
342
|
raise "Can't find #{wtag}" unless Dir.exist?(wtag)
|
333
343
|
tcard = "#{tag}-card.html"
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
344
|
+
|
345
|
+
_run_local(tag)
|
346
|
+
|
347
|
+
# if File.exist?(wtag/"SUBFILES")
|
348
|
+
# children = Dir[wtag/"*.lt3"] - [wtag/tag+".lt3"]
|
349
|
+
# children.each do |child|
|
350
|
+
# dest = child.sub(/.lt3$/, ".html")
|
351
|
+
# xlate src: child, dst: dest # , debug: true
|
352
|
+
# end
|
353
|
+
# end
|
341
354
|
xlate cwd: wtag, src: tag, dst: tcard # , debug: true
|
342
355
|
_include_file wtag/tcard
|
343
356
|
end
|
344
357
|
_out %[</div>]
|
358
|
+
rescue => err
|
359
|
+
puts "err = #{err}"
|
360
|
+
puts err.backtrace.join("\n")
|
361
|
+
exit
|
345
362
|
end
|
346
363
|
|
347
364
|
def stylesheet
|
data/lib/runeblog_version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.37
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hal Fulton
|
@@ -95,12 +95,11 @@ files:
|
|
95
95
|
- empty_view/themes/standard/widgets/news/list.data
|
96
96
|
- empty_view/themes/standard/widgets/news/news.lt3
|
97
97
|
- empty_view/themes/standard/widgets/pages/README
|
98
|
-
- empty_view/themes/standard/widgets/pages/SUBFILES
|
99
98
|
- empty_view/themes/standard/widgets/pages/disclaim.lt3
|
100
99
|
- empty_view/themes/standard/widgets/pages/faq.lt3
|
101
|
-
- empty_view/themes/standard/widgets/pages/generated.lt3
|
102
100
|
- empty_view/themes/standard/widgets/pages/like-dislike.lt3
|
103
101
|
- empty_view/themes/standard/widgets/pages/list.data
|
102
|
+
- empty_view/themes/standard/widgets/pages/local.rb
|
104
103
|
- empty_view/themes/standard/widgets/pages/other-stuff.lt3
|
105
104
|
- empty_view/themes/standard/widgets/pages/pages.lt3
|
106
105
|
- empty_view/themes/standard/widgets/tag-cloud/tag-cloud.lt3
|
@@ -1 +0,0 @@
|
|
1
|
-
Causes other *.lt3 files to be generated
|