runeblog 0.2.63 → 0.2.64
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/README.lt3 +7 -7
- data/README.md +7 -7
- data/bin/blog +4 -3
- data/lib/runeblog.rb +3 -6
- data/lib/runeblog_version.rb +1 -1
- data/test/austin.rb +4 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ee0e8ea5eca8141bc128304f9f3025cff30bf7db3d6dc963ca9e826e7ec48fa
|
4
|
+
data.tar.gz: a46e8e6675cde4d9e43bdb5248eed70d732d86d28a0e80cf0c89d118c0ddbc3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 347dd447053e6d41532372c24c259716ae93c2ad9808ef63cc4ddf8d54d6e08c0e0cb2d06938f445115b1be79526b95e01672f6bd685ce00841bead8ada8c690
|
7
|
+
data.tar.gz: 719c98793354389ac974e1d45ee3e8d891380881938ec72676d6697cd49c233311d7bc9854624e235cfc87e3247632fb5a66794da5fb686f668ce9eaa130de22
|
data/README.lt3
CHANGED
@@ -82,10 +82,10 @@ You'll then enter the editor (vim for now) to add configuration info to the `glo
|
|
82
82
|
|
83
83
|
<!-- <pre><b>FIXME add menu screenshot here</b></pre> -->
|
84
84
|
<!-- <pre><b>FIXME add vim screenshot here</b></pre> -->
|
85
|
-
<img src="readme/vim-global.png" width="494" height="696" align="
|
85
|
+
<img src="readme/vim-global.png" width="494" height="696" align="center"></img>
|
86
86
|
|
87
|
-
The next thing you should do is to create at least one view of your own. Use the
|
88
|
-
|
87
|
+
The next thing you should do is to create at least one view of your own. Use the `[new view]
|
88
|
+
command for this. Note that the current view is displayed as part of the prompt.
|
89
89
|
|
90
90
|
<pre>
|
91
91
|
<b>[no view]</b> new view mystuff<br>
|
@@ -102,7 +102,7 @@ prompted for a title:
|
|
102
102
|
|
103
103
|
Then you'll be sent into the editor (currently vim but can be others):
|
104
104
|
|
105
|
-
<
|
105
|
+
<img src="readme/edit-first.png" width="506" height="383" align="center"></img>
|
106
106
|
|
107
107
|
<pre>
|
108
108
|
<b>FIXME wizard?</b>
|
@@ -119,7 +119,7 @@ browse...
|
|
119
119
|
|
120
120
|
You can use the `config command to choose a file to edit.
|
121
121
|
|
122
|
-
<img src="readme/config-menu.png" width="700" height="547" align="
|
122
|
+
<img src="readme/config-menu.png" width="700" height="547" align="center"></img>
|
123
123
|
|
124
124
|
The meaning and interaction of these files will be explained later. *FIXME
|
125
125
|
|
@@ -194,11 +194,11 @@ TBD: Add details
|
|
194
194
|
<b>Predefined functions and variables</b>
|
195
195
|
<pre>
|
196
196
|
\$File
|
197
|
-
\$\$date
|
197
|
+
`[\$\$date]
|
198
198
|
etc.
|
199
199
|
</pre>
|
200
200
|
|
201
|
-
.h2 Runeblog-specific features (Liveblog</b>
|
201
|
+
.h2 Runeblog-specific features (Liveblog)</b>
|
202
202
|
|
203
203
|
<b>TBD</b>
|
204
204
|
|
data/README.md
CHANGED
@@ -84,11 +84,11 @@ You'll then enter the editor (vim for now) to add configuration info to the |
|
84
84
|
|
85
85
|
<!-- <pre><b>FIXME add menu screenshot here</b></pre> -->
|
86
86
|
<!-- <pre><b>FIXME add vim screenshot here</b></pre> -->
|
87
|
-
<img src="readme/vim-global.png" width="494" height="696" align="
|
87
|
+
<img src="readme/vim-global.png" width="494" height="696" align="center"></img>
|
88
88
|
<p>
|
89
89
|
|
90
|
-
The next thing you should do is to create at least one view of your own. Use the
|
91
|
-
|
90
|
+
The next thing you should do is to create at least one view of your own. Use the <font size=+1><tt>new view</tt></font>
|
91
|
+
command for this. Note that the current view is displayed as part of the prompt.
|
92
92
|
<p>
|
93
93
|
|
94
94
|
<pre>
|
@@ -110,7 +110,7 @@ prompted for a title:
|
|
110
110
|
Then you'll be sent into the editor (currently vim but can be others):
|
111
111
|
<p>
|
112
112
|
|
113
|
-
<
|
113
|
+
<img src="readme/edit-first.png" width="506" height="383" align="center"></img>
|
114
114
|
<p>
|
115
115
|
|
116
116
|
<pre>
|
@@ -130,7 +130,7 @@ browse...
|
|
130
130
|
You can use the <font size=+1><tt>config</tt></font> command to choose a file to edit.
|
131
131
|
<p>
|
132
132
|
|
133
|
-
<img src="readme/config-menu.png" width="700" height="547" align="
|
133
|
+
<img src="readme/config-menu.png" width="700" height="547" align="center"></img>
|
134
134
|
<p>
|
135
135
|
|
136
136
|
The meaning and interaction of these files will be explained later. <b>FIXME</b>
|
@@ -214,12 +214,12 @@ TBD: Add details
|
|
214
214
|
<b>Predefined functions and variables</b>
|
215
215
|
<pre>
|
216
216
|
$File
|
217
|
-
|
217
|
+
<font size=+1><tt></tt></font>
|
218
218
|
etc.
|
219
219
|
</pre>
|
220
220
|
<p>
|
221
221
|
|
222
|
-
## Runeblog-specific features (Liveblog</b>
|
222
|
+
## Runeblog-specific features (Liveblog)</b>
|
223
223
|
<b>TBD</b>
|
224
224
|
<p>
|
225
225
|
|
data/bin/blog
CHANGED
@@ -56,10 +56,11 @@ end
|
|
56
56
|
|
57
57
|
def cmdline_rebuild
|
58
58
|
_need_view
|
59
|
-
|
59
|
+
print "Generating view... "
|
60
60
|
@blog.generate_view(@view)
|
61
|
-
|
62
|
-
@blog.generate_index(@view)
|
61
|
+
print "Generating index... "
|
62
|
+
num = @blog.generate_index(@view)
|
63
|
+
puts "#{num} posts\n "
|
63
64
|
end
|
64
65
|
|
65
66
|
def handle_cmdline
|
data/lib/runeblog.rb
CHANGED
@@ -375,23 +375,19 @@ class RuneBlog
|
|
375
375
|
<body>
|
376
376
|
HTML
|
377
377
|
posts = _sorted_posts
|
378
|
-
STDERR.puts "Posts = "
|
379
|
-
posts.each {|x| STDERR.puts " " + x }
|
380
378
|
wanted = [8, posts.size].min # estimate how many we want?
|
381
379
|
enum = posts.each
|
382
380
|
entries = []
|
383
381
|
wanted.times do
|
384
382
|
postid = File.basename(enum.next)
|
385
383
|
postid = postid.to_i
|
386
|
-
# STDERR.puts "-- postid = #{postid}"
|
387
|
-
# posts.each {|x| STDERR.puts " #{x}" }
|
388
384
|
entry = index_entry(postid)
|
389
|
-
# STDERR.puts "-- entry = #{entry.size} chars"
|
390
385
|
entries << entry
|
391
386
|
text << entry
|
392
387
|
end
|
393
388
|
text << "</body></html>"
|
394
389
|
File.write(@vdir/:remote/file, text)
|
390
|
+
return posts.size
|
395
391
|
rescue => err
|
396
392
|
_tmp_error(err)
|
397
393
|
end
|
@@ -442,7 +438,8 @@ posts.each {|x| STDERR.puts " " + x }
|
|
442
438
|
log!(enter: __method__, args: [view], pwd: true, dir: true)
|
443
439
|
raise ArgumentError unless view.is_a?(String) || view.is_a?(RuneBlog::View)
|
444
440
|
@vdir = @root/:views/view
|
445
|
-
collect_recent_posts("recent.html")
|
441
|
+
num = collect_recent_posts("recent.html")
|
442
|
+
return num
|
446
443
|
rescue => err
|
447
444
|
_tmp_error(err)
|
448
445
|
end
|
data/lib/runeblog_version.rb
CHANGED
data/test/austin.rb
CHANGED
@@ -50,7 +50,8 @@ end
|
|
50
50
|
|
51
51
|
t0 = Time.now
|
52
52
|
|
53
|
-
puts
|
53
|
+
puts
|
54
|
+
debug bold("Generating test blog...")
|
54
55
|
|
55
56
|
system("rm -rf .blogs")
|
56
57
|
RuneBlog.create_new_blog_repo(".blogs")
|
@@ -151,12 +152,10 @@ x.generate_index("around_austin")
|
|
151
152
|
|
152
153
|
debug
|
153
154
|
x.change_view("around_austin")
|
154
|
-
debug
|
155
|
-
|
156
|
-
puts bold("...finished.\n")
|
155
|
+
debug bold("...finished.\n")
|
157
156
|
|
158
157
|
t1 = Time.now
|
159
158
|
|
160
159
|
elapsed = t1 - t0
|
161
|
-
puts "
|
160
|
+
puts "Elapsed: #{'%3.2f' % elapsed} secs\n "
|
162
161
|
|