mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Partly reverted r59845.
All of environments on Ruby CI are fails rdoc generation.
It may be caused by
8cfa11d6f1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2698d34dbd
commit
672848de47
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require 'io/console'
|
||||
require 'io/console/size'
|
||||
|
||||
##
|
||||
# Stats printer that prints just the files being documented with a progress
|
||||
|
@ -23,7 +23,7 @@ class RDoc::Stats::Normal < RDoc::Stats::Quiet
|
|||
|
||||
# Print a progress bar, but make sure it fits on a single line. Filename
|
||||
# will be truncated if necessary.
|
||||
terminal_width = IO.console.winsize[1].to_i.nonzero? || 80
|
||||
terminal_width = IO.console_size[1].to_i.nonzero? || 80
|
||||
max_filename_size = terminal_width - progress_bar.size
|
||||
|
||||
if filename.size > max_filename_size then
|
||||
|
|
Loading…
Reference in a new issue