runeblog 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/blog +1 -1
- data/lib/repl.rb +9 -9
- 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: 903a192d7c6250629c88805d13c5425c200ae4c101df861dfa2f93aaae1bb790
|
4
|
+
data.tar.gz: e118df95348763d884228f1751c6e56864270d7c04b83e6ab6f9aefe1bacf9df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da576e0118e7c99d4e74a2a4d39a982d07cfbb4bb5f276856c81bb365911d3413092850c0210825283728442037eb1b772619edaff7ada44307bb71dbe3be93f
|
7
|
+
data.tar.gz: 00b79b7b5dc8cff0411b2c1566fa0f341cff4f2ad82fe15ee8ee1687fee6f480c86c4c33deddc0cdf31308ad85c03903d4ed5b75a135f9d6deaf76b985ca0d1c
|
data/bin/blog
CHANGED
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
|
-
|
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 = ["
|
40
|
-
"
|
41
|
-
"
|
42
|
-
"
|
43
|
-
|
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(
|
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
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.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-
|
11
|
+
date: 2018-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: livetext
|