runeblog 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/blog +8 -4
- data/lib/repl.rb +10 -3
- data/lib/version.rb +1 -1
- 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: a9aa3949ffe64a27b284103eb9cd968ce4d6353a24db6b8b812b84ae934d80a9
|
4
|
+
data.tar.gz: a1facc32a0e2f1c18c4679df5243c669d3a7491157ce795e9461383428a8285d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1ce2fb7692cf799413f9cbb4820e23d566c02707abd7537f659ec4d7999ef854178c41a343c6afa8153183168143345d7c6d961dcaea096934e6e05c8011313
|
7
|
+
data.tar.gz: 340f345a6d3c93887294fe9e1914eadc365701586ac61b18c6c0ca0fdcb8281c3abf5cacea0638e39d613a58aa58be27dc3111d7179fd982e4d7862483c20ae0
|
data/bin/blog
CHANGED
@@ -21,8 +21,8 @@ end
|
|
21
21
|
|
22
22
|
def mainloop
|
23
23
|
if curses?
|
24
|
-
print
|
25
|
-
cmd = gets
|
24
|
+
print fx("blog> ", Red)
|
25
|
+
cmd = STDSCR.gets
|
26
26
|
else
|
27
27
|
cmd = Readline.readline(red("\nblog> "), true)
|
28
28
|
end
|
@@ -39,7 +39,10 @@ end
|
|
39
39
|
|
40
40
|
###########
|
41
41
|
|
42
|
-
RubyText.start(
|
42
|
+
RubyText.start(log: "blogcmd.txt", scroll: true, fg: Blue, bg: White)
|
43
|
+
RubyText.set(:_echo)
|
44
|
+
|
45
|
+
X.stdscr.keypad(true)
|
43
46
|
|
44
47
|
STDOUT.sync = true
|
45
48
|
|
@@ -62,7 +65,8 @@ end
|
|
62
65
|
if cmd.nil? # REPL
|
63
66
|
# system("tput smcup") # see: tput rmcup in cmd_quit
|
64
67
|
|
65
|
-
puts
|
68
|
+
puts fx("\n RuneBlog", :bold), fx(" v #{RuneBlog::VERSION}", Red)
|
69
|
+
puts
|
66
70
|
loop { mainloop }
|
67
71
|
else # one command
|
68
72
|
file = File.open("/dev/tty")
|
data/lib/repl.rb
CHANGED
@@ -183,13 +183,20 @@ module RuneBlog::REPL
|
|
183
183
|
end
|
184
184
|
|
185
185
|
def cmd_list_views(arg)
|
186
|
-
reset_output
|
186
|
+
reset_output("\n")
|
187
187
|
check_empty(arg)
|
188
|
+
debug "curr view = #{@blog.view.name.inspect}"
|
189
|
+
puts
|
188
190
|
@blog.views.each do |v|
|
189
|
-
v =
|
190
|
-
|
191
|
+
v = v.to_s
|
192
|
+
v = fx(v, :bold) if v == @blog.view.name
|
193
|
+
debug "v = #{v.inspect} - #{v.fx.inspect rescue 'no fx'}"
|
194
|
+
print " "
|
195
|
+
puts v
|
191
196
|
end
|
197
|
+
debug "out = #{@out.inspect}"
|
192
198
|
@out
|
199
|
+
""
|
193
200
|
end
|
194
201
|
|
195
202
|
def cmd_list_posts(arg)
|
data/lib/version.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.4
|
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-
|
11
|
+
date: 2018-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: livetext
|