Skip to content
Browse files

Skip built packages when building gem

  • Loading branch information...
1 parent 0110cd8 commit ae78b6105924b6adc19e1b40bfc8c96f53e3c0e6 @Paxa Paxa committed
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

0 comments on commit ae78b61

Please sign in to comment.
Something went wrong with that request. Please try again.