[前][次][番号順一覧][スレッド一覧]

ruby-changes:47739

From: hsbt <ko1@a...>
Date: Tue, 12 Sep 2017 21:51:47 +0900 (JST)
Subject: [ruby-changes:47739] hsbt:r59856 (trunk): Partly reverted r59845.

hsbt	2017-09-12 21:51:43 +0900 (Tue, 12 Sep 2017)

  New Revision: 59856

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59856

  Log:
    Partly reverted r59845.
    
      All of environments on Ruby CI are fails rdoc generation.
      It may be caused by
      https://github.com/ruby/rdoc/commit/8cfa11d6f1cc7e74e45e42fd8d1d76c5a0646a6e

  Modified files:
    trunk/lib/rdoc/stats/normal.rb
Index: lib/rdoc/stats/normal.rb
===================================================================
--- lib/rdoc/stats/normal.rb	(revision 59855)
+++ lib/rdoc/stats/normal.rb	(revision 59856)
@@ -1,5 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/lib/rdoc/stats/normal.rb#L1
 # 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: https://github.com/ruby/ruby/blob/trunk/lib/rdoc/stats/normal.rb#L23
 
     # 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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]