runeblog 0.1.33 → 0.1.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/default.rb +8 -8
- data/lib/runeblog.rb +3 -4
- 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: 41ebfee8dc03d5cb547cb1bf258a1b7a8b10fd58f03c766f998aa17ddf2e8f1b
|
4
|
+
data.tar.gz: ca34266009e6ab0a267420c1c42fd3330408cfb4d471cc08cd9db3d2b5a6df7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2dba185584d41c74ff3cf2bb1ba8f608450918d619a5f764308444bc172c879ab914eeea4ec4495670b46f3118db7d3300a490a3da66f7b9705f67a726d8bb5
|
7
|
+
data.tar.gz: 7cc0854abd7d231e7afffe9165500dbc02d53b4287d8d142ea8e61ae1ac8af3f8fa4d31e35702aedcd5c468fa447fb40eef595e1ffc8f977726808b1ed7ed1e3
|
data/lib/default.rb
CHANGED
@@ -14,7 +14,7 @@ NewBlogHeader = <<-TEXT # Can't do this yet!!
|
|
14
14
|
<td>
|
15
15
|
.image fakeimage.jpg
|
16
16
|
</td>
|
17
|
-
<td>
|
17
|
+
<td valign=top>
|
18
18
|
.h3 Yet another blog...
|
19
19
|
.h4 by Kilgore Trout
|
20
20
|
.br 2
|
@@ -32,12 +32,12 @@ BlogHeader = <<-TEXT
|
|
32
32
|
<html>
|
33
33
|
<body>
|
34
34
|
<title>Fake Blog, Fake Title, Fake Author</title>
|
35
|
-
<table>
|
35
|
+
<table cellpadding=4>
|
36
36
|
<tr>
|
37
37
|
<td>
|
38
38
|
<img src=assets/fakeimage.jpg width=400 height=300>
|
39
39
|
</td>
|
40
|
-
<td>
|
40
|
+
<td valign=top>
|
41
41
|
<h2>Yet another blog...</h2>
|
42
42
|
<h3>by Kilgore Trout</h3>
|
43
43
|
<br> <br>
|
@@ -57,15 +57,15 @@ TEXT
|
|
57
57
|
|
58
58
|
def RuneBlog.post_template(title: "No title", date: nil, view: "test_view",
|
59
59
|
teaser: "No teaser", body: "No body", tags: [], views: [])
|
60
|
-
viewlist = (views + [view.to_s]).join(" ")
|
61
|
-
taglist = tags.join(" ")
|
60
|
+
viewlist = (views + [view.to_s]).join(" ")
|
61
|
+
taglist = tags.empty? ? "" : (".tags " + tags.join(" "))
|
62
62
|
<<-TEXT
|
63
63
|
.mixin liveblog
|
64
64
|
|
65
65
|
.title #{title}
|
66
66
|
.pubdate #{date}
|
67
67
|
.views #{viewlist}
|
68
|
-
|
68
|
+
#{taglist}
|
69
69
|
|
70
70
|
.teaser
|
71
71
|
#{teaser}
|
@@ -74,8 +74,8 @@ taglist = tags.join(" ")
|
|
74
74
|
TEXT
|
75
75
|
end
|
76
76
|
|
77
|
-
def RuneBlog.teaser_template(title: "No title", date
|
78
|
-
teaser: "No teaser", body: "No body", slug:
|
77
|
+
def RuneBlog.teaser_template(title: "No title", date:, view: "test_view",
|
78
|
+
teaser: "No teaser", body: "No body", slug:)
|
79
79
|
<<-TEXT
|
80
80
|
<html>
|
81
81
|
|
data/lib/runeblog.rb
CHANGED
@@ -284,13 +284,12 @@ class RuneBlog
|
|
284
284
|
# FIXME clean up and generalize
|
285
285
|
ref = "#{view}/#{meta.slug}/index.html"
|
286
286
|
<<-HTML
|
287
|
-
<br>
|
288
|
-
<font size=+1>#{meta.pubdate} </font>
|
287
|
+
<font size=-1>#{meta.date} </font> <br>
|
289
288
|
<font size=+2 color=blue><a href=../#{ref} style="text-decoration: none">#{meta.title}</font></a>
|
290
289
|
<br>
|
291
|
-
|
290
|
+
<font size=+1>#{meta.teaser} </font>
|
292
291
|
<a href=../#{ref} style="text-decoration: none">Read more...</a>
|
293
|
-
<br
|
292
|
+
<br>
|
294
293
|
<hr>
|
295
294
|
HTML
|
296
295
|
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.1.
|
4
|
+
version: 0.1.34
|
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-01-
|
11
|
+
date: 2019-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: livetext
|