lib/gemsmith/templates/gem.gemspec.tmp in gemsmith-0.3.0 vs lib/gemsmith/templates/gem.gemspec.tmp in gemsmith-0.4.0

- old
+ new

@@ -11,13 +11,21 @@ s.homepage = "<%= config[:author_url] %>" s.summary = "TODO: Write gem summary." s.description = "TODO: Write gem description." s.rdoc_options << "CHANGELOG.rdoc" - <% if config[:bin] %>s.add_dependency "thor"<% end %> - <% if config[:rspec] %>s.add_development_dependency "rspec"<% end %> - <% if config[:bin] %>s.add_development_dependency "aruba"<% end %> - <% if config[:bin] %>s.executables << "<%= config[:gem_name] %>"<% end %> + <%- if config[:bin] -%> + s.add_dependency "thor" + <%- end -%> + <%- if config[:rspec] -%> + s.add_development_dependency "rspec" + <%- end -%> + <%- if config[:bin] -%> + s.add_development_dependency "aruba" + <%- end -%> + <%- if config[:bin] -%> + s.executables << "<%= config[:gem_name] %>" + <%- end -%> s.files = `git ls-files`.split("\n") s.test_files = `git ls-files -- {spec,features}/*`.split("\n") s.executables = `git ls-files -- bin/*`.split("\n").map {|f| File.basename f} s.require_paths = ["lib"]