Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #211 from Paxa/master

Reduce size of built .gem file
  • Loading branch information...
commit 27c45a509c66dcad29d80afb9b46f77a64a975c3 2 parents 0110cd8 + ae78b61
@igrigorik igrigorik authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  goliath.gemspec
View
2  goliath.gemspec
@@ -57,7 +57,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rb-fsevent'
end
- ignores = File.readlines(".gitignore").grep(/\S+/).map {|i| i.chomp }
+ ignores = File.readlines(".gitignore").grep(/\S+/).map {|i| i.chomp }.map {|i| File.directory?(i) ? i.sub(/\/?$/, '/*') : i }
dotfiles = [".gemtest", ".gitignore", ".rspec", ".yardopts"]
s.files = Dir["**/*"].reject {|f| File.directory?(f) || ignores.any? {|i| File.fnmatch(i, f) } } + dotfiles
Please sign in to comment.
Something went wrong with that request. Please try again.