зеркало из https://github.com/github/ruby.git
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:
Родитель
2698d34dbd
Коммит
672848de47
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче