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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 43bbc2d314d9a90cd34f558050a736ed58423f95576b0e32c3e36fc1405d756d
4
- data.tar.gz: fcb2d941bff2c4c0bb3e609b347f1afcf9a13bb8073b2868a1af6d07c0883332
3
+ metadata.gz: 248dd46a09bcde995ae04c6f20c0c510446c0377ac9709a33109b0ade0da392e
4
+ data.tar.gz: ed6064e271145b44759401b2192cbe21d1475338db779c9b14a861e3c643599b
5
5
  SHA512:
6
- metadata.gz: 0a6446ceda937da5da353cc0b1259c1ad54743b936e36c4f45fadf2cc4e8def5ee2d8f227ef4f2c5e63e192eabd27134ddfd36de533364fe35d4177d45d335b9
7
- data.tar.gz: 59c9fbab3e634c7fc99e147211b35e893b48cf6930deb331cba3cb1dbf36807bd746d8579c006fd27cd87ce5bd26eb34318b31e6c3c2b9580ae8c9b9856522e4
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
- post.title.color #010101
20
- post.title.size 28px
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
- post.date.color #9a9a9a
26
- post.date.size 15px
24
+ text.color #0101a1
25
+ text.size 22px
27
26
 
27
+ date.color #9a9a9a
28
+ date.size 15px
29
+ .end
28
30
 
29
- publish.user root
30
- publish.server SITE
31
- publish.docroot /var/www/
32
- publish.path VIEW_NAME
33
- publish.proto http
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="entry-content">
28
+ <div class="recent-content">
29
29
  <table border=0 width=100%><tr>
30
- <td align=left valign=bottom><h2 class="post-title">The graffiti wall</h2></td>
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="post-title-text"><a href="#{url}" style="margin-top: -5px">#{title}</a></span>
13
+ <span class="recent-title-text"><a href="#{url}" style="margin-top: -5px">#{title}</a></span>
14
14
  <b>#{teaser_text}</b>&nbsp;&nbsp;
15
15
  <a style="text-decoration: none" href="#{url}"><small>Keep&nbsp;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 themes/standard/global.lt3
6
+ .seek global.lt3
7
7
 
8
8
  body { font-family: $font.family }
9
9
 
10
- \.post-title a {
11
- color: $post.title.color;
10
+ \.recent-title a {
11
+ color: $recent.title.color;
12
12
  font-family: $font.family;
13
- font-size: $post.title.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
- \.post-title a:hover {
20
+ \.recent-title a:hover {
21
21
  text-decoration: none;
22
22
  }
23
23
 
24
- \.post-title-text a {
25
- color: $post.text.color;
24
+ \.recent-title-text a {
25
+ color: $recent.text.color;
26
26
  font-family: $font.family;
27
- font-size: $post.text.size;
27
+ font-size: $recent.text.size;
28
28
  display: block;
29
29
  text-decoration: none;
30
30
  }
31
31
 
32
- \.post-title-text a:hover {
32
+ \.recent-title-text a:hover {
33
33
  text-decoration: none;
34
34
  }
35
35
 
36
- \.post-date {
37
- color: $post.date.color;
36
+ \.recent-date {
37
+ color: $recent.date.color;
38
38
  font-family: $font.family;
39
- font-size: $post.date.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
- post.title.color #010101
20
- post.title.size 28px
21
-
22
- post.text.color #0101a1
23
- post.text.size 22px
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="entry-content">
25
+ <div class="recent-content">
26
26
  <table border=0 width=100%><tr>
27
- <td align=left valign=bottom><h2 class="post-title">$title</h2></td>
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
@@ -21,7 +21,7 @@ description $teaser
21
21
  .end
22
22
 
23
23
  <section class="post">
24
- <div class="entry-content">
24
+ <div class="recent-content">
25
25
  $.copy guts.html
26
26
  </div>
27
27
  </section>
@@ -0,0 +1,6 @@
1
+ recent.title.color #010101
2
+ recent.title.size 28px
3
+ recent.text.color #0101a1
4
+ recent.text.size 22px
5
+ recent.date.color #9a9a9a
6
+ recent.date.size 15px
data/lib/processing.rb CHANGED
@@ -47,4 +47,10 @@ def preprocess(cwd: Dir.pwd, src:,
47
47
  end
48
48
  end
49
49
 
50
+ def get_live_vars(src)
51
+ live = Livetext.customize(call: [".nopara"])
52
+ live.xform_file(src)
53
+ live
54
+ end
55
+
50
56
  end
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
- gfile = @blog.root/:views/view/"themes/standard/global.lt3"
18
- data = File.readlines(gfile)
19
- # Please refactor the Hal out of this
20
- grab = ->(var) { data.grep(/^#{var} /).first.chomp.split(" ", 2)[1] }
21
- @user = grab.call("publish.user")
22
- @server = grab.call("publish.server")
23
- @docroot = grab.call("publish.docroot")
24
- @path = grab.call("publish.path")
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/, ",html"), # ZZZ
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
@@ -3,7 +3,7 @@ if !defined?(RuneBlog::Path)
3
3
  # if ! (Object.constants.include?(:RuneBlog) && RuneBlog.constants.include?(:Path))
4
4
 
5
5
  class RuneBlog
6
- VERSION = "0.2.96"
6
+ VERSION = "0.2.98"
7
7
 
8
8
  path = Gem.find_files("runeblog").grep(/runeblog-/).first
9
9
  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.2.96
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-24 00:00:00.000000000 Z
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