runeblog 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/bin/blog +8 -4
  3. data/lib/repl.rb +10 -3
  4. data/lib/version.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38afc33e9e97a55dccd711b54044be6c46b6362435d8c25e7a69940c29d77c47
4
- data.tar.gz: 387e5a9df5fdc890e39113e41e12d8b61b463861915b0b54fa6a26313746fb45
3
+ metadata.gz: a9aa3949ffe64a27b284103eb9cd968ce4d6353a24db6b8b812b84ae934d80a9
4
+ data.tar.gz: a1facc32a0e2f1c18c4679df5243c669d3a7491157ce795e9461383428a8285d
5
5
  SHA512:
6
- metadata.gz: 1b62e82c4f925b410c1a7042b2b37cb668bc6304b324019379742c02bdefba45f322f5e39cbee9f3d1625f4374ecf02c6976a2a3dd8d47f28659578ca2d8edaf
7
- data.tar.gz: 828618444b225d1030e85d677292878138323734147077770e9158664145185bfb4179c67e27961443662324a6bee2c618f813048b121037b6ae0006c5c03d65
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 :red, "\nblog> "
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(:echo, :_raw, log: "debug.out", fg: :blue, bg: :white)
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 red("\n RuneBlog v #{RuneBlog::VERSION}")
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 = bold(v) if v == @blog.view.name
190
- outstr " #{v}\n"
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
@@ -1,6 +1,6 @@
1
1
 
2
2
  class RuneBlog
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
 
5
5
  Path = File.expand_path(File.join(File.dirname(__FILE__)))
6
6
  end
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.3
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-25 00:00:00.000000000 Z
11
+ date: 2018-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: livetext