Skip to content

Commit

Permalink
Update gemspec to exclude unnecessary files
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mriddle committed Jan 30, 2020
1 parent fb502ad commit a03f93b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bootboot.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a03f93b

Please sign in to comment.