summaryrefslogtreecommitdiff
path: root/chef.gemspec
diff options
context:
space:
mode:
authorMartin Vidner <mvidner@suse.cz>2013-01-03 13:47:27 +0100
committerBryan McLellan <btm@opscode.com>2013-05-23 09:42:45 -0700
commit4079a344f2001c1927132e7ed6b63453f459609f (patch)
treed1031ff75e7906c74b525076ebfbea094c4cfec9 /chef.gemspec
parentaacad45d79540c811dc1a7c2ade17f733353689a (diff)
downloadchef-4079a344f2001c1927132e7ed6b63453f459609f.tar.gz
Don't pass directories to Gem::Specification#files.
http://rubygems.rubyforge.org/rubygems-update/Gem/Specification.html#method-i-files "Only add files you can require to this list, not directories, etc. Directories are automatically stripped from this list when building a gem, other non-files cause an error."
Diffstat (limited to 'chef.gemspec')
-rw-r--r--chef.gemspec2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef.gemspec b/chef.gemspec
index b9e847086f..096d817021 100644
--- a/chef.gemspec
+++ b/chef.gemspec
@@ -40,5 +40,5 @@ Gem::Specification.new do |s|
s.executables = %w( chef-client chef-solo knife chef-shell shef chef-apply chef-service-manager )
s.require_path = 'lib'
- s.files = %w(Rakefile LICENSE README.md CONTRIBUTING.md) + Dir.glob("{distro,lib,tasks,spec}/**/*", File::FNM_DOTMATCH)
+ s.files = %w(Rakefile LICENSE README.md CONTRIBUTING.md) + Dir.glob("{distro,lib,tasks,spec}/**/*", File::FNM_DOTMATCH).reject {|f| File.directory?(f) }
end