summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Arko <mail@arko.net>2014-12-13 12:02:20 -0800
committerAndré Arko <mail@arko.net>2014-12-13 12:02:20 -0800
commit8677640f3375794898d17b47cee1d7276c4c1515 (patch)
tree96dfcc0ebe12ac8adc8ef860f239e94069720a7e
parentedcfb5718c27b85e202bcfa6934580be704ff3ee (diff)
parent78278bdff3184fcbf4a227dbe61ada79d7ea02dc (diff)
downloadbundler-8677640f3375794898d17b47cee1d7276c4c1515.tar.gz
Merge pull request #3305 from doodzik/master
add code of conduct when scaffolding a gem
-rw-r--r--lib/bundler/cli/gem.rb3
-rw-r--r--lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt13
-rw-r--r--spec/commands/newgem_spec.rb1
3 files changed, 16 insertions, 1 deletions
diff --git a/lib/bundler/cli/gem.rb b/lib/bundler/cli/gem.rb
index 102a26b6e8..2b2198792f 100644
--- a/lib/bundler/cli/gem.rb
+++ b/lib/bundler/cli/gem.rb
@@ -46,7 +46,8 @@ module Bundler
"newgem.gemspec.tt" => "#{name}.gemspec",
"consolerc.tt" => ".consolerc",
"Rakefile.tt" => "Rakefile",
- "README.md.tt" => "README.md"
+ "README.md.tt" => "README.md",
+ "CODE_OF_CONDUCT.md.tt" => "CODE_OF_CONDUCT.md"
}
templates.merge!("bin/newgem.tt" => "bin/#{name}") if options[:bin]
diff --git a/lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt b/lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt
new file mode 100644
index 0000000000..c5393d1403
--- /dev/null
+++ b/lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt
@@ -0,0 +1,13 @@
+# Contributor Code of Conduct
+
+As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
+
+We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
+
+Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
+
+Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
+
+Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
+
+This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
diff --git a/spec/commands/newgem_spec.rb b/spec/commands/newgem_spec.rb
index ac757083bb..c5686c9b12 100644
--- a/spec/commands/newgem_spec.rb
+++ b/spec/commands/newgem_spec.rb
@@ -87,6 +87,7 @@ describe "bundle gem" do
expect(bundled_app("test_gem/LICENSE.txt")).to exist
expect(bundled_app("test_gem/Gemfile")).to exist
expect(bundled_app("test_gem/Rakefile")).to exist
+ expect(bundled_app("test_gem/CODE_OF_CONDUCT.md")).to exist
expect(bundled_app("test_gem/lib/test_gem.rb")).to exist
expect(bundled_app("test_gem/lib/test_gem/version.rb")).to exist
expect(bundled_app("test_gem/.gitignore")).to exist