lib/bundler/templates/newgem/newgem.gemspec.tt in bundler-1.1.0 vs lib/bundler/templates/newgem/newgem.gemspec.tt in bundler-1.1.1

- old
+ new

@@ -6,12 +6,12 @@ gem.email = [<%=config[:email].inspect%>] gem.description = %q{TODO: Write a gem description} 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.files = `git ls-files`.split($\) + 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 end