-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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.
Here's an example from the Rakefile I use for one of my projects:
~ g.files = FileList['lib/**/*.rb', '[A-Z]*',
'test/**/*'].exclude('smtp_tls.rb').to_a
#exclude from Rake's FileList makes sure that 'smtp_tls.rb' isn't used.
AFAIK, #exclude can use an Array, too, if you want to exclude multiple
files (I don't know about globs, though).
- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan
~ "To make a bad day worse, spend it wishing for the impossible." -Calvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iEYEARECAAYFAkgHa7YACgkQbtAgaoJTgL+C0ACgojLcMzhwfepSsB+aCRVfMNc5
I6IAn06WndJ0WekjY1VbddfOJwIlNdB1
=P1mS
-----END PGP SIGNATURE-----