bake/modernize/contributing.rb in bake-modernize-0.16.2 vs bake/modernize/contributing.rb in bake-modernize-0.17.0

- old
+ new

@@ -5,19 +5,17 @@ require 'bake/modernize' require 'markly' def contributing - update(root: Dir.pwd) + if conduct_path = Dir["conduct.md"] + FileUtils.rm_f(conduct_path) + end + update_contributing(File.join(Dir.pwd, 'readme.md')) end -def update(root:) - template_root = Bake::Modernize.template_path_for('contributing') - Bake::Modernize.copy_template(template_root, root) -end - private DEFAULT_CONTRIBUTING = <<~EOF ## Contributing @@ -26,9 +24,17 @@ 1. Fork it. 2. Create your feature branch (`git checkout -b my-new-feature`). 3. Commit your changes (`git commit -am 'Add some feature'`). 4. Push to the branch (`git push origin my-new-feature`). 5. Create new Pull Request. + +### Developer Certificate of Origin + +This project uses the [Developer Certificate of Origin](https://developercertificate.org/). All contributors to this project must agree to this document to have their contributions accepted. + +### Contributor Covenant + +This project is governed by [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms. EOF def update_contributing(readme_path) root = Markly.parse(File.read(readme_path))