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 +4 -4
- data/bin/blog +1 -1
- data/lib/default.rb +6 -6
- data/lib/repl.rb +14 -4
- data/lib/runeblog_version.rb +1 -1
- data/test/make_blog.rb +1 -0
- 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: e4b3cbc5968e9ae601693f9100c564bd52c78d521fbc51c6ba6e2a92d414c0d4
|
4
|
+
data.tar.gz: c408d74ef879272abc36334d0fbacc8055d28b0529775fc91a77fc3f128bc27c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b832c5dee0d21f88ec60185de217135ff28134e96416ad4953a3bc1f67fd2714b6a099801bace01172d16f6bda429af812c6938b0c07ff74f1ff7496bae61f90
|
7
|
+
data.tar.gz: 2150a767245ac855bf3a14707da752409c4a9a30b97ed4f5b2f6e68539326d822aa73b4385dd7e4e6d80e1aa2559152b52728bde0edf957d8f8d6430f3259b9a
|
data/bin/blog
CHANGED
data/lib/default.rb
CHANGED
@@ -6,22 +6,22 @@ BlogHeader = <<-TEXT
|
|
6
6
|
<html>
|
7
7
|
<body>
|
8
8
|
|
9
|
-
<title>
|
9
|
+
<title>Fake Blog, Fake Title, Fake Author</title>
|
10
10
|
|
11
11
|
<table>
|
12
12
|
<tr>
|
13
13
|
<td>
|
14
|
-
<img src=
|
14
|
+
<img src=fakeimage.jpg width=400 height=300>
|
15
15
|
</td>
|
16
16
|
<td>
|
17
|
-
<h3>Yet another blog by
|
17
|
+
<h3>Yet another blog... by Kilgore Trout</h3>
|
18
18
|
<br>
|
19
19
|
<br>
|
20
|
-
|
21
|
-
|
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
|
-
|
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 '#{
|
265
|
-
|
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
|
-
|
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
|
-
|
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
|
|
data/lib/runeblog_version.rb
CHANGED
data/test/make_blog.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.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-
|
11
|
+
date: 2018-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: livetext
|