diff options
author | Martin Vidner <mvidner@suse.cz> | 2013-01-03 13:47:27 +0100 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-05-23 09:38:37 -0700 |
commit | 4acdfb05e0ba41ac9caa116e2c26059b59133873 (patch) | |
tree | c277a6fc0b20347f4c8d2e1dc52bc224e3439ba7 | |
parent | 2617304bf65e98614634058821953d7eb47bbf24 (diff) | |
download | chef-4acdfb05e0ba41ac9caa116e2c26059b59133873.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."
-rw-r--r-- | chef/chef.gemspec | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chef/chef.gemspec b/chef/chef.gemspec index cd0227e02c..5684a3586e 100644 --- a/chef/chef.gemspec +++ b/chef/chef.gemspec @@ -40,5 +40,5 @@ Gem::Specification.new do |s| s.bindir = "bin" s.executables = %w( chef-client chef-solo knife shef ) s.require_path = 'lib' - s.files = %w(Rakefile LICENSE README.rdoc) + Dir.glob("{distro,lib,tasks,spec}/**/*", File::FNM_DOTMATCH) + s.files = %w(Rakefile LICENSE README.rdoc) + Dir.glob("{distro,lib,tasks,spec}/**/*", File::FNM_DOTMATCH).reject {|f| File.directory?(f) } end |