From 2feae0058c5a084862b9f4d9251bd819e16e1b44 Mon Sep 17 00:00:00 2001 From: JuanitoFatas Date: Fri, 1 Jul 2016 17:52:49 +0800 Subject: [PATCH] Don't pack unnecessary files to released gem Rationale: https://github.com/bundler/bundler/pull/3207 39KB => 29KB --- html-pipeline.gemspec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/html-pipeline.gemspec b/html-pipeline.gemspec index d53aab6b..e5ac3404 100644 --- a/html-pipeline.gemspec +++ b/html-pipeline.gemspec @@ -11,8 +11,7 @@ Gem::Specification.new do |gem| gem.summary = %q{Helpers for processing content through a chain of filters} gem.homepage = "https://github.com/jch/html-pipeline" - gem.files = `git ls-files`.split $/ - gem.test_files = gem.files.grep(%r{^test}) + gem.files = `git ls-files -z`.split("\x0").reject { |f| f =~ %r(^(test|gemfiles|script)/) } gem.require_paths = ["lib"] gem.add_dependency "nokogiri", ">= 1.4"