-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gemspec: Use Ruby to pick the files to keep #297
Conversation
This also excludes the gemspec from the files to ship.
Codecov Report
@@ Coverage Diff @@
## master #297 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 50 50
Lines 1868 1868
=========================================
Hits 1868 1868 Continue to review full report at Codecov.
|
I prefer the code in this PR, but it will pull in also temporary files or excluded files that happen to be in the lib dir at the moment of the build. The git command would avoid that. |
I see your point. One way to get there would be a fully explicit file list, or to work with Rake clean/clobber to point out any "known temporary artifacts", and let a rake build task depend on such a cleanup. Or, one can use the super-explicit rake-manifest gem, which keeps a manifest file and generates this kind of content. Alright, now I've typed the alternative ways that I know of. Ah, yes, one more thing. A reason to do it: There's a rubocop-packaging plugin, with rules about how to make the life of a Debian package maintainer easier - they do repackaging of gems, and any shelling out of Ruby makes their work harder. The plugin has documentation which tries to explain their perspective. Close or keep this PR, it's your repository. Looks cool! |
Thank you for all the suggestions and the motivation of getting this done. I like the If you have time to do it, I would be very happy to merge your PR! |
52470bb
to
021ecb3
Compare
Implemented! Thank you for the suggestions. |
@ddnexus Best-possible outcome! |
This also excludes the gemspec from the files to ship.