ddfreyne/nanoc — pull request #68 by ilkerde (2011-10-22 19:05:38+00:00)
Title: Exclude code snippets in lib folder via configuration 

This patch introduces a new configuration parameter called `exclude_code_snippets`, taking a list of strings which will be served to filter out (say: exclude) code snippets from `lib` folder.

Nanoc automatically loads so called 'code snippets' (plain rb files) from `lib` folder prior execution. Nanoc as well provides a `Rakefile` for handy tasks. In my case, I extended rakefile to a number of tasks for which I needed some gems (and private libs) as well. Naturally, I put them into `lib` folder.

In this scenario, I obviously don't want all the 3rd party gems (and my personal libs) not to be auto-loaded by Nanoc. In order to both run Nanoc and my rake tasks flawlessly side by side, I introduced this patch.

The patch has been taken from a 3.1.8 running Nanoc and weaved in to master. I tested it with 3.1.8 only. Hope it might be useful.