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 +4 -4
- data/lib/helpers-repl.rb +18 -0
- data/lib/repl.rb +3 -9
- data/lib/runeblog_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: b7003582f1c4947b7532fd8c1a5d0f24a612c82b7155d964e7aa6743e9a001a9
|
4
|
+
data.tar.gz: cba71bbbdb8acdf60808cfdcbf2739492d7860af94ea1ffaa1b02637119d6ced
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
56
|
-
|
57
|
-
|
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)
|
data/lib/runeblog_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.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-
|
11
|
+
date: 2019-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: livetext
|