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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61aa7e5fe0818e8b951befd42f07d89611e122a2c116e2fd2f77fff4e8b42a1c
4
- data.tar.gz: 443b360ddf21255a9658de19a53a8582ffc206ffa67b0ace9ce673054d98dd45
3
+ metadata.gz: 41ebfee8dc03d5cb547cb1bf258a1b7a8b10fd58f03c766f998aa17ddf2e8f1b
4
+ data.tar.gz: ca34266009e6ab0a267420c1c42fd3330408cfb4d471cc08cd9db3d2b5a6df7c
5
5
  SHA512:
6
- metadata.gz: 2787058035efb512b0d1cbacef3010929ccc66cc02b193a17957de3d20eda16cdeedec8ce981fd0ccd0c9ba35fd763f34739be3d2f4c7730328dea3798b55cde
7
- data.tar.gz: 9a91a6691fd73326be4010f8d28bf2df8659e5fc8ac84c40fac77571166f42ddf6a39558ca1ea90a3a9a1e53971c4ad7ae2a7e8f7cef4e7aa13ec39e4b9fd8bc
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
- .tags #{taglist}
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: nil, view: "test_view",
78
- teaser: "No teaser", body: "No body", slug: nil)
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}&nbsp;&nbsp;</font>
287
+ <font size=-1>#{meta.date}&nbsp;&nbsp;</font> <br>
289
288
  <font size=+2 color=blue><a href=../#{ref} style="text-decoration: none">#{meta.title}</font></a>
290
289
  <br>
291
- #{meta.teaser}
290
+ <font size=+1>#{meta.teaser}&nbsp;&nbsp;</font>
292
291
  <a href=../#{ref} style="text-decoration: none">Read more...</a>
293
- <br><br>
292
+ <br>
294
293
  <hr>
295
294
  HTML
296
295
  end
@@ -1,6 +1,6 @@
1
1
 
2
2
  class RuneBlog
3
- VERSION = "0.1.33"
3
+ VERSION = "0.1.34"
4
4
 
5
5
  Path = File.expand_path(File.join(File.dirname(__FILE__)))
6
6
  end
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.33
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-25 00:00:00.000000000 Z
11
+ date: 2019-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: livetext