Skip to content
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

Only ship the minimally required files #122

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ekohl
Copy link

@ekohl ekohl commented Aug 9, 2024

This avoids shipping files like .github and .travis.yml.

@ekohl ekohl requested review from a team as code owners August 9, 2024 20:05
This avoids shipping files like .github and .travis.yml.
@ekohl ekohl changed the title Only ship the minimally required files & stop activating Bundler Only ship the minimally required files Aug 9, 2024
spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(test|spec|features)/})
spec.files = `git ls-files -z`.split("\x0").select do |f|
f.start_with?('LICENSE', 'README.md', 'lib/')
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the exe directory is missing here 🤔.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used gem build and they show up. There was no need to list it twice (other is via executables)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants