runeblog 0.2.96 → 0.2.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/data/global.lt3 +15 -12
- data/empty_view/config/reddit/the-graffiti-wall.html +2 -2
- data/empty_view/themes/standard/blog/post_entry.lt3 +1 -1
- data/empty_view/themes/standard/etc/blog.css.lt3 +12 -12
- data/empty_view/themes/standard/global.lt3 +6 -9
- data/empty_view/themes/standard/post/generate.lt3 +2 -2
- data/empty_view/themes/standard/post/permalink.lt3 +1 -1
- data/empty_view/themes/standard/recent.txt +6 -0
- data/lib/processing.rb +6 -0
- data/lib/publish.rb +9 -10
- data/lib/runeblog.rb +1 -1
- data/lib/runeblog_version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 248dd46a09bcde995ae04c6f20c0c510446c0377ac9709a33109b0ade0da392e
|
|
4
|
+
data.tar.gz: ed6064e271145b44759401b2192cbe21d1475338db779c9b14a861e3c643599b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 67b27edb3c7a18781eec1e3edfd885fca1edf8606d03cd62ea4e11c890eb9f4f15b7f94868827ea815f110042729d162bcaaa77171a6a6b8727dc78e78669cf2
|
|
7
|
+
data.tar.gz: 9698861365fb1d6f9be3eb33adead8b0e48e0effd8aaafb6cec44010ebfd4ea086ba98a3d3b3d803393fd5f18b75d77ed4b67ad81a0efa6947daf324d6137056
|
data/data/global.lt3
CHANGED
|
@@ -15,21 +15,24 @@ url http://SITE
|
|
|
15
15
|
locale en_US
|
|
16
16
|
|
|
17
17
|
font.family verdana
|
|
18
|
+
.end
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
post.text.color #0101a1
|
|
23
|
-
post.text.size 22px
|
|
20
|
+
.variables recent
|
|
21
|
+
title.color #010101
|
|
22
|
+
title.size 28px
|
|
24
23
|
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
text.color #0101a1
|
|
25
|
+
text.size 22px
|
|
27
26
|
|
|
27
|
+
date.color #9a9a9a
|
|
28
|
+
date.size 15px
|
|
29
|
+
.end
|
|
28
30
|
|
|
29
|
-
publish
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
.variables publish
|
|
32
|
+
user root
|
|
33
|
+
server SITE
|
|
34
|
+
docroot /var/www/
|
|
35
|
+
path VIEW_NAME
|
|
36
|
+
proto http
|
|
34
37
|
.end
|
|
35
38
|
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
<body>
|
|
26
26
|
|
|
27
27
|
<section class="post">
|
|
28
|
-
<div class="
|
|
28
|
+
<div class="recent-content">
|
|
29
29
|
<table border=0 width=100%><tr>
|
|
30
|
-
<td align=left valign=bottom><h2 class="
|
|
30
|
+
<td align=left valign=bottom><h2 class="recent-title">The graffiti wall</h2></td>
|
|
31
31
|
<td align=right valign=top><font size=-5><br></font>December 2, 2019</td>
|
|
32
32
|
</tr></table><hr>
|
|
33
33
|
<!-- Post number 3 -->
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<font size=-1>#{date}</font>
|
|
11
11
|
</td>
|
|
12
12
|
<td>
|
|
13
|
-
<span class="
|
|
13
|
+
<span class="recent-title-text"><a href="#{url}" style="margin-top: -5px">#{title}</a></span>
|
|
14
14
|
<b>#{teaser_text}</b>
|
|
15
15
|
<a style="text-decoration: none" href="#{url}"><small>Keep reading</small></a>
|
|
16
16
|
</td>
|
|
@@ -3,40 +3,40 @@
|
|
|
3
3
|
. Most of the global CSS goes here
|
|
4
4
|
. --------------------------------------------------
|
|
5
5
|
|
|
6
|
-
.seek
|
|
6
|
+
.seek global.lt3
|
|
7
7
|
|
|
8
8
|
body { font-family: $font.family }
|
|
9
9
|
|
|
10
|
-
\.
|
|
11
|
-
color: $
|
|
10
|
+
\.recent-title a {
|
|
11
|
+
color: $recent.title.color;
|
|
12
12
|
font-family: $font.family;
|
|
13
|
-
font-size: $
|
|
13
|
+
font-size: $recent.title.size;
|
|
14
14
|
float: right;
|
|
15
15
|
display: inline-block;
|
|
16
16
|
text-align: top;
|
|
17
17
|
text-decoration: none;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
\.
|
|
20
|
+
\.recent-title a:hover {
|
|
21
21
|
text-decoration: none;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
\.
|
|
25
|
-
color: $
|
|
24
|
+
\.recent-title-text a {
|
|
25
|
+
color: $recent.text.color;
|
|
26
26
|
font-family: $font.family;
|
|
27
|
-
font-size: $
|
|
27
|
+
font-size: $recent.text.size;
|
|
28
28
|
display: block;
|
|
29
29
|
text-decoration: none;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
\.
|
|
32
|
+
\.recent-title-text a:hover {
|
|
33
33
|
text-decoration: none;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
\.
|
|
37
|
-
color: $
|
|
36
|
+
\.recent-date {
|
|
37
|
+
color: $recent.date.color;
|
|
38
38
|
font-family: $font.family;
|
|
39
|
-
font-size: $
|
|
39
|
+
font-size: $recent.date.size;
|
|
40
40
|
display: block;
|
|
41
41
|
float: left;
|
|
42
42
|
text-align: top;
|
|
@@ -16,15 +16,12 @@ locale en_US
|
|
|
16
16
|
|
|
17
17
|
font.family verdana
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
post.date.color #9a9a9a
|
|
26
|
-
post.date.size 15px
|
|
27
|
-
|
|
19
|
+
recent.title.color #010101
|
|
20
|
+
recent.title.size 28px
|
|
21
|
+
recent.text.color #0101a1
|
|
22
|
+
recent.text.size 22px
|
|
23
|
+
recent.date.color #9a9a9a
|
|
24
|
+
recent.date.size 15px
|
|
28
25
|
|
|
29
26
|
publish.user root
|
|
30
27
|
publish.server rubyhacker.com
|
|
@@ -22,9 +22,9 @@ style blog.css
|
|
|
22
22
|
<body>
|
|
23
23
|
|
|
24
24
|
<section class="post">
|
|
25
|
-
<div class="
|
|
25
|
+
<div class="recent-content">
|
|
26
26
|
<table border=0 width=100%><tr>
|
|
27
|
-
<td align=left valign=bottom><h2 class="
|
|
27
|
+
<td align=left valign=bottom><h2 class="recent-title">$title</h2></td>
|
|
28
28
|
<td align=right valign=top><font size=-5><br></font>$longdate</td>
|
|
29
29
|
</tr></table><hr>
|
|
30
30
|
$.copy guts.html
|
data/lib/processing.rb
CHANGED
data/lib/publish.rb
CHANGED
|
@@ -3,26 +3,25 @@ if ! defined?(Already_publish)
|
|
|
3
3
|
Already_publish = nil
|
|
4
4
|
|
|
5
5
|
require 'pathmagic'
|
|
6
|
+
require 'processing'
|
|
6
7
|
|
|
7
8
|
class RuneBlog::Publishing
|
|
8
9
|
attr_reader :user, :server, :docroot, :path
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
BadRemoteLogin = Exception.new("Can't login remotely")
|
|
12
12
|
BadRemotePerms = Exception.new("Bad remote permissions")
|
|
13
13
|
|
|
14
14
|
def initialize(view)
|
|
15
15
|
log!(enter: __method__, args: [view.to_s])
|
|
16
16
|
@blog = RuneBlog.blog
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
@
|
|
22
|
-
@
|
|
23
|
-
@
|
|
24
|
-
@
|
|
25
|
-
@proto = grab.call("publish.proto")
|
|
17
|
+
dir = @blog.root/:views/view/"themes/standard/"
|
|
18
|
+
gfile = dir/"global.lt3"
|
|
19
|
+
live = get_live_vars(gfile)
|
|
20
|
+
@user = live.vars["publish.user"]
|
|
21
|
+
@server = live.vars["publish.server"]
|
|
22
|
+
@docroot = live.vars["publish.docroot"]
|
|
23
|
+
@path = live.vars["publish.path"]
|
|
24
|
+
@proto = live.vars["publish.proto"]
|
|
26
25
|
end
|
|
27
26
|
|
|
28
27
|
def to_h
|
data/lib/runeblog.rb
CHANGED
|
@@ -193,7 +193,7 @@ class RuneBlog
|
|
|
193
193
|
dir = @root/:posts/nslug
|
|
194
194
|
create_dirs(dir)
|
|
195
195
|
# FIXME dependencies?
|
|
196
|
-
preprocess cwd: dir, src: @root/:drafts/sourcefile, dst: @root/:posts/sourcefile.sub(/.lt3/, "
|
|
196
|
+
preprocess cwd: dir, src: @root/:drafts/sourcefile, dst: @root/:posts/sourcefile.sub(/.lt3/, ".html"), # ZZZ
|
|
197
197
|
mix: "liveblog" # , debug: true
|
|
198
198
|
_deploy_local(dir)
|
|
199
199
|
rescue => err
|
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.2.
|
|
4
|
+
version: 0.2.98
|
|
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-12-
|
|
11
|
+
date: 2019-12-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: livetext
|
|
@@ -136,6 +136,7 @@ files:
|
|
|
136
136
|
- empty_view/themes/standard/post/head.lt3
|
|
137
137
|
- empty_view/themes/standard/post/index.lt3
|
|
138
138
|
- empty_view/themes/standard/post/permalink.lt3
|
|
139
|
+
- empty_view/themes/standard/recent.txt
|
|
139
140
|
- empty_view/themes/standard/widgets/README
|
|
140
141
|
- empty_view/themes/standard/widgets/ad/ad.lt3
|
|
141
142
|
- empty_view/themes/standard/widgets/ad/ad1.png
|