summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Esaulov <billikota@gmail.com>2018-03-16 01:10:38 +0300
committerNikita Esaulov <billikota@gmail.com>2018-03-16 01:10:38 +0300
commite76cd7f41c782f02d7bab7cfaf785e58bfb98690 (patch)
treeea22a3181c47c33c27c3083c285627e56bc341d7
parent594597295bc5b9cc21302acbf4c56b12405d0a50 (diff)
downloadbundler-e76cd7f41c782f02d7bab7cfaf785e58bfb98690.tar.gz
Add a comment about default spec.files setup
-rw-r--r--lib/bundler/templates/newgem/newgem.gemspec.tt1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/templates/newgem/newgem.gemspec.tt b/lib/bundler/templates/newgem/newgem.gemspec.tt
index 4e21a2d7a6..e706e90f66 100644
--- a/lib/bundler/templates/newgem/newgem.gemspec.tt
+++ b/lib/bundler/templates/newgem/newgem.gemspec.tt
@@ -29,6 +29,7 @@ Gem::Specification.new do |spec|
end
# Specify which files should be added to the gem when it is released.
+ # The `git ls-files -z` default will base this on all the files checked in to git.
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
end