From ccaa00fda1482b2e07df9b4e18b45d74b1b5f310 Mon Sep 17 00:00:00 2001 From: ianmacd <> Date: Sun, 4 Jan 2004 11:38:09 +0000 Subject: [PATCH] - ri from Ruby 1.9 tree now requires -c to list the classes it knows about --- contrib/ri | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/ri b/contrib/ri index 5615a020..e2272c23 100644 --- a/contrib/ri +++ b/contrib/ri @@ -1,6 +1,6 @@ # ri completion for Ruby documentation by Ian Macdonald # -# $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 | \