runeblog 0.2.63 → 0.2.64

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eed573a3a6125d04994f9219e96c3f780ddfa6be6fe7601b61faab6ae4af14f1
4
- data.tar.gz: 2ea2a8821dfa7b6fa2027d09857ba7857e982ba28e0b4b4df0d5939fb41a7e7c
3
+ metadata.gz: 1ee0e8ea5eca8141bc128304f9f3025cff30bf7db3d6dc963ca9e826e7ec48fa
4
+ data.tar.gz: a46e8e6675cde4d9e43bdb5248eed70d732d86d28a0e80cf0c89d118c0ddbc3d
5
5
  SHA512:
6
- metadata.gz: '022598ff36e40f4f519912535255f8edf2bf02c412677d40d6c4b0720ccd712f8bdc81db2d31012d7687c04665ad5e2ce38bc1ea903b1afb96f6c4b62d56fd2a'
7
- data.tar.gz: af41884ac8a5d475d5b04d295edc1faaf41254fe9bf06dfea3d12d3d1d6aca2a9374bedbd24f03e9502fc6a1dfddab9798dd4d10090b88f940b9a3ea986abadb
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="left"></img>
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
- `[new view] command for this. Note that the current view is displayed as part of the prompt.
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
- <pre><b>FIXME add example here</b></pre>
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="left"></img>
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="left"></img>
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
- `[new view] command for this. Note that the current view is displayed as part of the prompt.
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
- <pre><b>FIXME add example here</b></pre>
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="left"></img>
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
- $\[date is undefined]
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
- puts "Generating view..."
59
+ print "Generating view... "
60
60
  @blog.generate_view(@view)
61
- puts "Generating index..."
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
@@ -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
@@ -2,7 +2,7 @@
2
2
  if ! (Object.constants.include?(:RuneBlog) && RuneBlog.constants.include?(:Path))
3
3
 
4
4
  class RuneBlog
5
- VERSION = "0.2.63"
5
+ VERSION = "0.2.64"
6
6
 
7
7
  path = Gem.find_files("runeblog").grep(/runeblog-/).first
8
8
  Path = File.dirname(path)
@@ -50,7 +50,8 @@ end
50
50
 
51
51
  t0 = Time.now
52
52
 
53
- puts bold("\nGenerating test blog...")
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 "\nElapsed: #{'%3.2f' % elapsed} secs\n "
160
+ puts "Elapsed: #{'%3.2f' % elapsed} secs\n "
162
161
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runeblog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.63
4
+ version: 0.2.64
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton