runeblog 0.1.65 → 0.1.66

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: 536f1e0629ffe7e91bed7f0fc08f10aff238b8947810af161826edabee056c9f
4
- data.tar.gz: 89fd6c8d808732f1f7d7fa6ee3c5082b7e597e931c9458bbe09673d32f10300b
3
+ metadata.gz: e04b6fc628bf866806cba2083ed1273f79e50e73c21e0e7a7c0532b3e1019475
4
+ data.tar.gz: 7b1666373a1f79ff41c024046aa70838de6a50ce20bf0140c441df8599dd8582
5
5
  SHA512:
6
- metadata.gz: d2456e3cc08508f43b9a44829a7ea8e81ba0602a4c2654c1ac274de8871d3b51742f29a5670fc23c1addcd30afb98463c713d13ae3477ee9cc4720d6b4e51798
7
- data.tar.gz: 37b9fee839118b9381990daebb5348b80ad9a069f4813c59b3fad6ea29e58da16871e5c03b0cccd40adbc142c281fba20242d794f258353cd7f260964a4c6805
6
+ metadata.gz: 60ad53aa2dcc4d83f490209424c2e7dd0d87532bbc735e9b636e5420223d5a9861f0102eb67ef2da783a0735ffa53b3cdabdc0c3539ac5b0f9f1d7a7426bc08e
7
+ data.tar.gz: d38cad9516b61682e3256fe49cec3e7b0a9a3c7895c1415f0df32c58b68cec8ce5f2a0184da4d3788db92dd28b79ef662edaf91192923d55eef8f8eb18c3a2f0
data/README.lt3 CHANGED
@@ -1,5 +1,7 @@
1
1
  .mixin markdown
2
2
 
3
+ <div float="left"><image src="raido.png"></div>
4
+
3
5
  .h1 runeblog
4
6
 
5
7
  Runeblog is a blogging tool written in Ruby. It has these basic characteristics:
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>nroff</tt></font>. It's very flexible, and it is extensible <i>in Ruby</i>.
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
- * <i>All</i> the views will be managed the same way in the same place, and they will all share common data.
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> which is a REPL (read-eval-print loop).
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> for yes, it creates a sort of "skeleton" with a single view
78
- called <font size=+1><tt>test_view</tt></font>.
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
- <b>To be continued</b>
109
+ *[To be continued]
107
110
  <p>
108
111
 
109
112
  ## Changing the default templates
110
- <b>TBD</b>
113
+ *TBD
111
114
  <p>
112
115
 
113
116
  ## Basics of Livetext
114
- <b>TBD</b>
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
- <b>TBD</b>
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
- <b>TBD</b>
146
+ *TBD
144
147
  <p>
145
148
 
146
149
  ##
147
- <b>TBD</b>
150
+ *TBD
148
151
  <p>
149
152
 
150
153
  ## More later...
151
- <b>TBD</b>
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 = _formatting(line)
101
- @live.body << line + "\n"
102
- @live.body << "<p>" if line.empty? && ! @_nopara
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 = _formatting(line)
108
- @live.body << line
109
- @live.body << "<p>" if line.empty? && ! @_nopara
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
- @live.body << "<h1>#{title}</h1>"
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
- @live.body << "<img src=#{path}></img>"
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
- @live.body << "<ul>"
162
- _body {|line| @live.body << "<li>#{line}</li>" }
163
- @live.body << "</ul>"
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
- @live.body << "<ul>"
168
+ _out "<ul>"
169
169
  lines = _body.each # {|line| @body << "<li>#{line}</li>" }
170
170
  loop do
171
171
  line = lines.next
172
- line = _formatting(line)
172
+ line = _format(line)
173
173
  if line[0] == " "
174
- @live.body << line
174
+ _out line
175
175
  else
176
- @live.body << "<li>#{line}</li>"
176
+ _out "<li>#{line}</li>"
177
177
  end
178
178
  end
179
- @live.body << "</ul>"
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
- @live.body << @meta.teaser + "\n"
222
+ _out @meta.teaser + "\n"
223
223
  # FIXME
224
224
  end
225
225
 
@@ -1,6 +1,6 @@
1
1
 
2
2
  class RuneBlog
3
- VERSION = "0.1.65"
3
+ VERSION = "0.1.66"
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.65
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-12 00:00:00.000000000 Z
11
+ date: 2019-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: livetext