summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThe Bundler Bot <bot@bundler.io>2017-04-23 23:34:50 +0000
committerThe Bundler Bot <bot@bundler.io>2017-04-23 23:34:50 +0000
commit29a0e80c9f9fa745c0adaf4de6366b4f582e8a51 (patch)
tree9f1b36f0ddd3778545a35b83de6c994c04508a56
parent7603b06bb1d36d0ffb70e88ea86febb5d49602e3 (diff)
parent7f98f98e8e0e61704218a7bc9eb19d248437eb70 (diff)
downloadbundler-29a0e80c9f9fa745c0adaf4de6366b4f582e8a51.tar.gz
Auto merge of #5605 - koic:tweak_template_of_newgem, r=colby-swandale
Tweak a template of newgem if value of `config[:coc]` is not `true` when executing `bundle gem <gemname>`, redundant blank lines are created in README.md. This patch will not create these redundant blank lines. ```diff ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/foo. - ## License The gem is available as open source under the terms of the [MIT License] (http://opensource.org/licenses/MIT). - ``` Related PR: #5523
-rw-r--r--lib/bundler/templates/newgem/README.md.tt2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/templates/newgem/README.md.tt b/lib/bundler/templates/newgem/README.md.tt
index 6eb270a124..edbe55dabe 100644
--- a/lib/bundler/templates/newgem/README.md.tt
+++ b/lib/bundler/templates/newgem/README.md.tt
@@ -39,8 +39,8 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/<%= co
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
<% end -%>
-
<% if config[:coc] -%>
+
## Code of Conduct
Everyone interacting in the <%= config[:constant_name] %> project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/<%= config[:github_username] %>/<%= config[:name] %>/blob/master/CODE_OF_CONDUCT.md).