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

ruby-changes:16847

From: usa <ko1@a...>
Date: Tue, 3 Aug 2010 14:23:08 +0900 (JST)
Subject: [ruby-changes:16847] Ruby:r28842 (trunk): * lib/rdoc/ri/driver.rb (setup_pager): no need to check the existence

usa	2010-08-03 14:22:51 +0900 (Tue, 03 Aug 2010)

  New Revision: 28842

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28842

  Log:
    * lib/rdoc/ri/driver.rb (setup_pager): no need to check the existence
      of pagers. the following code checks whether they are executable or
      not.

  Modified files:
    trunk/ChangeLog
    trunk/lib/rdoc/ri/driver.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 28841)
+++ ChangeLog	(revision 28842)
@@ -1,3 +1,9 @@
+Tue Aug  3 14:19:42 2010  NAKAMURA Usaku  <usa@r...>
+
+	* lib/rdoc/ri/driver.rb (setup_pager): no need to check the existence
+	  of pagers. the following code checks whether they are executable or
+	  not.
+
 Tue Aug  3 12:03:57 2010  URABE Shyouhei  <shyouhei@r...>
 
 	* tool/runruby.rb: no purelib.
Index: lib/rdoc/ri/driver.rb
===================================================================
--- lib/rdoc/ri/driver.rb	(revision 28841)
+++ lib/rdoc/ri/driver.rb	(revision 28842)
@@ -1034,7 +1034,7 @@
     pagers = [ENV['RI_PAGER'], ENV['PAGER'], 'pager', 'less', 'more']
 
     pagers.compact.uniq.each do |pager|
-      next unless File.exist? pager
+      next unless pager
 
       io = IO.popen pager, "w" rescue next
 

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

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