- ri from Ruby 1.9 tree now requires -c to list the classes it knows about

This commit is contained in:
ianmacd 2004-01-04 11:38:09 +00:00
parent fdac441c0b
commit ccaa00fda1

View File

@ -1,6 +1,6 @@
# ri completion for Ruby documentation by Ian Macdonald <ian@caliban.org>
#
# $Id: ri,v 1.6 2003/12/31 08:47:38 ianmacd Exp $
# $Id: ri,v 1.7 2004/01/04 12:38:09 ianmacd Exp $
#
ri_get_methods()
{
@ -62,7 +62,7 @@ _ri()
if [ "$ri_version" = integrated ]; then
# integrated ri from Ruby 1.9
classes=( $( ri | ruby -ne 'if /I know about:/../For help/ then \
classes=( $( ri -c | ruby -ne 'if /^\s*$/..$stdin.eof then \
if /, [A-Z]+/ then print; end; end' ) )
elif [ "$ri_version" = "ri 1.8a" ]; then
classes=( $( ruby -W0 $ri_path | \