runeblog 0.1.8 → 0.1.9

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 +1 -1
  3. data/lib/repl.rb +9 -9
  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: 98150fe4637b03995758004f720ad9f21e0d522fa191c0ed971be918b410e360
4
- data.tar.gz: 84d44ee68151ef291ad6137c4aaa90ef99a80ca0df6ffc3c567a3cb5b9781dc9
3
+ metadata.gz: 903a192d7c6250629c88805d13c5425c200ae4c101df861dfa2f93aaae1bb790
4
+ data.tar.gz: e118df95348763d884228f1751c6e56864270d7c04b83e6ab6f9aefe1bacf9df
5
5
  SHA512:
6
- metadata.gz: c4b0008a9a34e208c512a8026dbb21477869f81053f5ecaff31b4f7c655829a1f8e37ccb2f0a0cb46d149ee978b9ccfcc6383430ae2391ba300ba814387e9d4b
7
- data.tar.gz: e63146a418ffb1600aa9f4df175e7eb9404b78781863bb021360c163c7726692770215259409090bee4e5dc632308e4fa4bb0013280d1751803778f4dfeb4b55
6
+ metadata.gz: da576e0118e7c99d4e74a2a4d39a982d07cfbb4bb5f276856c81bb365911d3413092850c0210825283728442037eb1b772619edaff7ada44307bb71dbe3be93f
7
+ data.tar.gz: 00b79b7b5dc8cff0411b2c1566fa0f341cff4f2ad82fe15ee8ee1687fee6f480c86c4c33deddc0cdf31308ad85c03903d4ed5b75a135f9d6deaf76b985ca0d1c
data/bin/blog CHANGED
@@ -65,7 +65,7 @@ if cmd.nil? # REPL
65
65
  puts fx("\n RuneBlog", :bold), fx(" v #{RuneBlog::VERSION}", Red)
66
66
  loop { mainloop }
67
67
  # STDSCR.clear
68
- RubyText.stop
68
+ # RubyText.stop
69
69
  system("tput clear")
70
70
  puts
71
71
  else # one command
data/lib/repl.rb CHANGED
@@ -10,6 +10,7 @@ module RuneBlog::REPL
10
10
  def edit_file(file)
11
11
  result = system("#{@blog.editor} #{file}")
12
12
  raise EditorProblem(file) unless result
13
+ sleep 0.1
13
14
  STDSCR.clear
14
15
  end
15
16
 
@@ -17,7 +18,8 @@ module RuneBlog::REPL
17
18
  check_empty(arg)
18
19
  # system("tput rmcup")
19
20
  RubyText.stop
20
- abort "\n "
21
+ system("tput clear")
22
+ exit
21
23
  end
22
24
 
23
25
  def cmd_clear(arg)
@@ -36,13 +38,11 @@ module RuneBlog::REPL
36
38
  def cmd_config(arg)
37
39
  check_empty(arg)
38
40
  dir = @blog.view.dir
39
- items = ["Edit: publish",
40
- "Edit: custom/blog_header.html",
41
- "Edit: custom/blog_trailer.html",
42
- "Edit: custom/post_template.html"]
43
- # puts "\nEdit which file?" # FIXME use @out for testing later
44
- num, cmd = RubyText.menu(r: 10, c: 30, items: items)
45
- fname = cmd.split[1]
41
+ items = ["publish",
42
+ "custom/blog_header.html",
43
+ "custom/blog_trailer.html",
44
+ "custom/post_template.html"]
45
+ num, fname = RubyText.menu(title: "Edit file:", items: items)
46
46
  edit_file("#{dir}/#{fname}")
47
47
  end
48
48
 
@@ -122,7 +122,7 @@ module RuneBlog::REPL
122
122
  if arg.nil?
123
123
  viewnames = @blog.views.map {|x| x.name }
124
124
  n = viewnames.find_index(@blog.view.name)
125
- k, name = RubyText.menu(c: 30, items: viewnames, curr: n)
125
+ k, name = RubyText.menu(title: "Views", items: viewnames, curr: n)
126
126
  @blog.view = name
127
127
  output bold(@blog.view)
128
128
  puts "\n ", fx(name, :bold), "\n"
data/lib/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  class RuneBlog
3
- VERSION = "0.1.8"
3
+ VERSION = "0.1.9"
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.8
4
+ version: 0.1.9
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-13 00:00:00.000000000 Z
11
+ date: 2018-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: livetext