File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
12
12
13
13
### Changed
14
14
- Update .gitattributes so we have consistent line endings
15
+ - Test runner detects console width if possible, allowing variable width from 80-132 chars
15
16
16
17
### Deprecated
17
18
Original file line number Diff line number Diff line change 3
3
require 'set'
4
4
require 'pathname'
5
5
require 'optparse'
6
+ require 'io/console'
6
7
7
- WIDTH = 80
8
+ # be flexible between 80 and 132 cols of output
9
+ WIDTH = begin
10
+ [ 132 , [ 80 , IO ::console . winsize [ 1 ] - 2 ] . max ] . min
11
+ rescue NoMethodError
12
+ 80
13
+ end
8
14
VAR_CUSTOM_INIT_SCRIPT = "CUSTOM_INIT_SCRIPT" . freeze
9
15
VAR_USE_SUBDIR = "USE_SUBDIR" . freeze
10
16
VAR_EXPECT_EXAMPLES = "EXPECT_EXAMPLES" . freeze
You can’t perform that action at this time.
0 commit comments