Created
November 20, 2014 08:18
-
-
Save l8nite/18e1aa073d4c758bf440 to your computer and use it in GitHub Desktop.
Quick and dirty way to exclude files from a gemspec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git_tracked_files = `git ls-files -z`.split("\x0") | |
gem_ignored_files = `git ls-files -i -X .gemignore -z`.split("\x0") | |
spec.files = git_tracked_files - gem_ignored_files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment