1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Exclude docs from gem package

Now that the entire Capistrano docs website is contained in the docs
directory, by default all those files will be included in the .gem file
that is created by `rake build`.

This means that the capistrano gem has increased in size from 68 KB to
802 KB. More than 10x!

This commit updates the gemspec to include the docs directory when
building the gem, to avoid this bloat.
This commit is contained in:
Matt Brictson 2016-10-02 20:10:34 -07:00
parent 3d4b17c2fb
commit a9f0b44503
No known key found for this signature in database
GPG key ID: 2F279EAD1F2ACFAF

View file

@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
gem.summary = "Capistrano - Welcome to easy deployment with Ruby over SSH"
gem.homepage = "http://capistranorb.com/"
gem.files = `git ls-files -z`.split("\x0")
gem.files = `git ls-files -z`.split("\x0").reject { |f| f =~ /^docs/ }
gem.executables = %w(cap capify)
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]