On Apr 17, 2008, at 8:50 AM, Bryan Richardson wrote:
> Hello all,
>
> I'm using Rake to build a gem for my Ruby application and I was  
> wondering if
> there's a way to exclude certain files and/or directories from rdoc
> generation.
>

Take a look at Mr Bones. It provides a skeleton for Ruby projects, and  
it is not viral -- you won't have to include Mr Bones as a dependency  
to use your gem. The project skeleton has a collection of rake tasks  
for managing your project including building a gem. You can explicitly  
include or exclude files for rdoc generation ...

PROJ.rdoc.exclude = %w[^some/dir/ \.tmp$]
PROJ.rdoc.include = %w[\.txt$]

the syntax here is just an array of regexp snippets specifying the  
file types you want to ignore or include.

http://bones.rubyforge.org/

If you just want the rake tasks and Rakefile, create a throw away  
project using the "bones" command line. Copy the "tasks" folder and  
the Rakefile to your project.

Blessings,
TwP