runeblog 0.0.96 → 0.0.97
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 +21 -0
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32f2909064e22756ce647919900791859397c09f
|
4
|
+
data.tar.gz: 8bce9261e8a505ca9569e8d7451fc149e65cf1e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89b1179845d6de3a7b2dd1957eded994c4b0eaf9a63c6dc7fa83be4eb11c29dfbdb7e8b82cc84d6f245c106b27ea38c8be57a572853695bb3f07e5085e38cbd9
|
7
|
+
data.tar.gz: 324b34b04178ee749973bc818df2d78eae60c205970357fc8558e59a9404cc499e1dad5f2f84121ca2ceee6991d21ffdf2d25847662714720105911d99f0d870
|
data/lib/helpers-repl.rb
CHANGED
@@ -211,6 +211,27 @@ module RuneBlog::REPL
|
|
211
211
|
RuneBlog::Publishing.new(user, server, root, path, proto)
|
212
212
|
end
|
213
213
|
|
214
|
+
def dumb_menu(hash)
|
215
|
+
# { string => :meth, ... }
|
216
|
+
max = hash.size
|
217
|
+
puts "\n Select from:"
|
218
|
+
hash.each_pair.with_index do |pair, i|
|
219
|
+
string, meth = *pair
|
220
|
+
puts " #{red('%2d' % (i+1))} #{string}"
|
221
|
+
end
|
222
|
+
loop do
|
223
|
+
print red("> ")
|
224
|
+
num = gets.to_i
|
225
|
+
if num.between?(1, max)
|
226
|
+
picked = hash.values[num-1]
|
227
|
+
puts "Calling number #{num} (#{picked})..."
|
228
|
+
break
|
229
|
+
else
|
230
|
+
puts "Huh? Must be 1 to #{max}"
|
231
|
+
end
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
214
235
|
### find_asset
|
215
236
|
|
216
237
|
# def find_asset(asset) # , views)
|
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.0.
|
4
|
+
version: 0.0.97
|
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-
|
11
|
+
date: 2018-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: livetext
|