runeblog 0.1.47 → 0.1.48

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: 2965862bce8afd6ea12e340f098af1392bb90eed94d0df93b47d80ab737401ae
4
- data.tar.gz: f88038430c43d5cbe0cab38965869d575d4e22e89a0a1877653c976d4c911b30
3
+ metadata.gz: b7003582f1c4947b7532fd8c1a5d0f24a612c82b7155d964e7aa6743e9a001a9
4
+ data.tar.gz: cba71bbbdb8acdf60808cfdcbf2739492d7860af94ea1ffaa1b02637119d6ced
5
5
  SHA512:
6
- metadata.gz: a20c5d7bb9566791f8eadd7830b0cb015e7d17424ed6169dfc24d5eacc1f0354bc95149b92bb323dc5ec73ff1d2153224d82b932db5b43558a08273a1e1d8a9b
7
- data.tar.gz: e29d0e4c4040da7ef7190c973a0ed1b7b6e8317b95703a51fec3503e3cc2454014a5a9e801627611d79efc6b93a34605683766a0c73010b1861e749491c302b7
6
+ metadata.gz: 6dbb6585d71b3581540580f14ad08893e3515d884d7c57bc793aa7c98cd77a71b0bd9f6dec81950472f54c40ab65688a488770ffca34b0e139044165f4dd1dda
7
+ data.tar.gz: dce427ba96b4c1b4f5b3e2fab1dc737f371926888c5db98d102032f7ab229d3d0bf646f8f506e0dea041c7b1d32c5bc4dcb1f0f5c2488c423034f36dc9d88091
data/lib/helpers-repl.rb CHANGED
@@ -207,6 +207,24 @@ module RuneBlog::REPL
207
207
  RuneBlog::Publishing.new(user, server, root, path, proto)
208
208
  end
209
209
 
210
+ def tags_for_view(vname = @blog.view)
211
+ Dir.chdir(vname) do
212
+ fname = "tagpool"
213
+ if File.exist?(fname)
214
+ tags = File.readlines(fname).map(&:chomp)
215
+ else
216
+ tags = []
217
+ end
218
+ end
219
+ tags.sort
220
+ end
221
+
222
+ def all_tags
223
+ all = []
224
+ @blog.views.each {|view| all.append(*tags_for_view(view)) }
225
+ all.sort + ["NEW TAG"]
226
+ end
227
+
210
228
  ### find_asset
211
229
 
212
230
  # FIXME is this per-post?
data/lib/repl.rb CHANGED
@@ -52,15 +52,9 @@ module RuneBlog::REPL
52
52
  puts "\n This is still buggy.\n "
53
53
  return
54
54
 
55
- Dir.chdir(@blog.root + "/views/" + @blog.view.name)
56
- others = @blog.views - [@blog.view]
57
- others.map!(&:name)
58
- viewlist = STDSCR.multimenu(items: others)
59
- @blog.post_views = viewlist
60
- tags = File.readlines("tagpool").map(&:chomp)
61
- return if tags.empty?
62
- taglist = STDSCR.multimenu(items: tags)
63
- @blog.post_tags = taglist
55
+ avail_tags = all_tags
56
+ tags = STDSCR.multimenu(items: avail_tags)
57
+ @blog.post_tags = tags
64
58
  end
65
59
 
66
60
  def cmd_tags(arg, testing = false)
@@ -1,6 +1,6 @@
1
1
 
2
2
  class RuneBlog
3
- VERSION = "0.1.47"
3
+ VERSION = "0.1.48"
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.47
4
+ version: 0.1.48
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-03-22 00:00:00.000000000 Z
11
+ date: 2019-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: livetext