Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1638 from knu/fix_brace_expansion
Browse files Browse the repository at this point in the history
Reduce invocation of `git ls-files` and remove ksh/bash-ism.
  • Loading branch information
sferik committed Jan 28, 2012
2 parents 3d4163a + 2f84b91 commit 54b6240
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bundler/templates/newgem/newgem.gemspec.tt
Original file line number Diff line number Diff line change
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 54b6240

Please sign in to comment.