diff options
author | The Bundler Bot <bot@bundler.io> | 2017-04-23 23:34:50 +0000 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-04-30 18:34:43 -0500 |
commit | 1f90a25022bb68d8217618e82343e9316fa19265 (patch) | |
tree | e6037165751e1210a34b05efe0e8cf1c87c6ed63 | |
parent | 3f255de1f44e6e8a290df3019bbc69b4a720a069 (diff) | |
download | bundler-1f90a25022bb68d8217618e82343e9316fa19265.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
(cherry picked from commit 29a0e80c9f9fa745c0adaf4de6366b4f582e8a51)
-rw-r--r-- | lib/bundler/templates/newgem/README.md.tt | 2 |
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). |