mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Merge rdoc-6.0.0.beta2 from upstream.
* This version changed lexer used Ripper from lexer based IRB.
see details: https://github.com/ruby/rdoc/pull/512
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
65b11a04f1
commit
214a7f8d49
23 changed files with 1472 additions and 3227 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require 'io/console/size'
|
||||
require 'io/console'
|
||||
|
||||
##
|
||||
# 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_size[1].to_i.nonzero? || 80
|
||||
terminal_width = IO.console.winsize[1].to_i.nonzero? || 80
|
||||
max_filename_size = terminal_width - progress_bar.size
|
||||
|
||||
if filename.size > max_filename_size then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue