- ri from Ruby 1.9 tree now requires -c to list the classes it knows about
This commit is contained in:
parent
fdac441c0b
commit
ccaa00fda1
@ -1,6 +1,6 @@
|
|||||||
# ri completion for Ruby documentation by Ian Macdonald <ian@caliban.org>
|
# 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()
|
ri_get_methods()
|
||||||
{
|
{
|
||||||
@ -62,7 +62,7 @@ _ri()
|
|||||||
|
|
||||||
if [ "$ri_version" = integrated ]; then
|
if [ "$ri_version" = integrated ]; then
|
||||||
# integrated ri from Ruby 1.9
|
# 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' ) )
|
if /, [A-Z]+/ then print; end; end' ) )
|
||||||
elif [ "$ri_version" = "ri 1.8a" ]; then
|
elif [ "$ri_version" = "ri 1.8a" ]; then
|
||||||
classes=( $( ruby -W0 $ri_path | \
|
classes=( $( ruby -W0 $ri_path | \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user