Skip to content

Commit

Permalink
Merge pull request postrank-labs#44 from seancribbs/remove-git-from-g…
Browse files Browse the repository at this point in the history
…emspec.

Remove calls to git ls-files from the gemspec.
  • Loading branch information
dj2 committed May 4, 2011
2 parents 2bfde06 + 938f6aa commit 3b411af
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions goliath.gemspec
Expand Up @@ -39,7 +39,10 @@ Gem::Specification.new do |s|
s.add_development_dependency 'yard'
s.add_development_dependency 'bluecloth'

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- spec/*`.split("\n")
ignores = File.readlines(".gitignore").grep(/\S+/).map {|s| s.chomp }
dotfiles = [".gemtest", ".gitignore", ".rspec", ".yardopts"]

s.files = Dir["**/*"].reject {|f| File.directory?(f) || ignores.any? {|i| File.fnmatch(i, f) } } + dotfiles
s.test_files = s.files.grep(/^spec\//)
s.require_paths = ['lib']
end

0 comments on commit 3b411af

Please sign in to comment.