applicationsonline/librarian — Issue #41: disentangle source-control from packaging
Author: hedgehog
Created: 2012-02-16 05:08:18+00:00
State: open

Remove `git ls-files` from the gemspec.

I think this is one of those religious issues....

I get the value added of 'only release commited files'. But to me having git commands in your gemspec is a "code-smell" (these kids come up with crazy phrases). Essentially I'd argue you should be releasing a pure master or release branch, and that branch should have what is released, no-more-no-less. If you have files, etc that shouldn't be released these should be in the excludefiles for the development branch. Git's branching, squash commits, rebase etc means you can keep release/master neat while all the stuff that shouldn't be released is in the development branch.

See here for some details (no doubt google will throw up more):
http://cogniton-mind.tumblr.com/post/1423976659/howto-gitignore-for-different-branches