dialog_tui 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb44c246b8c595d9080d02a941e937f1c0929aff
4
- data.tar.gz: d1b788e3a2b8a96db07fa135dae71f123e2128a3
3
+ metadata.gz: 2cc4111fc60ccfa00f25c354883d8233ccc4403a
4
+ data.tar.gz: eadbe40fc4cb0f2bbce8d0ac330fa43cd32010d0
5
5
  SHA512:
6
- metadata.gz: 3a158b405922118529c6e6df886c7ff4404dd24a64904173d4c18526511bd77378e785f10df146d3f59c6259e081317207f8d9b7660dc533bb8162fc66119b21
7
- data.tar.gz: ceb0862cfce4131c7b5e93136ca34064a6b3fedaf703ee9c42d41ee7af1605b4e1fca678e76092e18a1c3a47b4a8a2b8da67fa9569fb3b9d1eebc359dccf8094
6
+ metadata.gz: af1502d916d0ef9393f8d6416ea8868fc0005c40c12173aa333afee867dcd2673d73cdeb5b6f46414ce7c30d6aacc0f40e5ad52bc8b41653aad4d442f0109287
7
+ data.tar.gz: 6de6835c282ed968217bc50ce8b29b05ecc5ff9fa4b5e65075742c334ac67ab3458bfbe935486f031dbbb3e9ebd3835aaf03a8fe87d426fef49e4e1d8382613a
@@ -1,3 +1,3 @@
1
1
  module DialogTui
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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 }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dialog_tui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander K