Include source and documdnts files only in the gem file. #1391
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Version 3.9.1 gem
About latest stable version 3.9.1 gem,
test
,example
directories was not included in the gem file.Latest master branch
But about latest master branch, seeing
puma.gemspec
, all the file is included in gem files includingtest
andexample
directory.I think maybe we do not want to ship development files such as
Gemfile
,.github
directory, and etc.After modification
So, I modified gemspec file to only include source and document files in the gem file.
The result is like this.
Rails, RSpec are using this pattern as a reference.
https://github.com/rails/rails/blob/master/activesupport/activesupport.gemspec#L20
https://github.com/rspec/rspec-core/blob/master/rspec-core.gemspec#L16-L17
How do you think?
My concern is
hoe
inRakefile
.Actually are you using
hoe
to generate gemspec file or release? If not, I think it might be better to remove the logic inRakefile
.https://github.com/puma/puma/blob/master/Rakefile#L15