Keep your library as a separate project. In your other projects have a
Rakefile task to copy the lib over prior to distribution. Use Austin's
conditional require suggestion.

Also, if your snippets are general purposed enough one option is to
submit them for inclusion in Nano/Mega, or similar project.

T.