From 8dd54b9ec36c01742fc1509dc04dd58536c06cd2 Mon Sep 17 00:00:00 2001 From: Garen Torikian Date: Thu, 31 Jul 2014 16:00:11 -0700 Subject: [PATCH 1/2] Only include lib files in the gem Resolves https://github.com/jekyll/jekyll/issues/2670 --- jekyll.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jekyll.gemspec b/jekyll.gemspec index 4a43cf1d..74a1629f 100644 --- a/jekyll.gemspec +++ b/jekyll.gemspec @@ -20,7 +20,7 @@ Gem::Specification.new do |s| s.email = 'tom@mojombo.com' s.homepage = 'https://github.com/jekyll/jekyll' - s.files = `git ls-files`.split($/) + s.files = Dir["lib/**/*.rb"] s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) } s.test_files = s.files.grep(%r{^(test|spec|features)/}) s.require_paths = ["lib"] From 470d3a2a23f5419048f0305ca73441c6a430b349 Mon Sep 17 00:00:00 2001 From: Garen Torikian Date: Thu, 31 Jul 2014 16:04:55 -0700 Subject: [PATCH 2/2] Update to a better, more gitty way --- jekyll.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jekyll.gemspec b/jekyll.gemspec index 74a1629f..7396ec6d 100644 --- a/jekyll.gemspec +++ b/jekyll.gemspec @@ -20,7 +20,7 @@ Gem::Specification.new do |s| s.email = 'tom@mojombo.com' s.homepage = 'https://github.com/jekyll/jekyll' - s.files = Dir["lib/**/*.rb"] + s.files = `git ls-files -z`.split("\x0").select{|p|p.start_with?("lib/")} s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) } s.test_files = s.files.grep(%r{^(test|spec|features)/}) s.require_paths = ["lib"]