diff options
author | Tim Smith <tsmith@chef.io> | 2018-12-11 20:06:50 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-12-11 20:08:24 -0800 |
commit | b9ddc08983c38501d58bd45f0b7744cf0656c371 (patch) | |
tree | 74c294419906a4a949ec9d1a09d546965ce09dd8 | |
parent | 164089860af39c61a0871e996fd4898a751c211a (diff) | |
download | mixlib-cli-b9ddc08983c38501d58bd45f0b7744cf0656c371.tar.gz |
Don't ship the test files in the gem artifactslim
Skip the Gemfile, Rakefile, Gemspec, and spec files as they aren't
needed by the installed artifact.
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | mixlib-cli.gemspec | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mixlib-cli.gemspec b/mixlib-cli.gemspec index da25754..6afe7c6 100644 --- a/mixlib-cli.gemspec +++ b/mixlib-cli.gemspec @@ -4,15 +4,13 @@ require "mixlib/cli/version" Gem::Specification.new do |s| s.name = "mixlib-cli" s.version = Mixlib::CLI::VERSION - s.extra_rdoc_files = ["README.md", "LICENSE", "NOTICE"] s.summary = "A simple mixin for CLI interfaces, including option parsing" s.description = s.summary s.author = "Chef Software, Inc." s.email = "info@chef.io" - s.homepage = "https://www.chef.io" + s.homepage = "https://www.github.com/mixlib-cli" s.license = "Apache-2.0" s.require_path = "lib" - s.files = %w{LICENSE README.md Gemfile Rakefile NOTICE} + Dir.glob("*.gemspec") + - Dir.glob("{lib,spec}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) } + s.files = %w{LICENSE NOTICE} + Dir.glob("lib/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) } end |