do not include .gitignore, .placeholder files and coquelicot.git symlink in gem
authorLunar <lunar@anargeek.net>
Wed, 13 Mar 2013 14:57:52 +0000 (15:57 +0100)
committerLunar <lunar@anargeek.net>
Thu, 14 Mar 2013 10:44:12 +0000 (11:44 +0100)
coquelicot.gemspec

index b17d4e5..13d4864 100644 (file)
@@ -37,7 +37,8 @@ Gem::Specification.new do |s|
     not so active attackers.
   DESCRIPTION
 
-  s.files         = `git ls-files`.split("\n")
+  s.files         = `git ls-files`.split("\n").
+      select { |p| !['.gitignore', '.placeholder', 'coquelicot.git'].include?(File.basename(p)) }
   s.test_files    = `git ls-files -- {test,spec,features}/*`.split("\n")
   s.executables   = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
   s.require_paths = ['lib']