summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Esaulov <billikota@gmail.com>2018-03-15 23:57:47 +0300
committerNikita Esaulov <billikota@gmail.com>2018-03-15 23:57:47 +0300
commit9a560bc09d5d061615051796aada29e7af23113a (patch)
treef38fd38aa9c52c833f321deac48271f5187e70ec
parent331ade5e654b4cb5cfcafff159593d2bb63d5b1b (diff)
downloadbundler-9a560bc09d5d061615051796aada29e7af23113a.tar.gz
Add a comment describing spec.files method in the .gemspec template
-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 97da2b14d8..4e21a2d7a6 100644
--- a/lib/bundler/templates/newgem/newgem.gemspec.tt
+++ b/lib/bundler/templates/newgem/newgem.gemspec.tt
@@ -28,6 +28,7 @@ Gem::Specification.new do |spec|
"public gem pushes."
end
+ # Specify which files should be added to the gem when it is released.
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
end