sxmrb 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/sxmrb.rb +7 -11
- data/lib/sxmrb/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: a32f7570feba98247a5ba7eee62f0ee35102f5387654fd0a969128b4ddf9508d
|
4
|
+
data.tar.gz: 8cf9b37357c5966be3ea713d7afb9849e6d0cc9233c673923ee2a50daed6b21f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47777ace329b09abe7706cfa0efe2955337e4050784bde10859815243195e332997e5738a5e1b387e84de4339f935606796cf6190da134a71fbbaf401f44d764
|
7
|
+
data.tar.gz: 8d2a1dac3f39aa5af129739a882bea4fc7afba0215be8c61c4ff7650c9ae421282e94d3dd861c05e809d076dd330ecadd509fbd082770919ec16afccc0ddf188
|
data/README.md
CHANGED
data/lib/sxmrb.rb
CHANGED
@@ -47,18 +47,14 @@ class Sxmrb
|
|
47
47
|
#
|
48
48
|
# @example
|
49
49
|
# file = (sh('ls') | menu(prompt: 'File?')).to_s.chomp
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
sh 'sxmo_keyboard.sh open'
|
57
|
-
end
|
58
|
-
|
59
|
-
cmd << " -p #{prompt.inspect}" if prompt
|
60
|
-
}
|
50
|
+
# rubocop:disable Lint/AmbiguousOperator
|
51
|
+
def menu(prompt: nil, options: [])
|
52
|
+
sh *(['sxmo_dmenu_with_kb.sh'].tap { |cmd|
|
53
|
+
cmd.push *options
|
54
|
+
cmd.push '-p', prompt if prompt
|
55
|
+
})
|
61
56
|
end
|
57
|
+
# rubocop:enable Lint/AmbiguousOperator
|
62
58
|
|
63
59
|
# Use a blank #menu to prompt for a value.
|
64
60
|
#
|
data/lib/sxmrb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sxmrb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frank J. Cameron
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shell
|