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:
parent
3d4b17c2fb
commit
a9f0b44503
1 changed files with 1 additions and 1 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Reference in a new issue