tty 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. data/README.md +78 -12
  2. data/benchmarks/shell.rb +26 -0
  3. data/benchmarks/table.rb +35 -0
  4. data/lib/tty.rb +23 -1
  5. data/lib/tty/coercer.rb +13 -0
  6. data/lib/tty/coercer/boolean.rb +39 -0
  7. data/lib/tty/coercer/float.rb +23 -0
  8. data/lib/tty/coercer/integer.rb +23 -0
  9. data/lib/tty/coercer/range.rb +33 -0
  10. data/lib/tty/shell.rb +6 -2
  11. data/lib/tty/shell/question.rb +158 -138
  12. data/lib/tty/shell/reader.rb +92 -0
  13. data/lib/tty/shell/response.rb +219 -0
  14. data/lib/tty/shell/response_delegation.rb +53 -0
  15. data/lib/tty/table.rb +90 -16
  16. data/lib/tty/table/border.rb +34 -8
  17. data/lib/tty/table/border/ascii.rb +16 -25
  18. data/lib/tty/table/border/null.rb +0 -6
  19. data/lib/tty/table/border/unicode.rb +16 -25
  20. data/lib/tty/table/column_set.rb +1 -1
  21. data/lib/tty/table/error.rb +10 -0
  22. data/lib/tty/table/operation/wrapped.rb +0 -6
  23. data/lib/tty/table/orientation.rb +57 -0
  24. data/lib/tty/table/orientation/horizontal.rb +19 -0
  25. data/lib/tty/table/orientation/vertical.rb +19 -0
  26. data/lib/tty/table/renderer.rb +7 -0
  27. data/lib/tty/table/renderer/ascii.rb +1 -1
  28. data/lib/tty/table/renderer/basic.rb +2 -2
  29. data/lib/tty/table/renderer/unicode.rb +1 -1
  30. data/lib/tty/table/validatable.rb +20 -0
  31. data/lib/tty/terminal.rb +15 -14
  32. data/lib/tty/terminal/color.rb +1 -1
  33. data/lib/tty/terminal/echo.rb +41 -0
  34. data/lib/tty/terminal/home.rb +31 -0
  35. data/lib/tty/text.rb +85 -0
  36. data/lib/tty/text/truncation.rb +83 -0
  37. data/lib/tty/text/wrapping.rb +96 -0
  38. data/lib/tty/version.rb +1 -1
  39. data/spec/tty/coercer/boolean/coerce_spec.rb +113 -0
  40. data/spec/tty/coercer/float/coerce_spec.rb +32 -0
  41. data/spec/tty/coercer/integer/coerce_spec.rb +39 -0
  42. data/spec/tty/coercer/range/coerce_spec.rb +73 -0
  43. data/spec/tty/shell/ask_spec.rb +14 -1
  44. data/spec/tty/shell/question/argument_spec.rb +30 -0
  45. data/spec/tty/shell/question/character_spec.rb +16 -0
  46. data/spec/tty/shell/question/default_spec.rb +25 -0
  47. data/spec/tty/shell/question/in_spec.rb +23 -0
  48. data/spec/tty/shell/question/initialize_spec.rb +11 -211
  49. data/spec/tty/shell/question/modifier/whitespace_spec.rb +1 -1
  50. data/spec/tty/shell/question/modify_spec.rb +44 -0
  51. data/spec/tty/shell/question/valid_spec.rb +46 -0
  52. data/spec/tty/shell/question/validate_spec.rb +30 -0
  53. data/spec/tty/shell/reader/getc_spec.rb +40 -0
  54. data/spec/tty/shell/response/read_bool_spec.rb +41 -0
  55. data/spec/tty/shell/response/read_char_spec.rb +17 -0
  56. data/spec/tty/shell/response/read_date_spec.rb +20 -0
  57. data/spec/tty/shell/response/read_email_spec.rb +43 -0
  58. data/spec/tty/shell/response/read_multiple_spec.rb +24 -0
  59. data/spec/tty/shell/response/read_number_spec.rb +29 -0
  60. data/spec/tty/shell/response/read_range_spec.rb +29 -0
  61. data/spec/tty/shell/response/read_spec.rb +68 -0
  62. data/spec/tty/shell/response/read_string_spec.rb +19 -0
  63. data/spec/tty/table/access_spec.rb +6 -0
  64. data/spec/tty/table/border/new_spec.rb +3 -3
  65. data/spec/tty/table/initialize_spec.rb +17 -1
  66. data/spec/tty/table/options_spec.rb +7 -1
  67. data/spec/tty/table/orientation_spec.rb +98 -0
  68. data/spec/tty/table/renders_with_spec.rb +76 -0
  69. data/spec/tty/table/rotate_spec.rb +72 -0
  70. data/spec/tty/table/to_s_spec.rb +13 -1
  71. data/spec/tty/table/validatable/validate_options_spec.rb +34 -0
  72. data/spec/tty/terminal/color/remove_spec.rb +34 -1
  73. data/spec/tty/terminal/echo_spec.rb +22 -0
  74. data/spec/tty/text/truncate_spec.rb +13 -0
  75. data/spec/tty/text/truncation/initialize_spec.rb +29 -0
  76. data/spec/tty/text/truncation/truncate_spec.rb +73 -0
  77. data/spec/tty/text/wrap_spec.rb +14 -0
  78. data/spec/tty/text/wrapping/initialize_spec.rb +25 -0
  79. data/spec/tty/text/wrapping/wrap_spec.rb +80 -0
  80. data/tty.gemspec +1 -0
  81. metadata +101 -8
