Skip to content

Commit

Permalink
Reduce invocation of git ls-files.
Browse files Browse the repository at this point in the history
This also removes shell brace expasion which is a ksh/bash extension
that does not work with POSIX sh.
  • Loading branch information
knu committed Jan 20, 2012
1 parent 663cc6d commit 2f84b91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bundler/templates/newgem/newgem.gemspec.tt
Expand Up @@ -8,9 +8,9 @@ Gem::Specification.new do |gem|
gem.summary = %q{TODO: Write a gem summary}
gem.homepage = ""

gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
gem.files = `git ls-files`.split("\n")
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.name = <%=config[:name].inspect%>
gem.require_paths = ["lib"]
gem.version = <%=config[:constant_name]%>::VERSION
Expand Down

0 comments on commit 2f84b91

Please sign in to comment.