runeblog 0.2.87 → 0.2.88

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d2b3a57f2fb7313fe43607e4f36e8533d588fc52384903412fa8dc6221b3de0
4
- data.tar.gz: a5c313b268869b95886e5bfb31e8ee1d7aa960cc5cf93697a11bfaacf5923cc1
3
+ metadata.gz: 971964911d35242af990fce1bf3ac1e3227dd15726753f1224364781dd8d14ee
4
+ data.tar.gz: 1168fac5a9db55738abfcd02d2a05b6da4e35a7aca6739b982ad9f45ff1aa143
5
5
  SHA512:
6
- metadata.gz: 0a0299d5f038467742a54c128fc5694019ee84008eb03cd77be9dc15aa07706bf8dcce899d0abb098324e8673c6fcdc1036097ee215fedcce14aa9a23e27ca61
7
- data.tar.gz: c9a49a17819683e6b69431a701039bc947e022c4b138d61273f31a4256b3c7721247dffd0fda075bba65c544debbe7e9f7e2aeaa0278a6d65e0d21650b967807
6
+ metadata.gz: 8d4d68cdfc991e83c6c1d4ed351b410803a276ccf296da6780f671851d9ec05b667adbb3ca23558e2a7e0cf896715391d07bc11e8c47fe2de3486e8f223513af
7
+ data.tar.gz: b60f9c6f1cd642499992d72a7727276c0e0daa2b0de3c987e98a607570e62c01c926310761c7db2a715e4c22c8820ac0d3362c822d851a7329e71ff622b2efd7
data/bin/blog CHANGED
@@ -12,9 +12,7 @@ include RuneBlog::REPL
12
12
  def yesno(question, noskip=false)
13
13
  puts fx("\n #{question}", :bold)
14
14
  puts unless noskip
15
- r, c = STDSCR.rc
16
- num, str = STDSCR.menu(r: r, c: c+6, items: ["yes", "no"])
17
- num == 0
15
+ STDSCR.yesno
18
16
  end
19
17
 
20
18
  def pick_editor
@@ -159,28 +159,6 @@ rescue => err
159
159
  gets
160
160
  end
161
161
 
162
- def _parse_colon_args(args, hash) # really belongs in livetext
163
- h2 = hash.dup
164
- e = args.each
165
- loop do
166
- arg = e.next.chop.to_sym
167
- raise "_parse_args: #{arg} is unknown" unless hash.keys.include?(arg)
168
- h2[arg] = e.next
169
- end
170
- h2 = h2.reject {|k,v| v.nil? }
171
- h2.each_pair {|k, v| raise "#{k} has no value" if v.empty? }
172
- h2
173
- end
174
-
175
- def _get_arg(name, args) # really belongs in livetext
176
- raise "(#{name}) Expected an array" unless args.is_a? Array
177
- raise "(#{name}) Expected an arg" if args.empty?
178
- raise "(#{name}) Too many args: #{args.inspect}" if args.size > 1
179
- val = args[0]
180
- raise "Expected an argument '#{name}'" if val.nil?
181
- val
182
- end
183
-
184
162
  def _svg_title(*args)
185
163
  width = "95%"
186
164
  height = 90
@@ -39,27 +39,22 @@ module RuneBlog::REPL
39
39
  end
40
40
 
41
41
  def cmd_config(arg, testing = false)