@@ -0,0 +1,22 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ require 'spec_helper'
4
+
5
+ describe TTY::Terminal, '#echo' do
6
+ let(:instance) { described_class.new }
7
+
8
+ subject { instance.echo(&block) }
9
+
10
+ context 'without block' do
11
+ let(:block) { }
12
+
13
+ it { should be_nil }
14
+ end
15
+
16
+ context 'with empty block' do
17
+ let(:block) { lambda { '' } }
18
+
19
+ it { should == '' }
20
+ end
21
+
22
+ end
@@ -0,0 +1,13 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ require 'spec_helper'
4
+
5
+ describe TTY::Text, '#truncate' do
6
+ let(:text) { 'ラドクリフ、マラソン五輪代表に1万m出場にも含み' }
7
+ let(:length) { 12 }
8
+
9
+ subject { described_class.truncate(text, :length => length) }
10
+
11
+ it { should == "ラドクリフ、マラソン五…" }
12
+
13
+ end # truncate
@@ -0,0 +1,29 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ require 'spec_helper'
4
+
5
+ describe TTY::Text::Truncation, '#initialize' do
6
+ let(:text) { "There go the ships; there is that Leviathan whom thou hast made to play therein."}
7
+
8
+ let(:args) { [] }
9
+
10
+ subject { described_class.new text, *args }
11
+
12
+ its(:text) { should == text }
13
+
14
+ its(:length) { should == 30 }
15
+
16
+ its(:separator) { should be_nil }
17
+
18
+ its(:trailing) { should == '…' }
19
+
20
+ context 'custom values' do
21
+ let(:args) { [45, { :separator => ' ', :trailing => '...' }]}
22
+
23
+ its(:length) { should == 45 }
24
+
25
+ its(:separator) { should == ' ' }
26
+
27
+ its(:trailing) { should == '...' }
28
+ end
29
+ end # initialize
@@ -0,0 +1,73 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ require 'spec_helper'
4
+
5
+ describe TTY::Text::Truncation, '#truncate' do
6
+ let(:instance) { described_class.new }
7
+ let(:separator) { nil }
8
+ let(:trailing) { '…' }
9
+ let(:options) { { :length => length, :separator => separator, :trailing => trailing } }
10
+
11
+ subject { described_class.new(text, options).truncate }
12
+
13
+ context 'unicode support' do
14
+ let(:text) { 'ラドクリフ、マラソン五輪代表に1万m出場にも含み' }
15
+
16
+ context 'with zero length' do
17
+ let(:length) { 0 }
18
+
19
+ it { should == text }
20
+ end
21
+
22
+ context 'with nil length' do
23
+ let(:length) { nil }
24
+
25
+ it { should == text }
26
+ end
27
+
28
+ context 'with truncation' do
29
+ let(:length) { 12 }
30
+
31
+ it { should == "ラドクリフ、マラソン五#{trailing}" }
32
+ end
33
+
34
+ context 'without truncation' do
35
+ let(:length) { 100 }
36
+
37
+ it { should == text }
38
+ end
39
+
40
+ context 'with separator' do
41
+ let(:length) { 12 }
42
+ let(:separator) { ' ' }
43
+
44
+ it { should == "ラドクリフ、マラソン五#{trailing}" }
45
+ end
46
+ end
47
+
48
+ context 'with custom trailing' do
49
+ let(:text) { 'ラドクリフ、マラソン五輪代表に1万m出場にも含み' }
50
+ let(:length) { 20 }
51
+ let(:trailing) { '... (see more)' }
52
+
53
+ it { should == "ラドクリフ、#{trailing}" }
54
+ end
55
+
56
+ context 'with separator' do
57
+ let(:length) { 25 }
58
+ let(:text) { "Immense as whales, the motion of whose vast bodies can in a peaceful calm trouble the ocean til it boil." }
59
+
60
+ context 'blank' do
61
+ let(:separator) { '' }
62
+
63
+ it { should == "Immense as whales, the m#{trailing}"}
64
+ end
65
+
66
+ context 'space' do
67
+ let(:separator) { ' ' }
68
+
69
+ it { should == "Immense as whales, the…" }
70
+ end
71
+ end
72
+
73
+ end # truncate
@@ -0,0 +1,14 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ require 'spec_helper'
4
+
5
+ describe TTY::Text, '#wrap' do
6
+ let(:text) { 'ラドクリフ、マラソン五輪代表に1万m出場にも含み' }
7
+ let(:length) { 8 }
8
+ let(:indent) { 4 }
9
+
10
+ subject { described_class.wrap(text, :length => length, :indent => indent) }
11
+
12
+ it { should == " ラドクリフ、マラ\n ソン五輪代表に1\n 万m出場にも含み" }
13
+
14
+ end # wrap
@@ -0,0 +1,25 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ require 'spec_helper'
4
+
5
+ describe TTY::Text::Wrapping, '#initialize' do
6
+ let(:text) { "There go the ships; there is that Leviathan whom thou hast made to play therein."}
7
+
8
+ let(:args) { [] }
9
+
10
+ subject { described_class.new text, *args }
11
+
12
+ its(:text) { should == text }
13
+
14
+ its(:length) { should == 80 }
15
+
16
+ its(:indent) { should == 0 }
17
+
18
+ context 'custom values' do
19
+ let(:args) { [45, { :indent => 5 }]}
20
+
21
+ its(:length) { should == 45 }
22
+
23
+ its(:indent) { should == 5 }
24
+ end
25
+ end # initialize
@@ -0,0 +1,80 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ require 'spec_helper'
4
+
5
+ describe TTY::Text::Wrapping, '#wrap' do
6
+ let(:instance) { described_class.new }
7
+ let(:indent) { 0 }
8
+ let(:options) { { :length => length, :indent => indent } }
9
+
10
+ subject { described_class.new(text, options).wrap }
11
+
12
+ context 'unicode support' do
13
+ let(:text) { 'ラドクリフ、マラソン五輪代表に1万m出場にも含み' }
14
+
15
+ context 'with zero length' do
16
+ let(:length) { 0 }
17
+
18
+ it { should == text }
19
+ end
20
+
21
+ context 'with nil length' do
22
+ let(:length) { nil }
23
+
24
+ it { should == text }
25
+ end
26
+
27
+ context 'without wrapping' do
28
+ let(:length) { 8 }
29
+
30
+ it { should == "ラドクリフ、マラ\nソン五輪代表に1\n万m出場にも含み" }
31
+ end
32
+
33
+ context 'with wrapping' do
34
+ let(:length) { 100 }
35
+
36
+ it { should == text }
37
+ end
38
+ end
39
+
40
+ context 'ascii long text' do
41
+ let(:length) { 45 }
42
+ let(:text) { "What of it, if some old hunks of a sea-captain orders me to get a broom
43
+ and sweep down the decks? What does that indignity amount to, weighed,
44
+ I mean, in the scales of the New Testament? Do you think the archangel
45
+ Gabriel thinks anything the less of me, because I promptly and
46
+ respectfully obey that old hunks in that particular instance? Who ain't
47
+ a slave? Tell me that. Well, then, however the old sea-captains may
48
+ order me about--however they may thump and punch me about, I have the
49
+ satisfaction of knowing that it is all right;
50
+ " }
51
+
52
+ it { should == <<-EOS.normalize
53
+ What of it, if some old hunks of a\n sea-captain orders me to get a broom
54
+ and sweep down the decks? What does that\n indignity amount to, weighed,
55
+ I mean, in the scales of the New Testament?\n Do you think the archangel
56
+ Gabriel thinks anything the less of me,\n because I promptly and
57
+ respectfully obey that old hunks in that\nparticular instance? Who ain't
58
+ a slave? Tell me that. Well, then, however\n the old sea-captains may
59
+ order me about--however they may thump and\n punch me about, I have the
60
+ satisfaction of knowing that it is all right;\n
61
+ EOS
62
+ }
63
+ end
64
+
65
+ context 'with indent' do
66
+ let(:text) { 'ラドクリフ、マラソン五輪代表に1万m出場にも含み' }
67
+ let(:length) { 8 }
68
+ let(:indent) { 4 }
69
+
70
+ it { should == " ラドクリフ、マラ\n ソン五輪代表に1\n 万m出場にも含み" }
71
+ end
72
+
73
+ context 'with ansi colors' do
74
+ let(:text) { "\[\033[01;32m\]Hey have\[\033[01;34m\]some cake\[\033[00m\]" }
75
+ let(:length) { 6 }
76
+
77
+ it { should == "\[\033[01;32m\]Hey have\[\033[01;34m\]some\ncake\[\033[00m\]" }
78
+ end
79
+
80
+ end # wrap
@@ -20,4 +20,5 @@ Gem::Specification.new do |gem|
20
20
  gem.add_development_dependency 'rspec'
21
21
  gem.add_development_dependency 'rake'
22
22
  gem.add_development_dependency 'yard'
23
+ gem.add_development_dependency 'benchmark_suite'
23
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-23 00:00:00.000000000 Z
12
+ date: 2013-01-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &2160319500 !ruby/object:Gem::Requirement
16
+ requirement: &2152283780 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *2160319500
24
+ version_requirements: *2152283780
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &2160319060 !ruby/object:Gem::Requirement
27
+ requirement: &2152283220 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *2160319060
35
+ version_requirements: *2152283220
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: yard
38
- requirement: &2160318560 !ruby/object:Gem::Requirement
38
+ requirement: &2152282700 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,18 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *2160318560
46
+ version_requirements: *2152282700
47
+ - !ruby/object:Gem::Dependency
48
+ name: benchmark_suite
49
+ requirement: &2152273700 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *2152273700
47
58
  description: Toolbox for developing CLI clients
48
59
  email:
49
60
  - ''
@@ -60,11 +71,21 @@ files:
60
71
  - LICENSE.txt
61
72
  - README.md
62
73
  - Rakefile
74
+ - benchmarks/shell.rb
75
+ - benchmarks/table.rb
63
76
  - lib/tty.rb
77
+ - lib/tty/coercer.rb
78
+ - lib/tty/coercer/boolean.rb
79
+ - lib/tty/coercer/float.rb
80
+ - lib/tty/coercer/integer.rb
81
+ - lib/tty/coercer/range.rb
64
82
  - lib/tty/shell.rb
65
83
  - lib/tty/shell/question.rb
66
84
  - lib/tty/shell/question/modifier.rb
67
85
  - lib/tty/shell/question/validation.rb
86
+ - lib/tty/shell/reader.rb
87
+ - lib/tty/shell/response.rb
88
+ - lib/tty/shell/response_delegation.rb
68
89
  - lib/tty/shell/statement.rb
69
90
  - lib/tty/support/coercion.rb
70
91
  - lib/tty/support/conversion.rb
@@ -84,6 +105,9 @@ files:
84
105
  - lib/tty/table/operation/alignment_set.rb
85
106
  - lib/tty/table/operation/truncation.rb
86
107
  - lib/tty/table/operation/wrapped.rb
108
+ - lib/tty/table/orientation.rb
109
+ - lib/tty/table/orientation/horizontal.rb
110
+ - lib/tty/table/orientation/vertical.rb
87
111
  - lib/tty/table/renderer.rb
88
112
  - lib/tty/table/renderer/ascii.rb
89
113
  - lib/tty/table/renderer/basic.rb
@@ -92,18 +116,44 @@ files:
92
116
  - lib/tty/table/validatable.rb
93
117
  - lib/tty/terminal.rb
94
118
  - lib/tty/terminal/color.rb
119
+ - lib/tty/terminal/echo.rb
120
+ - lib/tty/terminal/home.rb
121
+ - lib/tty/text.rb
122
+ - lib/tty/text/truncation.rb
123
+ - lib/tty/text/wrapping.rb
95
124
  - lib/tty/vector.rb
96
125
  - lib/tty/version.rb
97
126
  - spec/spec_helper.rb
127
+ - spec/tty/coercer/boolean/coerce_spec.rb
128
+ - spec/tty/coercer/float/coerce_spec.rb
129
+ - spec/tty/coercer/integer/coerce_spec.rb
130
+ - spec/tty/coercer/range/coerce_spec.rb
98
131
  - spec/tty/shell/ask_spec.rb
99
132
  - spec/tty/shell/error_spec.rb
100
133
  - spec/tty/shell/print_table_spec.rb
134
+ - spec/tty/shell/question/argument_spec.rb
135
+ - spec/tty/shell/question/character_spec.rb
136
+ - spec/tty/shell/question/default_spec.rb
137
+ - spec/tty/shell/question/in_spec.rb
101
138
  - spec/tty/shell/question/initialize_spec.rb
102
139
  - spec/tty/shell/question/modifier/apply_to_spec.rb
103
140
  - spec/tty/shell/question/modifier/letter_case_spec.rb
104
141
  - spec/tty/shell/question/modifier/whitespace_spec.rb
142
+ - spec/tty/shell/question/modify_spec.rb
143
+ - spec/tty/shell/question/valid_spec.rb
144
+ - spec/tty/shell/question/validate_spec.rb
105
145
  - spec/tty/shell/question/validation/coerce_spec.rb
106
146
  - spec/tty/shell/question/validation/valid_value_spec.rb
147
+ - spec/tty/shell/reader/getc_spec.rb
148
+ - spec/tty/shell/response/read_bool_spec.rb
149
+ - spec/tty/shell/response/read_char_spec.rb
150
+ - spec/tty/shell/response/read_date_spec.rb
151
+ - spec/tty/shell/response/read_email_spec.rb
152
+ - spec/tty/shell/response/read_multiple_spec.rb
153
+ - spec/tty/shell/response/read_number_spec.rb
154
+ - spec/tty/shell/response/read_range_spec.rb
155
+ - spec/tty/shell/response/read_spec.rb
156
+ - spec/tty/shell/response/read_string_spec.rb
107
157
  - spec/tty/shell/say_spec.rb
108
158
  - spec/tty/shell/statement/initialize_spec.rb
109
159
  - spec/tty/shell/warn_spec.rb
@@ -132,6 +182,7 @@ files:
132
182
  - spec/tty/table/operation/truncation/truncate_spec.rb
133
183
  - spec/tty/table/operation/wrapped/wrap_spec.rb
134
184
  - spec/tty/table/options_spec.rb
185
+ - spec/tty/table/orientation_spec.rb
135
186
  - spec/tty/table/properties_spec.rb
136
187
  - spec/tty/table/renderer/basic/alignment_spec.rb
137
188
  - spec/tty/table/renderer/basic/extract_column_widths_spec.rb
@@ -140,14 +191,24 @@ files:
140
191
  - spec/tty/table/renderer/basic_spec.rb
141
192
  - spec/tty/table/renderer/pick_renderer_spec.rb
142
193
  - spec/tty/table/renderer_spec.rb
194
+ - spec/tty/table/renders_with_spec.rb
195
+ - spec/tty/table/rotate_spec.rb
143
196
  - spec/tty/table/to_s_spec.rb
197
+ - spec/tty/table/validatable/validate_options_spec.rb
144
198
  - spec/tty/table/validatable_spec.rb
145
199
  - spec/tty/terminal/color/code_spec.rb
146
200
  - spec/tty/terminal/color/remove_spec.rb
147
201
  - spec/tty/terminal/color/set_spec.rb
148
202
  - spec/tty/terminal/color_spec.rb
203
+ - spec/tty/terminal/echo_spec.rb
149
204
  - spec/tty/terminal/home_spec.rb
150
205
  - spec/tty/terminal/size_spec.rb
206
+ - spec/tty/text/truncate_spec.rb
207
+ - spec/tty/text/truncation/initialize_spec.rb
208
+ - spec/tty/text/truncation/truncate_spec.rb
209
+ - spec/tty/text/wrap_spec.rb
210
+ - spec/tty/text/wrapping/initialize_spec.rb
211
+ - spec/tty/text/wrapping/wrap_spec.rb
151
212
  - spec/tty/vector/new_spec.rb
152
213
  - tasks/metrics/cane.rake
153
214
  - tasks/metrics/flog.rake
@@ -179,15 +240,36 @@ specification_version: 3
179
240
  summary: Toolbox for developing CLI clients
180
241
  test_files:
181
242
  - spec/spec_helper.rb
243
+ - spec/tty/coercer/boolean/coerce_spec.rb
244
+ - spec/tty/coercer/float/coerce_spec.rb
245
+ - spec/tty/coercer/integer/coerce_spec.rb
246
+ - spec/tty/coercer/range/coerce_spec.rb
182
247
  - spec/tty/shell/ask_spec.rb
183
248
  - spec/tty/shell/error_spec.rb
184
249
  - spec/tty/shell/print_table_spec.rb
250
+ - spec/tty/shell/question/argument_spec.rb
251
+ - spec/tty/shell/question/character_spec.rb
252
+ - spec/tty/shell/question/default_spec.rb
253
+ - spec/tty/shell/question/in_spec.rb
185
254
  - spec/tty/shell/question/initialize_spec.rb
186
255
  - spec/tty/shell/question/modifier/apply_to_spec.rb
187
256
  - spec/tty/shell/question/modifier/letter_case_spec.rb
188
257
  - spec/tty/shell/question/modifier/whitespace_spec.rb
258
+ - spec/tty/shell/question/modify_spec.rb
259
+ - spec/tty/shell/question/valid_spec.rb
260
+ - spec/tty/shell/question/validate_spec.rb
189
261
  - spec/tty/shell/question/validation/coerce_spec.rb
190
262
  - spec/tty/shell/question/validation/valid_value_spec.rb
263
+ - spec/tty/shell/reader/getc_spec.rb
264
+ - spec/tty/shell/response/read_bool_spec.rb
265
+ - spec/tty/shell/response/read_char_spec.rb
266
+ - spec/tty/shell/response/read_date_spec.rb
267
+ - spec/tty/shell/response/read_email_spec.rb
268
+ - spec/tty/shell/response/read_multiple_spec.rb
269
+ - spec/tty/shell/response/read_number_spec.rb
270
+ - spec/tty/shell/response/read_range_spec.rb
271
+ - spec/tty/shell/response/read_spec.rb
272
+ - spec/tty/shell/response/read_string_spec.rb
191
273
  - spec/tty/shell/say_spec.rb
192
274
  - spec/tty/shell/statement/initialize_spec.rb
193
275
  - spec/tty/shell/warn_spec.rb
@@ -216,6 +298,7 @@ test_files:
216
298
  - spec/tty/table/operation/truncation/truncate_spec.rb
217
299
  - spec/tty/table/operation/wrapped/wrap_spec.rb
218
300
  - spec/tty/table/options_spec.rb
301
+ - spec/tty/table/orientation_spec.rb
219
302
  - spec/tty/table/properties_spec.rb
220
303
  - spec/tty/table/renderer/basic/alignment_spec.rb
221
304
  - spec/tty/table/renderer/basic/extract_column_widths_spec.rb
@@ -224,13 +307,23 @@ test_files:
224
307
  - spec/tty/table/renderer/basic_spec.rb
225
308
  - spec/tty/table/renderer/pick_renderer_spec.rb
226
309
  - spec/tty/table/renderer_spec.rb
310
+ - spec/tty/table/renders_with_spec.rb
311
+ - spec/tty/table/rotate_spec.rb
227
312
  - spec/tty/table/to_s_spec.rb
313
+ - spec/tty/table/validatable/validate_options_spec.rb
228
314
  - spec/tty/table/validatable_spec.rb
229
315
  - spec/tty/terminal/color/code_spec.rb
230
316
  - spec/tty/terminal/color/remove_spec.rb
231
317
  - spec/tty/terminal/color/set_spec.rb
232
318
  - spec/tty/terminal/color_spec.rb
319
+ - spec/tty/terminal/echo_spec.rb
233
320
  - spec/tty/terminal/home_spec.rb
234
321
  - spec/tty/terminal/size_spec.rb
322
+ - spec/tty/text/truncate_spec.rb
323
+ - spec/tty/text/truncation/initialize_spec.rb
324
+ - spec/tty/text/truncation/truncate_spec.rb
325
+ - spec/tty/text/wrap_spec.rb
326
+ - spec/tty/text/wrapping/initialize_spec.rb
327
+ - spec/tty/text/wrapping/wrap_spec.rb
235
328
  - spec/tty/vector/new_spec.rb
236
329
  has_rdoc: