Ruby-1.8.1p4 and ri

Hello,

maybe this is only a freebsd question:

i had a little frustration with ri18 as found in the newest tarball as
there are problems in some files when i try to rebuild the “ri” database
(yaml/stringio.rb i.e.) using rdoc. “rdoc” is a little unforgiving and
does not produce anything if it finds something it regards as error. I
had to convince rdoc with xargs.

I have to install the port ruby-ri apart from it to get usefull ri
documentation. The port produces a usefull script called ri …

Any pointer to the recommended way of rebuilding ri documentation from
source is appreciated.

···


Fritz Heinrichmeyer FernUniversitaet, LG ES, 58084 Hagen (Germany)
tel:+49 2331/987-1166 fax:987-355

Hello,

maybe this is only a freebsd question:

Nope. Win2k as well.

i had a little frustration with ri18 as found in the newest tarball as
there are problems in some files when i try to rebuild the “ri” database
(yaml/stringio.rb i.e.) using rdoc. “rdoc” is a little unforgiving and
does not produce anything if it finds something it regards as error. I
had to convince rdoc with xargs.

I saw the same problem on Win2k. The error was because the stringio file
was referring to the YAML module, but it did not declare itself as part
of the YAML module, nor did it reference it. I got rdoc to run properly
by buttressing everything in the stringio file with

module YAML

end

Whether that’s correct or not I don’t know.

···

On 12/23/2003 9:26 AM, Fritz Heinrichmeyer wrote:


Never trust a girl with your mother’s cow,
never let your trousers go falling down in the green grass…

I’m working slowly through stuff to get this resolved. In this
particular case, the source file is question is a tad messy, and it’s a
StringIO replacement that ends up modifying the a method back in the
YAML module. Because the YAML module isn’y defined at this point, RDoc
didn’t know what to do.

For now, I’ve changed RDoc to assume that any unknown constant that
prefixes a method name is a module: we’ll see how that works out in
practice. Longer term, I think I’ll refactor the yaml code to use a
factory and get rid of this issue at the source level.

I’ll check this change in later today.

Cheers

Dave

···

On Dec 23, 2003, at 8:26, Fritz Heinrichmeyer wrote:

Any pointer to the recommended way of rebuilding ri documentation from
source is appreciated.