mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
46a93a65df
commit
2fc40194d2
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Tue Aug 3 14:19:42 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* 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@ruby-lang.org>
|
||||
|
||||
* tool/runruby.rb: no purelib.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue