From 2d2c72dee46eb96802ea1c65c3c6aa3d236ae13a Mon Sep 17 00:00:00 2001 From: Matthew Riddle Date: Thu, 30 Jan 2020 12:57:53 +0100 Subject: [PATCH] Update gemspec to exclude unnecessary files The next bundled version of the gem will only include the files necessary to run it. Excluding files like the .rubocopy.yml and .travis.yml It's a nice to have when caching the plugin manually to get around the fact that caching isn't supported for bundler plugins yet. --- bootboot.gemspec | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bootboot.gemspec b/bootboot.gemspec index e4e2c52..06e8c1f 100644 --- a/bootboot.gemspec +++ b/bootboot.gemspec @@ -24,9 +24,8 @@ Gem::Specification.new do |spec| spec.metadata["source_code_uri"] = "https://github.com/shopify/bootboot" spec.metadata["changelog_uri"] = "https://github.com/Shopify/bootboot/blob/master/CHANGELOG.md" - spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do - %x(git ls-files -z).split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } - end + spec.files = %x(git ls-files lib plugins.rb README.md LICENSE.txt).split($RS) + spec.extra_rdoc_files = ['LICENSE.txt', 'README.md'] spec.require_paths = %w(lib) spec.add_development_dependency "rake", "~> 10.0"