runeblog 0.1.22 → 0.1.23

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: 8716711a8c779931fdca8f00224df63537d6adbf41be3acfbf12d60beb20e831
4
- data.tar.gz: ca233f3853ffffac5abecaf290e80af0adaef2a8068db829082b3a0370cd5ada
3
+ metadata.gz: e4b3cbc5968e9ae601693f9100c564bd52c78d521fbc51c6ba6e2a92d414c0d4
4
+ data.tar.gz: c408d74ef879272abc36334d0fbacc8055d28b0529775fc91a77fc3f128bc27c
5
5
  SHA512:
6
- metadata.gz: c89faa0f8256de692605395c248cbace8a51726737949123792b89af330711919c0e7112d794abca51fa2307157ba39d38e315a79371eeff88a610885841765c
7
- data.tar.gz: 3fce62a85c37ed183caa3d3bb734a706f9dd691c004243bf970a2ed3bb419c1b16aa0a521b70e213126b35e7cd6c24f8a086cac7985098ce3673c2749001214e
6
+ metadata.gz: b832c5dee0d21f88ec60185de217135ff28134e96416ad4953a3bc1f67fd2714b6a099801bace01172d16f6bda429af812c6938b0c07ff74f1ff7496bae61f90
7
+ data.tar.gz: 2150a767245ac855bf3a14707da752409c4a9a30b97ed4f5b2f6e68539326d822aa73b4385dd7e4e6d80e1aa2559152b52728bde0edf957d8f8d6430f3259b9a
data/bin/blog CHANGED
@@ -10,7 +10,7 @@ require 'repl'
10
10
  include RuneBlog::REPL
11
11
 
12
12
  def mainloop
13
- print fx("blog> ", Red)
13
+ print fx("blog> ", Red, :bold)
14
14
  cmd = STDSCR.gets(history: @cmdhist)
15
15
  cmd_quit(nil) if cmd.nil? # ^D
16
16
  cmd.chomp!
data/lib/default.rb CHANGED
@@ -6,22 +6,22 @@ BlogHeader = <<-TEXT
6
6
  <html>
7
7
  <body>
8
8
 
9
- <title>Ruby, Elixir, and More</title>
9
+ <title>Fake Blog, Fake Title, Fake Author</title>
10
10
 
11
11
  <table>
12
12
  <tr>
13
13
  <td>
14
- <img src=blog3a.jpg width=400 height=300>
14
+ <img src=fakeimage.jpg width=400 height=300>
15
15
  </td>
16
16
  <td>
17
- <h3>Yet another blog by Hal Fulton</h3>
17
+ <h3>Yet another blog... by Kilgore Trout</h3>
18
18
  <br>
19
19
  <br>
20
- <b>Note</b>: I can never find a blogging engine I like! <br>
21
- For now, this will just be a set of static pages.
20
+ If you're the kind of person who likes this sort of thing,
21
+ then this is the sort of thing a person like you will like.
22
22
  <br>
23
23
  <br>
24
- If you want to comment, just <a href=mailto:rubyhacker@gmail.com>email me</a>.
24
+ Don't you feel more like you do now than before you read this?
25
25
  </td>
26
26
  </tr>
27
27
  </table>
data/lib/repl.rb CHANGED
@@ -261,8 +261,10 @@ module RuneBlog::REPL
261
261
  end
262
262
 
263
263
  def cmd_INVALID(arg, testing = false)
264
- reset_output "\n Command '#{red(arg)}' was not understood."
265
- puts "\n Command ", fx(arg, Red), " was not understood."
264
+ reset_output "\n Command '#{arg}' was not understood."
265
+ print fx("\n Command ", :bold)
266
+ print fx(arg, Red, :bold)
267
+ puts fx(" was not understood.\n ", :bold)
266
268
  return [false, @out]
267
269
  end
268
270
 
@@ -270,7 +272,8 @@ module RuneBlog::REPL
270
272
  reset_output
271
273
  check_empty(arg)
272
274
  msg = <<-EOS
273
- Commands:
275
+
276
+ Commands:
274
277
 
275
278
  h, help This message
276
279
  q, quit Exit the program
@@ -303,7 +306,14 @@ module RuneBlog::REPL
303
306
  publish Publish (current view)
304
307
  EOS
305
308
  output msg
306
- puts msg unless testing
309
+ msg.each_line do |line|
310
+ next if testing
311
+ line.chomp!
312
+ s1, s2 = line[0..22], line[23..-1]
313
+ print fx(s1, :bold)
314
+ puts s2
315
+ end
316
+ puts unless testing
307
317
  return [false, @out]
308
318
  end
309
319
 
@@ -1,6 +1,6 @@
1
1
 
2
2
  class RuneBlog
3
- VERSION = "0.1.22"
3
+ VERSION = "0.1.23"
4
4
 
5
5
  Path = File.expand_path(File.join(File.dirname(__FILE__)))
6
6
  end
data/test/make_blog.rb CHANGED
@@ -28,6 +28,7 @@ x.create_view("alpha_view")
28
28
 
29
29
  # Hack:
30
30
  system("cp publish .blog/data_test/views/alpha_view/publish")
31
+ system("cp fakeimage.jpg .blog/data_test/assets/")
31
32
 
32
33
  x.create_view("beta_view")
33
34
  x.create_view("gamma_view")
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.22
4
+ version: 0.1.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-30 00:00:00.000000000 Z
11
+ date: 2018-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: livetext