42
- list = ["global.lt3 Global configuration",
43
- "blog/generate.lt3 Generator for view (usu not edited)",
44
- ".... head.lt3 HEAD info for view",
45
- ".... banner.lt3 banner description",
46
- ".... index.lt3 User-edited detail for view",
47
- ".... post_entry.lt3 Generator for post entry in recent-posts",
48
- "etc/blog.css.lt3 Global CSS",
49
- "... externals.lt3 External JS/CSS (Bootstrap, etc.)",
50
- "post/generate.lt3 Generator for a post",
51
- ".... head.lt3 HEAD info for post",
52
- ".... index.lt3 Content for post",
53
- ".... permalink.lt3 Generator for permalink"]
54
-
55
- name = ["global.lt3", "blog/generate.lt3", "blog/head.lt3", "blog/banner.lt3",
56
- "blog/index.lt3", "blog/post_entry.lt3", "etc/blog.css.lt3",
57
- "blog/externals.lt3", "post/generate.lt3", "post/head.lt3",
58
- "post/index.lt3", "post/permalink.lt3"]
42
+ hash = {"global.lt3 Global configuration" => "global.lt3",
43
+ "blog/generate.lt3 Generator for view (usu not edited)" => "blog/generate.lt3",
44
+ ".... head.lt3 HEAD info for view" => "blog/head.lt3",
45
+ ".... banner.lt3 banner description" => "blog/banner.lt3",
46
+ ".... index.lt3 User-edited detail for view" => "blog/index.lt3",
47
+ ".... post_entry.lt3 Generator for post entry in recent-posts" => "blog/post_entry.lt3",
48
+ "etc/blog.css.lt3 Global CSS" => "etc/blog.css.lt3",
49
+ "... externals.lt3 External JS/CSS (Bootstrap, etc.)" => "/etc/externals.lt3",
50
+ "post/generate.lt3 Generator for a post" => "post/generate.lt3",
51
+ ".... head.lt3 HEAD info for post" => "post/head.lt3",
52
+ ".... index.lt3 Content for post" => "post/index.lt3",
53
+ ".... permalink.lt3 Generator for permalink" => "post/permalink.lt3",
54
+ }
59
55
 
60
56
  dir = @blog.view.dir/"themes/standard/"
61
- num, str = STDSCR.menu(title: "Edit file:", items: list)
62
- target = name[num]
57
+ num, target = STDSCR.menu(title: "Edit file:", items: hash)
63
58
  edit_file(dir/target)
64
59
  end
65
60
 
@@ -253,6 +248,7 @@ module RuneBlog::REPL
253
248
  viewnames = @blog.views.map {|x| x.name }
254
249
  n = viewnames.find_index(@blog.view.name)
255
250
  name = @blog.view.name
251
+ # TODO: Add view description
256
252
  k, name = STDSCR.menu(title: "Views", items: viewnames, curr: n) unless testing
257
253
  return if name.nil?
258
254
  @blog.view = name
@@ -2,7 +2,7 @@
2
2
  if ! (Object.constants.include?(:RuneBlog) && RuneBlog.constants.include?(:Path))
3
3
 
4
4
  class RuneBlog
5
- VERSION = "0.2.87"
5
+ VERSION = "0.2.88"
6
6
 
7
7
  path = Gem.find_files("runeblog").grep(/runeblog-/).first
8
8
  Path = File.dirname(path)
@@ -20,8 +20,8 @@ spec = Gem::Specification.new do |s|
20
20
  s.authors = ["Hal Fulton"]
21
21
  s.email = 'rubyhacker@gmail.com'
22
22
  s.executables << "blog"
23
- s.add_runtime_dependency 'livetext', '~> 0.8', '>= 0.8.96'
24
- s.add_runtime_dependency 'rubytext', '~> 0.1', '>= 0.1.18'
23
+ s.add_runtime_dependency 'livetext', '~> 0.8', '>= 0.8.98'
24
+ s.add_runtime_dependency 'rubytext', '~> 0.1', '>= 0.1.19'
25
25
 
26
26
  s.add_development_dependency 'minitest', '~> 5.10', '>= 5.10.0'
27
27
 
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.2.87
4
+ version: 0.2.88
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-17 00:00:00.000000000 Z
11
+ date: 2019-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: livetext
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '0.8'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.8.96
22
+ version: 0.8.98
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '0.8'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.8.96
32
+ version: 0.8.98
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rubytext
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: '0.1'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 0.1.18
42
+ version: 0.1.19
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: '0.1'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 0.1.18
52
+ version: 0.1.19
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: minitest
55
55
  requirement: !ruby/object:Gem::Requirement