dialog_tui 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dialog_tui/version.rb +1 -1
- data/lib/dialog_tui.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cc4111fc60ccfa00f25c354883d8233ccc4403a
|
4
|
+
data.tar.gz: eadbe40fc4cb0f2bbce8d0ac330fa43cd32010d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af1502d916d0ef9393f8d6416ea8868fc0005c40c12173aa333afee867dcd2673d73cdeb5b6f46414ce7c30d6aacc0f40e5ad52bc8b41653aad4d442f0109287
|
7
|
+
data.tar.gz: 6de6835c282ed968217bc50ce8b29b05ecc5ff9fa4b5e65075742c334ac67ab3458bfbe935486f031dbbb3e9ebd3835aaf03a8fe87d426fef49e4e1d8382613a
|
data/lib/dialog_tui/version.rb
CHANGED
data/lib/dialog_tui.rb
CHANGED
@@ -85,12 +85,12 @@ module DialogTui
|
|
85
85
|
@current == option # so current or chosen?)
|
86
86
|
end
|
87
87
|
|
88
|
-
private
|
89
88
|
def option text, &reaction
|
90
89
|
option = Option.new self, text, &reaction # order?
|
91
90
|
@options.push option
|
92
91
|
end
|
93
92
|
|
93
|
+
private
|
94
94
|
def print_options
|
95
95
|
puts '-'*10
|
96
96
|
@options.each &:print
|
@@ -171,6 +171,9 @@ if __FILE__ == $0
|
|
171
171
|
end
|
172
172
|
end
|
173
173
|
|
174
|
+
puts '-----'
|
175
|
+
puts '3 times - choose any option:'
|
176
|
+
puts '-----'
|
174
177
|
puts 'manual testing here - use arrows and enter'
|
175
178
|
puts 'no way to fail it - just look at behavior'
|
176
179
|
3.times { My.new.act }
|