From 2fc40194d2ddc05a481c0eddc8fe9a1c95e23196 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 3 Aug 2010 05:22:51 +0000 Subject: * 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ lib/rdoc/ri/driver.rb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8ac35bcb58..279334b140 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Aug 3 14:19:42 2010 NAKAMURA Usaku + + * 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 * tool/runruby.rb: no purelib. diff --git a/lib/rdoc/ri/driver.rb b/lib/rdoc/ri/driver.rb index 90fbc7c7a2..7ae73a490e 100644 --- a/lib/rdoc/ri/driver.rb +++ b/lib/rdoc/ri/driver.rb @@ -1034,7 +1034,7 @@ Options may also be set in the 'RI' environment variable. 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 -- cgit v1.2.3