coconductor 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.github/CODEOWNERS +3 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +28 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +21 -0
- data/.github/config.yml +23 -0
- data/.github/no-response.yml +15 -0
- data/.github/release-drafter.yml +4 -0
- data/.github/settings.yml +33 -0
- data/.github/stale.yml +29 -0
- data/.gitignore +12 -0
- data/.rspec +1 -0
- data/.rubocop.yml +32 -0
- data/.travis.yml +8 -0
- data/Gemfile +5 -0
- data/LICENSE.txt +21 -0
- data/README.md +76 -0
- data/Rakefile +6 -0
- data/bin/coconductor +32 -0
- data/coconductor.gemspec +34 -0
- data/docs/CODE_OF_CONDUCT.md +73 -0
- data/docs/CONTRIBUTING.md +85 -0
- data/lib/coconductor.rb +33 -0
- data/lib/coconductor/code_of_conduct.rb +155 -0
- data/lib/coconductor/commands/detect.rb +63 -0
- data/lib/coconductor/commands/diff.rb +75 -0
- data/lib/coconductor/commands/version.rb +6 -0
- data/lib/coconductor/matchers.rb +8 -0
- data/lib/coconductor/matchers/dice.rb +10 -0
- data/lib/coconductor/matchers/exact.rb +7 -0
- data/lib/coconductor/matchers/field_aware.rb +34 -0
- data/lib/coconductor/matchers/matcher.rb +9 -0
- data/lib/coconductor/project_files.rb +6 -0
- data/lib/coconductor/project_files/code_of_conduct_file.rb +22 -0
- data/lib/coconductor/project_files/project_file.rb +13 -0
- data/lib/coconductor/projects.rb +8 -0
- data/lib/coconductor/projects/fs_project.rb +24 -0
- data/lib/coconductor/projects/git_project.rb +30 -0
- data/lib/coconductor/projects/github_project.rb +8 -0
- data/lib/coconductor/projects/project.rb +33 -0
- data/lib/coconductor/version.rb +3 -0
- data/script/bootstrap +6 -0
- data/script/cibuild +9 -0
- data/script/console +6 -0
- data/script/vendor-codes-of-conduct +39 -0
- data/vendor/citizen-code-of-conduct/version/2/0/citizen_code_of_conduct.md +127 -0
- data/vendor/citizen-code-of-conduct/version/2/1/citizen_code_of_conduct.md +90 -0
- data/vendor/citizen-code-of-conduct/version/2/2/citizen_code_of_conduct.md +92 -0
- data/vendor/citizen-code-of-conduct/version/2/3/citizen_code_of_conduct.md +98 -0
- data/vendor/contributor-covenant/version/1/0/0/code-of-conduct.md +18 -0
- data/vendor/contributor-covenant/version/1/1/0/code-of-conduct.md +20 -0
- data/vendor/contributor-covenant/version/1/2/0/code-of-conduct.md +27 -0
- data/vendor/contributor-covenant/version/1/3/0/code-of-conduct.de.md +29 -0
- data/vendor/contributor-covenant/version/1/3/0/code-of-conduct.es.md +28 -0
- data/vendor/contributor-covenant/version/1/3/0/code-of-conduct.fr.md +56 -0
- data/vendor/contributor-covenant/version/1/3/0/code-of-conduct.hu.md +29 -0
- data/vendor/contributor-covenant/version/1/3/0/code-of-conduct.it.md +29 -0
- data/vendor/contributor-covenant/version/1/3/0/code-of-conduct.ja.md +48 -0
- data/vendor/contributor-covenant/version/1/3/0/code-of-conduct.md +53 -0
- data/vendor/contributor-covenant/version/1/3/0/code-of-conduct.pl.md +29 -0
- data/vendor/contributor-covenant/version/1/3/0/code-of-conduct.pt-br.md +54 -0
- data/vendor/contributor-covenant/version/1/3/0/code-of-conduct.pt.md +54 -0
- data/vendor/contributor-covenant/version/1/3/0/code-of-conduct.ru.md +54 -0
- data/vendor/contributor-covenant/version/1/3/0/code-of-conduct.sl.md +52 -0
- data/vendor/contributor-covenant/version/1/4/.index-template.html +19 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.bn.md +74 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.bs.md +50 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.de.md +48 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.el.md +79 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.es.md +50 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.fa-ir.md +65 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.fr.md +82 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.hi.md +50 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.id.md +67 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.is.md +78 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.iw.md +65 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.ja.md +75 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.kn.md +52 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.ko.md +67 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.md +78 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.mk.md +51 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.nl.md +77 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.pl.md +82 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.pt-br.md +76 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.pt.md +81 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.ro.md +75 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.ru.md +48 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.sl.md +77 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.sv.md +79 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.tr.md +73 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.uk.md +77 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.zh-cn.md +57 -0
- data/vendor/contributor-covenant/version/1/4/code-of-conduct.zh-tw.md +57 -0
- metadata +239 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module Coconductor
|
|
2
|
+
module Matchers
|
|
3
|
+
class FieldAware < Licensee::Matchers::Exact
|
|
4
|
+
include Coconductor::Matchers::Matcher
|
|
5
|
+
|
|
6
|
+
def match
|
|
7
|
+
return @match if defined? @match
|
|
8
|
+
potential_matches.find do |code_of_conduct|
|
|
9
|
+
file.content_normalized =~ regex_for(code_of_conduct)
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def confidence
|
|
14
|
+
100
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
private
|
|
18
|
+
|
|
19
|
+
FIELD_PLACEHOLDER = 'COCONDUCTOR_FIELD_COCONDUCTOR'.freeze
|
|
20
|
+
FIELD_PLACEHOLDER_REGEX = /coconductor\\ field\\ coconductor/
|
|
21
|
+
|
|
22
|
+
def regex_for(code_of_conduct)
|
|
23
|
+
coc = code_of_conduct.dup
|
|
24
|
+
coc.instance_variable_set '@content_normalized', nil
|
|
25
|
+
coc.instance_variable_set '@content_without_title_and_version', nil
|
|
26
|
+
field_regex = /\[?#{Regexp.union(coc.fields)}\]?/
|
|
27
|
+
coc.content = coc.content.gsub(field_regex, FIELD_PLACEHOLDER)
|
|
28
|
+
regex = Regexp.escape(coc.content_normalized)
|
|
29
|
+
regex = regex.gsub(FIELD_PLACEHOLDER_REGEX, '([a-z ]+?)')
|
|
30
|
+
Regexp.new(regex)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module Coconductor
|
|
2
|
+
module ProjectFiles
|
|
3
|
+
class CodeOfConductFile < Coconductor::ProjectFiles::ProjectFile
|
|
4
|
+
include Licensee::ContentHelper
|
|
5
|
+
|
|
6
|
+
EXTENSIONS = %w[md markdown txt].freeze
|
|
7
|
+
EXT_REGEX = /\.#{Regexp.union(EXTENSIONS)}/i
|
|
8
|
+
BASENAME_REGEX = /(citizen[_-])?code[_-]of[_-]conduct/i
|
|
9
|
+
# LANG_REGEX must contain extension to avoid matching .md as the lang
|
|
10
|
+
LANG_REGEX = /(\.(?<lang>[a-z]{2}(-[a-z]{2})?)#{EXT_REGEX})?/i
|
|
11
|
+
FILENAME_REGEX = /#{BASENAME_REGEX}#{LANG_REGEX}#{EXT_REGEX}?/i
|
|
12
|
+
|
|
13
|
+
def self.name_score(filename)
|
|
14
|
+
filename =~ /\A#{FILENAME_REGEX}/ ? 1.0 : 0.0
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def possible_matchers
|
|
18
|
+
[Matchers::Exact, Matchers::FieldAware, Matchers::Dice]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Coconductor
|
|
2
|
+
module ProjectFiles
|
|
3
|
+
class ProjectFile < Licensee::ProjectFiles::ProjectFile
|
|
4
|
+
def code_of_conduct
|
|
5
|
+
matcher && matcher.match
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
undef_method :license
|
|
9
|
+
undef_method :matched_license
|
|
10
|
+
undef_method :copyright?
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
module Coconductor
|
|
2
|
+
module Projects
|
|
3
|
+
autoload :Project, 'coconductor/projects/project'
|
|
4
|
+
autoload :FSProject, 'coconductor/projects/fs_project'
|
|
5
|
+
autoload :GitProject, 'coconductor/projects/git_project'
|
|
6
|
+
autoload :GitHubProject, 'coconductor/projects/github_project'
|
|
7
|
+
end
|
|
8
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module Coconductor
|
|
2
|
+
module Projects
|
|
3
|
+
class FSProject < Licensee::Projects::FSProject
|
|
4
|
+
include Coconductor::Projects::Project
|
|
5
|
+
|
|
6
|
+
private
|
|
7
|
+
|
|
8
|
+
# Returns the set of unique paths to search for project files
|
|
9
|
+
# in order from @dir -> @root
|
|
10
|
+
def search_directories
|
|
11
|
+
search_enumerator.map(&:to_path)
|
|
12
|
+
.push(@root) # ensure root is included in the search
|
|
13
|
+
.concat(subdirs)
|
|
14
|
+
.uniq # don't include the root twice if @dir == @root
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def subdirs
|
|
18
|
+
Coconductor::Projects::Project::DIRS.map do |dir|
|
|
19
|
+
File.expand_path dir, @dir
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Coconductor
|
|
2
|
+
module Projects
|
|
3
|
+
class GitProject < Licensee::Projects::GitProject
|
|
4
|
+
include Coconductor::Projects::Project
|
|
5
|
+
|
|
6
|
+
private
|
|
7
|
+
|
|
8
|
+
# Returns an array of hashes representing the project's files.
|
|
9
|
+
# Hashes will have the the following keys:
|
|
10
|
+
# :name - the file's path relative to the repo root
|
|
11
|
+
# :oid - the file's OID
|
|
12
|
+
def files
|
|
13
|
+
return @files if defined? @files
|
|
14
|
+
@files = files_from_tree(commit.tree)
|
|
15
|
+
|
|
16
|
+
commit.tree.each_tree do |tree_hash|
|
|
17
|
+
next unless subdir?(tree_hash)
|
|
18
|
+
tree = Rugged::Tree.lookup(@repository, tree_hash[:oid])
|
|
19
|
+
@files.concat files_from_tree(tree, tree_hash[:name]) if tree
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
@files
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def subdir?(tree)
|
|
26
|
+
Coconductor::Projects::Project::DIRS.include? "./#{tree[:name]}/"
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
module Coconductor
|
|
2
|
+
module Projects
|
|
3
|
+
module Project
|
|
4
|
+
DIRS = ['./docs/', './.github/'].freeze
|
|
5
|
+
|
|
6
|
+
def code_of_conduct
|
|
7
|
+
code_of_conduct_file.code_of_conduct if code_of_conduct_file
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
def code_of_conduct_file
|
|
11
|
+
return if files.nil? || files.empty?
|
|
12
|
+
file = find_files do |filename|
|
|
13
|
+
ProjectFiles::CodeOfConductFile.name_score(filename)
|
|
14
|
+
end.first
|
|
15
|
+
|
|
16
|
+
return unless file
|
|
17
|
+
|
|
18
|
+
content = load_file(file)
|
|
19
|
+
ProjectFiles::CodeOfConductFile.new(content, file)
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
private
|
|
23
|
+
|
|
24
|
+
def path_relative_to_root(path)
|
|
25
|
+
return path if is_a?(GitProject) || path.nil?
|
|
26
|
+
|
|
27
|
+
root = Pathname.new(@dir)
|
|
28
|
+
path = Pathname.new(path)
|
|
29
|
+
path.relative_path_from(root).to_s
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
data/script/bootstrap
ADDED
data/script/cibuild
ADDED
data/script/console
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
require 'fileutils'
|
|
4
|
+
require 'open-uri'
|
|
5
|
+
require 'toml'
|
|
6
|
+
|
|
7
|
+
repo = 'ContributorCovenant/contributor_covenant'
|
|
8
|
+
dir = File.expand_path 'vendor/contributor-covenant'
|
|
9
|
+
include_path = '*/content/version'
|
|
10
|
+
|
|
11
|
+
FileUtils.rm_rf(dir)
|
|
12
|
+
FileUtils.mkdir_p(dir)
|
|
13
|
+
|
|
14
|
+
tar_args = "--include=#{include_path} --strip-components=2 -C #{dir}"
|
|
15
|
+
`curl -L "https://api.github.com/repos/#{repo}/tarball" | tar xf - #{tar_args}`
|
|
16
|
+
|
|
17
|
+
repo = 'stumpsyn/policies'
|
|
18
|
+
dir = 'vendor/citizen-code-of-conduct'
|
|
19
|
+
file = 'citizen_code_of_conduct.md'
|
|
20
|
+
versions = {
|
|
21
|
+
'2.0' => 'd0594789ea324a42e26b495034952b6ce08d9f51',
|
|
22
|
+
'2.1' => 'b7705a4315a5e58fea58ae3d4b1de82bd564ac86',
|
|
23
|
+
'2.2' => '93b7b06f52c9dd526d2395bfa9f5f1723deae32a',
|
|
24
|
+
'2.3' => 'b1eb8deb5da073c2bd02a8e742e017edfc422554'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
FileUtils.rm_rf(dir)
|
|
28
|
+
FileUtils.mkdir_p(dir)
|
|
29
|
+
|
|
30
|
+
versions.each do |version, sha|
|
|
31
|
+
url = "https://github.com/#{repo}/raw/#{sha}/#{file}"
|
|
32
|
+
content = URI.open(url).read
|
|
33
|
+
meta = { 'version' => version }
|
|
34
|
+
toml = TOML::Generator.new(meta).body
|
|
35
|
+
content = ['+++', toml, '+++', content].join("\n")
|
|
36
|
+
path = File.join(dir, 'version', *version.split('.'), file)
|
|
37
|
+
FileUtils.mkdir_p File.dirname(path)
|
|
38
|
+
File.write(path, content)
|
|
39
|
+
end
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
+++
|
|
2
|
+
version = "2.0"
|
|
3
|
+
|
|
4
|
+
+++
|
|
5
|
+
# Citizen Code of Conduct
|
|
6
|
+
|
|
7
|
+
## 1. Purpose
|
|
8
|
+
|
|
9
|
+
A primary goal of COMMUNITY_NAME is to be inclusive to
|
|
10
|
+
the largest number of contributors, with the most varied
|
|
11
|
+
and diverse backgrounds possible. As such, we are committed
|
|
12
|
+
to providing a friendly, safe and welcoming environment for
|
|
13
|
+
all, regardless of gender, sexual orientation, ability,
|
|
14
|
+
ethnicity, socioeconomic status, and religion (or lack
|
|
15
|
+
thereof).
|
|
16
|
+
|
|
17
|
+
This code of conduct outlines our expectations for all
|
|
18
|
+
those who participate in our community, as well as the
|
|
19
|
+
consequences for unacceptable behavior.
|
|
20
|
+
|
|
21
|
+
We invite all those who participate in COMMUNITY_NAME to
|
|
22
|
+
help us create safe and positive experiences for everyone.
|
|
23
|
+
|
|
24
|
+
## 2. Open [Source/Culture/Tech] Citizenship
|
|
25
|
+
|
|
26
|
+
A supplemental goal of this Code of Conduct is to
|
|
27
|
+
increase open [source/culture/tech] citizenship by encouraging
|
|
28
|
+
participants to recognize and strengthen the relationships
|
|
29
|
+
between our actions and their effects on our community.
|
|
30
|
+
|
|
31
|
+
Communities mirror the societies in which they exist and positive action is essential to counteract the many forms of inequality and abuses of power that exist in society.
|
|
32
|
+
|
|
33
|
+
If you see someone who is making an extra effort to
|
|
34
|
+
ensure our community is welcoming, friendly, and encourages
|
|
35
|
+
all participants to contribute to the fullest extent, we
|
|
36
|
+
want to know.
|
|
37
|
+
|
|
38
|
+
## 3. Expected Behavior
|
|
39
|
+
|
|
40
|
+
* Participate in an authentic and active way. In doing so, you contribute to the health and longevity of this community.
|
|
41
|
+
* Exercise consideration and respect in your speech and actions.
|
|
42
|
+
* Attempt collaboration before conflict.
|
|
43
|
+
* Refrain from demeaning, discriminatory, or harassing behavior and speech.
|
|
44
|
+
* Be mindful of your surroundings and of your fellow participants. Alert community leaders if you notice a dangerous situation, someone in distress, or violations of this Code of Conduct, even if they seem inconsequential.
|
|
45
|
+
|
|
46
|
+
## 4. Unacceptable Behavior
|
|
47
|
+
|
|
48
|
+
Unacceptable behaviors include: intimidating, harassing, abusive,
|
|
49
|
+
discriminatory, derogatory or demeaning speech or actions by
|
|
50
|
+
any participant in our community online, at all related
|
|
51
|
+
events and in one-on-one communications carried out in the
|
|
52
|
+
context of community business. Community event venues may be
|
|
53
|
+
shared with members of the public; please be respectful to
|
|
54
|
+
all patrons of these locations.
|
|
55
|
+
|
|
56
|
+
Harassment includes: harmful or prejudicial verbal or written
|
|
57
|
+
comments related to gender, sexual orientation, race,
|
|
58
|
+
religion, disability; inappropriate use of nudity and/or
|
|
59
|
+
sexual images in public spaces (including presentation
|
|
60
|
+
slides); deliberate intimidation, stalking or following;
|
|
61
|
+
harassing photography or recording; sustained disruption of
|
|
62
|
+
talks or other events; inappropriate physical contact, and
|
|
63
|
+
unwelcome sexual attention.
|
|
64
|
+
|
|
65
|
+
## 5. Consequences of Unacceptable Behavior
|
|
66
|
+
|
|
67
|
+
Unacceptable behavior from any community member, including
|
|
68
|
+
sponsors and those with decision-making authority, will not
|
|
69
|
+
be tolerated.
|
|
70
|
+
|
|
71
|
+
Anyone asked to stop unacceptable behavior is expected to
|
|
72
|
+
comply immediately.
|
|
73
|
+
|
|
74
|
+
If a community member engages in unacceptable behavior, the
|
|
75
|
+
community organizers may take any action they deem
|
|
76
|
+
appropriate, up to and including a temporary ban or
|
|
77
|
+
permanent expulsion from the community without warning (and
|
|
78
|
+
without refund in the case of a paid event).
|
|
79
|
+
|
|
80
|
+
## 6. If You Witness or Are Subject to Unacceptable Behavior
|
|
81
|
+
|
|
82
|
+
If you are subject to or witness unacceptable behavior, or
|
|
83
|
+
have any other concerns, please notify a community organizer
|
|
84
|
+
as soon as possible. [CONTACT_INFO_HERE]
|
|
85
|
+
|
|
86
|
+
Additionally, community organizers are available to help
|
|
87
|
+
community members engage with local law enforcement or to
|
|
88
|
+
otherwise help those experiencing unacceptable behavior feel
|
|
89
|
+
safe. In the context of in-person events, organizers will
|
|
90
|
+
also provide escorts as desired by the person experiencing
|
|
91
|
+
distress.
|
|
92
|
+
|
|
93
|
+
## 7. Addressing Grievances
|
|
94
|
+
|
|
95
|
+
If you feel you have been falsely or unfairly accused of
|
|
96
|
+
violating this Code of Conduct, you should notify
|
|
97
|
+
GOVERNING_BODY with a concise description of your grievance.
|
|
98
|
+
Your grievance will be handled in accordance with our
|
|
99
|
+
existing governing policies. [LINK_TO_POLICY]
|
|
100
|
+
|
|
101
|
+
[NOTE: Every organization's governing policies should dictate
|
|
102
|
+
how you handle warnings and expulsions of community members.
|
|
103
|
+
It is strongly recommended that you mention those policies
|
|
104
|
+
here or in Section 7 and that you include a mechanism
|
|
105
|
+
for addressing grievances.]
|
|
106
|
+
|
|
107
|
+
## 8. Scope
|
|
108
|
+
|
|
109
|
+
We expect all community participants (contributors, paid or
|
|
110
|
+
otherwise; sponsors; and other guests) to abide by this
|
|
111
|
+
Code of Conduct in all community venues—online and in-
|
|
112
|
+
person—as well as in all one-on-one communications pertaining
|
|
113
|
+
to community business.
|
|
114
|
+
|
|
115
|
+
## 9. Contact info
|
|
116
|
+
|
|
117
|
+
[YOUR CONTACT INFO HERE -- this should be a single
|
|
118
|
+
person or a small team who can respond to issues
|
|
119
|
+
directly]
|
|
120
|
+
|
|
121
|
+
## 10. License and attribution
|
|
122
|
+
|
|
123
|
+
This Code of Conduct is distributed under a [Creative
|
|
124
|
+
Commons Attribution-ShareAlike license](http://creativecommons.org/licenses/by-sa/3.0/)
|
|
125
|
+
|
|
126
|
+
_Revision 2.0, adopted by the [Stumptown
|
|
127
|
+
Syndicate](http://stumptownsyndicate.org) board on 10 January 2013. Posted 17 March 2013._
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
+++
|
|
2
|
+
version = "2.1"
|
|
3
|
+
|
|
4
|
+
+++
|
|
5
|
+
# Citizen Code of Conduct
|
|
6
|
+
|
|
7
|
+
## 1. Purpose
|
|
8
|
+
|
|
9
|
+
A primary goal of COMMUNITY_NAME is to be inclusive to the largest number of contributors, with the most varied and diverse backgrounds possible. As such, we are committed to providing a friendly, safe and welcoming environment for all, regardless of gender, sexual orientation, ability, ethnicity, socioeconomic status, and religion (or lack thereof).
|
|
10
|
+
|
|
11
|
+
This code of conduct outlines our expectations for all those who participate in our community, as well as the consequences for unacceptable behavior.
|
|
12
|
+
|
|
13
|
+
We invite all those who participate in COMMUNITY_NAME to help us create safe and positive experiences for everyone.
|
|
14
|
+
|
|
15
|
+
## 2. Open [Source/Culture/Tech] Citizenship
|
|
16
|
+
|
|
17
|
+
A supplemental goal of this Code of Conduct is to increase open [source/culture/tech] citizenship by encouraging participants to recognize and strengthen the relationships between our actions and their effects on our community.
|
|
18
|
+
|
|
19
|
+
Communities mirror the societies in which they exist and positive action is essential to counteract the many forms of inequality and abuses of power that exist in society.
|
|
20
|
+
|
|
21
|
+
If you see someone who is making an extra effort to ensure our community is welcoming, friendly, and encourages all participants to contribute to the fullest extent, we want to know.
|
|
22
|
+
|
|
23
|
+
## 3. Expected Behavior
|
|
24
|
+
|
|
25
|
+
The following behaviors are expected and requested of all community members:
|
|
26
|
+
|
|
27
|
+
* Participate in an authentic and active way. In doing so, you contribute to the health and longevity of this community.
|
|
28
|
+
* Exercise consideration and respect in your speech and actions.
|
|
29
|
+
* Attempt collaboration before conflict.
|
|
30
|
+
* Refrain from demeaning, discriminatory, or harassing behavior and speech.
|
|
31
|
+
* Be mindful of your surroundings and of your fellow participants. Alert community leaders if you notice a dangerous situation, someone in distress, or violations of this Code of Conduct, even if they seem inconsequential.
|
|
32
|
+
* Remember that community event venues may be shared with members of the public; please be respectful to all patrons of these locations.
|
|
33
|
+
|
|
34
|
+
## 4. Unacceptable Behavior
|
|
35
|
+
|
|
36
|
+
The following behaviors are considered harassment and are unacceptable within our community:
|
|
37
|
+
|
|
38
|
+
* Violence, threats of violence or violent language directed against another person.
|
|
39
|
+
* Sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory jokes and language.
|
|
40
|
+
* Posting or displaying sexually explicit or violent material.
|
|
41
|
+
* Posting or threatening to post other people's personally identifying information ("doxing").
|
|
42
|
+
* Personal insults, particularly those related to gender, sexual orientation, race, religion, or disability.
|
|
43
|
+
* Inappropriate photography or recording.
|
|
44
|
+
* Inappropriate physical contact. You should have someone's consent before touching them.
|
|
45
|
+
* Unwelcome sexual attention. This includes, sexualized comments or jokes; inappropriate touching, groping, and unwelcomed sexual advances.
|
|
46
|
+
* Deliberate intimidation, stalking or following (online or in person).
|
|
47
|
+
* Advocating for, or encouraging, any of the above behavior.
|
|
48
|
+
* Sustained disruption of community events, including talks and presenations.
|
|
49
|
+
|
|
50
|
+
## 5. Consequences of Unacceptable Behavior
|
|
51
|
+
|
|
52
|
+
Unacceptable behavior from any community member, including sponsors and those with decision-making authority, will not be tolerated.
|
|
53
|
+
|
|
54
|
+
Anyone asked to stop unacceptable behavior is expected to comply immediately.
|
|
55
|
+
|
|
56
|
+
If a community member engages in unacceptable behavior, the community organizers may take any action they deem appropriate, up to and including a temporary ban or permanent expulsion from the community without warning (and without refund in the case of a paid event).
|
|
57
|
+
|
|
58
|
+
## 6. Reporting Guidelines
|
|
59
|
+
|
|
60
|
+
If you are subject to or witness unacceptable behavior, or have any other concerns, please notify a community organizer as soon as possible. [CONTACT_INFO_HERE].
|
|
61
|
+
|
|
62
|
+
[LINK_TO_REPORTING_GUIDELINES]
|
|
63
|
+
|
|
64
|
+
Additionally, community organizers are available to help community members engage with local law enforcement or to otherwise help those experiencing unacceptable behavior feel safe. In the context of in-person events, organizers will also provide escorts as desired by the person experiencing distress.
|
|
65
|
+
|
|
66
|
+
## 7. Addressing Grievances
|
|
67
|
+
|
|
68
|
+
If you feel you have been falsely or unfairly accused of violating this Code of Conduct, you should notify GOVERNING_BODY with a concise description of your grievance. Your grievance will be handled in accordance with our existing governing policies. [LINK_TO_POLICY]
|
|
69
|
+
|
|
70
|
+
[NOTE: Every organization's governing policies should dictate how you handle warnings and expulsions of community members. It is strongly recommended that you mention those policies here or in Section 7 and that you include a mechanism for addressing grievances.]
|
|
71
|
+
|
|
72
|
+
## 8. Scope
|
|
73
|
+
|
|
74
|
+
We expect all community participants (contributors, paid or otherwise; sponsors; and other guests) to abide by this Code of Conduct in all community venues--online and in-person--as well as in all one-on-one communications pertaining to community business.
|
|
75
|
+
|
|
76
|
+
This code of conduct and its related procedures also applies to unacceptable behavior occuring outside the scope of community activities when such behavior has the potential to adversely affect the safety and well-being of community members.
|
|
77
|
+
|
|
78
|
+
## 9. Contact info
|
|
79
|
+
|
|
80
|
+
[YOUR CONTACT INFO HERE -- this should be a single person or a small team who can respond to issues directly]
|
|
81
|
+
|
|
82
|
+
## 10. License and attribution
|
|
83
|
+
|
|
84
|
+
This Code of Conduct is distributed under a [Creative Commons Attribution-ShareAlike license](http://creativecommons.org/licenses/by-sa/3.0/).
|
|
85
|
+
|
|
86
|
+
Portions of text dervied from the [Django Code of Conduct](https://www.djangoproject.com/conduct/) and the [Geek Feminism Anti-Harassment Policy](http://geekfeminism.wikia.com/wiki/Conference_anti-harassment/Policy).
|
|
87
|
+
|
|
88
|
+
_Revision 2.1. Posted 23 June 2014._
|
|
89
|
+
|
|
90
|
+
_Revision 2.0, adopted by the [Stumptown Syndicate](http://stumptownsyndicate.org) board on 10 January 2013. Posted 17 March 2013._
|