runeblog 0.0.96 → 0.0.97

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/helpers-repl.rb +21 -0
  3. data/lib/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f6d3746b90f11a932bc05711f21f789809cca00
4
- data.tar.gz: 48b95ce73c73cf0acce1a61377e1a0044ff75fd9
3
+ metadata.gz: 32f2909064e22756ce647919900791859397c09f
4
+ data.tar.gz: 8bce9261e8a505ca9569e8d7451fc149e65cf1e4
5
5
  SHA512:
6
- metadata.gz: 5a349ab1b13babe5d238d43787b1342d72aae3eb4c924b536f99525f4f6db4874d550a9678a16a031b11a6a268a2313ebf15f1072980d9ae49dc10464e00e5d1
7
- data.tar.gz: 00c2de00d08e210e21acc2c82fa000e23f7e8fcc97d9383664b5354bac001e1401b5aa65df1de4e3fcffe84a1bb1ee652194af13fd57e0d99803390cc3a37b95
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
@@ -1,6 +1,6 @@
1
1
 
2
2
  class RuneBlog
3
- VERSION = "0.0.96"
3
+ VERSION = "0.0.97"
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.0.96
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-10-28 00:00:00.000000000 Z
11
+ date: 2018-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: livetext