From 2459caf0ad5c98d6e3fc908ea8b214688a9aa588 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Thu, 6 Dec 2018 11:13:12 -0800 Subject: [PATCH] Don't ship omnibus_overrides or readme in the gemfile The omnibus_overrides is used to build the omnibus package and shouldn't be needed in a release artifact. We also don't need a readme buried deep in a ruby gems dir on the filesystem. Signed-off-by: Tim Smith --- chef-dk.gemspec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chef-dk.gemspec b/chef-dk.gemspec index 8f7d21a93..8e045fc2a 100644 --- a/chef-dk.gemspec +++ b/chef-dk.gemspec @@ -31,8 +31,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 2.4" - gem.files = %w{Rakefile LICENSE README.md warning.txt} + - %w{omnibus_overrides.rb} + + gem.files = %w{Rakefile LICENSE warning.txt} + Dir.glob("Gemfile*") + # Includes Gemfile and locks Dir.glob("*.gemspec") + Dir.glob("{lib,spec,acceptance,tasks}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) }