runeblog 0.1.65 → 0.1.66
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.lt3 +2 -0
- data/README.md +15 -12
- data/lib/liveblog.rb +17 -17
- 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: e04b6fc628bf866806cba2083ed1273f79e50e73c21e0e7a7c0532b3e1019475
|
4
|
+
data.tar.gz: 7b1666373a1f79ff41c024046aa70838de6a50ce20bf0140c441df8599dd8582
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60ad53aa2dcc4d83f490209424c2e7dd0d87532bbc735e9b636e5420223d5a9861f0102eb67ef2da783a0735ffa53b3cdabdc0c3539ac5b0f9f1d7a7426bc08e
|
7
|
+
data.tar.gz: d38cad9516b61682e3256fe49cec3e7b0a9a3c7895c1415f0df32c58b68cec8ce5f2a0184da4d3788db92dd28b79ef662edaf91192923d55eef8f8eb18c3a2f0
|
data/README.lt3
CHANGED
data/README.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
<div float="left"><image src="raido.png"></div>
|
2
|
+
<p>
|
3
|
+
|
1
4
|
# runeblog
|
2
5
|
Runeblog is a blogging tool written in Ruby. It has these basic characteristics:
|
3
6
|
<p>
|
@@ -12,7 +15,7 @@ The multiple views are in effect multiple blogs managed with the same backend.
|
|
12
15
|
|
13
16
|
## What is Livetext?
|
14
17
|
Livetext is a markup format that is a throwback to the old, old days of text
|
15
|
-
formatters such as <font size=+1><tt>
|
18
|
+
formatters such as <font size=+1><tt>roff</tt></font> It's very flexible, and it is extensible <i>in Ruby</i>.
|
16
19
|
<p>
|
17
20
|
|
18
21
|
It is far from mature or full-featured, but it is usable. Runeblog uses Livetext,
|
@@ -31,13 +34,13 @@ can see. There might be a view purely for reviews of music, books, and movies.
|
|
31
34
|
<p>
|
32
35
|
|
33
36
|
But the important points are these:
|
34
|
-
*
|
37
|
+
* _All the views will be managed the same way in the same place, and they will all share common data.
|
35
38
|
* Any post can easily be included in a single view, in more than one, or in all of them.
|
36
39
|
* Each view can have its own look and feel, and it can be linked/published separately from the others.
|
37
40
|
* Each view can be hosted in a different location and/or a different server and domain
|
38
41
|
* Any post can be in more than one view
|
39
42
|
## The `blog environment
|
40
|
-
There is a command-line tool called <font size=+1><tt>blog</tt></font>
|
43
|
+
There is a command-line tool called <font size=+1><tt>blog</tt></font> which is a REPL (read-eval-print loop).
|
41
44
|
Note that this tool is a curses-based environment (mainly so it can display menus
|
42
45
|
and such to the user).
|
43
46
|
<p>
|
@@ -74,8 +77,8 @@ The help message looks like this:
|
|
74
77
|
## Getting started
|
75
78
|
But when you first run the REPL, it checks for an existing blog under the <font size=+1><tt>.blog</tt></font>
|
76
79
|
directory. If it doesn't find one, it asks whether you want to create a new blog.
|
77
|
-
If you enter <font size=+1><tt>y</tt></font>
|
78
|
-
called <font size=+1><tt>
|
80
|
+
If you enter <font size=+1><tt>y</tt></font> for yes, it creates a sort of "skeleton" with a single view
|
81
|
+
called <font size=+1><tt>est_view</tt></font>.
|
79
82
|
<p>
|
80
83
|
|
81
84
|
The next thing you should do is to create at least one view of your own. Use the
|
@@ -103,15 +106,15 @@ The next thing you should do is to create at least one view of your own. Use the
|
|
103
106
|
(and so on...)
|
104
107
|
<p>
|
105
108
|
|
106
|
-
|
109
|
+
*[To be continued]
|
107
110
|
<p>
|
108
111
|
|
109
112
|
## Changing the default templates
|
110
|
-
|
113
|
+
*TBD
|
111
114
|
<p>
|
112
115
|
|
113
116
|
## Basics of Livetext
|
114
|
-
|
117
|
+
*TBD
|
115
118
|
<p>
|
116
119
|
|
117
120
|
(bold, italics, etc.)
|
@@ -124,7 +127,7 @@ The next thing you should do is to create at least one view of your own. Use the
|
|
124
127
|
<p>
|
125
128
|
|
126
129
|
## Runeblog-specific features (Liveblog)
|
127
|
-
|
130
|
+
*TBD
|
128
131
|
<p>
|
129
132
|
|
130
133
|
(dot commands)
|
@@ -140,14 +143,14 @@ The next thing you should do is to create at least one view of your own. Use the
|
|
140
143
|
(variables and functions)
|
141
144
|
<p>
|
142
145
|
|
143
|
-
|
146
|
+
*TBD
|
144
147
|
<p>
|
145
148
|
|
146
149
|
##
|
147
|
-
|
150
|
+
*TBD
|
148
151
|
<p>
|
149
152
|
|
150
153
|
## More later...
|
151
|
-
|
154
|
+
*TBD
|
152
155
|
<p>
|
153
156
|
|
data/lib/liveblog.rb
CHANGED
@@ -97,22 +97,22 @@ end
|
|
97
97
|
|
98
98
|
def _passthru(line)
|
99
99
|
return if line.nil?
|
100
|
-
line =
|
101
|
-
|
102
|
-
|
100
|
+
line = _format(line)
|
101
|
+
_out line + "\n"
|
102
|
+
_out "<p>" if line.empty? && ! @_nopara
|
103
103
|
end
|
104
104
|
|
105
105
|
def _passthru_noline(line)
|
106
106
|
return if line.nil?
|
107
|
-
line =
|
108
|
-
|
109
|
-
|
107
|
+
line = _format(line)
|
108
|
+
_out line
|
109
|
+
_out "<p>" if line.empty? && ! @_nopara
|
110
110
|
end
|
111
111
|
|
112
112
|
def title
|
113
113
|
title = @_data.chomp
|
114
114
|
@meta.title = title
|
115
|
-
|
115
|
+
_out "<h1>#{title}</h1>"
|
116
116
|
_optional_blank_line
|
117
117
|
end
|
118
118
|
|
@@ -131,7 +131,7 @@ def image # primitive so far
|
|
131
131
|
_debug "img: huh? <img src=#{_args.first}></img>"
|
132
132
|
fname = _args.first
|
133
133
|
path = "../assets/#{fname}"
|
134
|
-
|
134
|
+
_out "<img src=#{path}></img>"
|
135
135
|
_optional_blank_line
|
136
136
|
end
|
137
137
|
|
@@ -158,25 +158,25 @@ end
|
|
158
158
|
# end
|
159
159
|
|
160
160
|
def list
|
161
|
-
|
162
|
-
_body {|line|
|
163
|
-
|
161
|
+
_out "<ul>"
|
162
|
+
_body {|line| _out "<li>#{line}</li>" }
|
163
|
+
_out "</ul>"
|
164
164
|
_optional_blank_line
|
165
165
|
end
|
166
166
|
|
167
167
|
def list!
|
168
|
-
|
168
|
+
_out "<ul>"
|
169
169
|
lines = _body.each # {|line| @body << "<li>#{line}</li>" }
|
170
170
|
loop do
|
171
171
|
line = lines.next
|
172
|
-
line =
|
172
|
+
line = _format(line)
|
173
173
|
if line[0] == " "
|
174
|
-
|
174
|
+
_out line
|
175
175
|
else
|
176
|
-
|
176
|
+
_out "<li>#{line}</li>"
|
177
177
|
end
|
178
178
|
end
|
179
|
-
|
179
|
+
_out "</ul>"
|
180
180
|
_optional_blank_line
|
181
181
|
end
|
182
182
|
|
@@ -219,7 +219,7 @@ end
|
|
219
219
|
|
220
220
|
def teaser
|
221
221
|
@meta.teaser = _body_text
|
222
|
-
|
222
|
+
_out @meta.teaser + "\n"
|
223
223
|
# FIXME
|
224
224
|
end
|
225
225
|
|
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.66
|
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-05-
|
11
|
+
date: 2019-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: livetext
|