Skip to content

Commit 7925b72

Browse files
committed
Don't pack unnecessary files to released gem
Rationale: rubygems/bundler#3207 39KB => 29KB
1 parent 788a2da commit 7925b72

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

html-pipeline.gemspec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ Gem::Specification.new do |gem|
1111
gem.summary = %q{Helpers for processing content through a chain of filters}
1212
gem.homepage = "https://github.com/jch/html-pipeline"
1313

14-
gem.files = `git ls-files`.split $/
15-
gem.test_files = gem.files.grep(%r{^test})
14+
gem.files = `git ls-files -z`.split("\x0").reject { |f| f =~ %r(^(test|gemfiles|script)/) }
1615
gem.require_paths = ["lib"]
1716

1817
gem.add_dependency "nokogiri", ">= 1.4"

0 commit comments

Comments
 (0)