sanitize_email 2.0.10 → 2.0.11
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +167 -44
- data/CITATION.cff +20 -0
- data/CODE_OF_CONDUCT.md +79 -29
- data/CONTRIBUTING.md +233 -46
- data/FUNDING.md +63 -0
- data/LICENSE.md +22 -0
- data/README.md +380 -600
- data/RUBOCOP.md +71 -0
- data/SECURITY.md +15 -9
- data/certs/pboling.pem +27 -0
- data/lib/sanitize_email/bleach.rb +3 -1
- data/lib/sanitize_email/config.rb +51 -34
- data/lib/sanitize_email/deprecation.rb +9 -1
- data/lib/sanitize_email/mail_ext.rb +8 -6
- data/lib/sanitize_email/mail_header_tools.rb +64 -61
- data/lib/sanitize_email/version.rb +2 -4
- data/lib/sanitize_email.rb +11 -1
- data/sig/sanitize_email/version.rbs +6 -0
- data.tar.gz.sig +0 -0
- metadata +207 -51
- metadata.gz.sig +0 -0
- data/LICENSE.txt +0 -21
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1e6d63e93062c0547e5177ee1bcf3a854cb68196a49b86332297bbdd10e10afb
|
|
4
|
+
data.tar.gz: 3c65b2465ea81c6204524f7a2f57f3681212ff53598920caa675fbc410159fd3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d3260192f60a3e2466ccb6338c1fd4f5913dcb87110e458006b42c68af7c3d5ebf898bdbecd1d24f40b3745dcd53995e0c11e0a4178443a798369ce0d03f8d73
|
|
7
|
+
data.tar.gz: 40967af8eb1b26da3ab0467852284a86330725ce3bc2a86ea71f570a816689114844279bdca87ea2a9867d3c83c6f1158d2b3405c7a77147f2a3096206be85ce
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
|
@@ -1,46 +1,117 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
+
|
|
3
|
+
[![SemVer 2.0.0][📌semver-img]][📌semver] [![Keep-A-Changelog 1.0.0][📗keep-changelog-img]][📗keep-changelog]
|
|
4
|
+
|
|
2
5
|
All notable changes to this project will be documented in this file.
|
|
3
6
|
|
|
4
|
-
|
|
5
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
|
|
7
|
+
The format is based on [Keep a Changelog][📗keep-changelog],
|
|
8
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
|
|
9
|
+
and [yes][📌major-versions-not-sacred], platform and engine support are part of the [public API][📌semver-breaking].
|
|
10
|
+
Please file a bug if you notice a violation of semantic versioning.
|
|
11
|
+
|
|
12
|
+
[📌semver]: https://semver.org/spec/v2.0.0.html
|
|
13
|
+
[📌semver-img]: https://img.shields.io/badge/semver-2.0.0-FFDD67.svg?style=flat
|
|
14
|
+
[📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
|
|
15
|
+
[📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
|
|
16
|
+
[📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
|
|
17
|
+
[📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
|
|
6
18
|
|
|
7
19
|
## [Unreleased]
|
|
20
|
+
|
|
8
21
|
### Added
|
|
22
|
+
|
|
9
23
|
### Changed
|
|
10
|
-
|
|
24
|
+
|
|
25
|
+
### Deprecated
|
|
26
|
+
|
|
11
27
|
### Removed
|
|
12
28
|
|
|
13
|
-
|
|
29
|
+
### Fixed
|
|
30
|
+
|
|
31
|
+
### Security
|
|
32
|
+
|
|
33
|
+
## [2.0.11] - 2026-05-28
|
|
34
|
+
|
|
35
|
+
- TAG: [v2.0.11][2.0.11t]
|
|
36
|
+
- COVERAGE: 94.93% -- 262/276 lines in 8 files
|
|
37
|
+
- BRANCH COVERAGE: 80.81% -- 80/99 branches in 8 files
|
|
38
|
+
- 52.27% documented
|
|
39
|
+
|
|
40
|
+
### Added
|
|
41
|
+
|
|
42
|
+
- Published generated API documentation
|
|
43
|
+
- refreshed README Ruby & Rails compatibility guidance
|
|
44
|
+
|
|
45
|
+
### Changed
|
|
46
|
+
|
|
47
|
+
- Refreshed package metadata, support links, and documentation links for the
|
|
48
|
+
current `galtzo-floss/sanitize_email` project home.
|
|
49
|
+
|
|
50
|
+
### Fixed
|
|
51
|
+
|
|
52
|
+
- Fixed sanitization of SendGrid ActionMailer `personalizations` headers so the
|
|
53
|
+
overridden recipient data is written back to the message.
|
|
54
|
+
- Made global sanitization/configuration state updates safer under concurrent
|
|
55
|
+
access by synchronizing `force_sanitize`, configuration, and deprecation
|
|
56
|
+
silence state.
|
|
57
|
+
|
|
58
|
+
## [2.0.10] - 2024-11-09
|
|
59
|
+
|
|
60
|
+
- TAG: [v2.0.10][2.0.10t]
|
|
61
|
+
|
|
14
62
|
- COVERAGE: 90.15% -- 247/274 lines in 8 files
|
|
15
63
|
- BRANCH COVERAGE: 71.68% -- 81/113 branches in 8 files
|
|
16
64
|
- 61.73% documented
|
|
65
|
+
|
|
17
66
|
### Fixed
|
|
67
|
+
|
|
18
68
|
* Prefer `require_relative` > `require` internally
|
|
19
69
|
* Better performance, portability, and consistency
|
|
20
70
|
* See: https://github.com/rubocop/rubocop/issues/8748
|
|
21
71
|
|
|
22
|
-
## [2.0.9] - 2024-11-09
|
|
72
|
+
## [2.0.9] - 2024-11-09
|
|
73
|
+
|
|
74
|
+
- TAG: [v2.0.9][2.0.9t]
|
|
75
|
+
|
|
23
76
|
- COVERAGE: 90.15% -- 247/274 lines in 8 files
|
|
24
77
|
- BRANCH COVERAGE: 71.68% -- 81/113 branches in 8 files
|
|
25
78
|
- 61.73% documented
|
|
79
|
+
|
|
26
80
|
### Added
|
|
81
|
+
|
|
27
82
|
* More & better documentation
|
|
28
83
|
* Rails 8.0 to CI
|
|
29
84
|
|
|
30
|
-
## [2.0.8] - 2024-06-11
|
|
85
|
+
## [2.0.8] - 2024-06-11
|
|
86
|
+
|
|
87
|
+
- TAG: [v2.0.8][2.0.8t]
|
|
88
|
+
|
|
31
89
|
### Fixed
|
|
32
|
-
* [#110](https://github.com/pboling/sanitize_email/issues/110) - interceptor not working via Rails 6+ engine (actual fix!)
|
|
33
90
|
|
|
34
|
-
|
|
91
|
+
* [#110](https://github.com/galtzo-floss/sanitize_email/issues/110) - interceptor not working via Rails 6+ engine (actual fix!)
|
|
92
|
+
|
|
93
|
+
## [2.0.7] - 2024-04-25
|
|
94
|
+
|
|
95
|
+
- TAG: [v2.0.7][2.0.7t]
|
|
96
|
+
|
|
35
97
|
### Added
|
|
98
|
+
|
|
36
99
|
* More documentation
|
|
100
|
+
|
|
37
101
|
### Changed
|
|
102
|
+
|
|
38
103
|
* Documentation is now via yard instead of rdoc
|
|
104
|
+
|
|
39
105
|
### Fixed
|
|
40
|
-
* [#110](https://github.com/pboling/sanitize_email/issues/110) - interceptor not working via Rails 6+ engine
|
|
41
106
|
|
|
42
|
-
|
|
107
|
+
* [#110](https://github.com/galtzo-floss/sanitize_email/issues/110) - interceptor not working via Rails 6+ engine
|
|
108
|
+
|
|
109
|
+
## [2.0.6] - 2024-04-25
|
|
110
|
+
|
|
111
|
+
- TAG: [v2.0.6][2.0.6t]
|
|
112
|
+
|
|
43
113
|
### Added
|
|
114
|
+
|
|
44
115
|
* Appraisals & Combustion for comprehensive testing across versions of Rails (@pboling)
|
|
45
116
|
* Rails 3.0 to Test Matrix (@pboling)
|
|
46
117
|
* Rails 3.1 to Test Matrix (@pboling)
|
|
@@ -51,12 +122,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
51
122
|
* Rails 5.0 to Test Matrix (@pboling)
|
|
52
123
|
* Rails 5.1 to Test Matrix (@pboling)
|
|
53
124
|
* More Documentation (@pboling)
|
|
125
|
+
|
|
54
126
|
### Fixed
|
|
127
|
+
|
|
55
128
|
* Compatibility with Rails 3.0, 3.1, 3.2 (@pboling)
|
|
56
129
|
* Compatibility with Rails 6.0, 6.1, 7.0, 7.1 (@pboling)
|
|
57
130
|
|
|
58
|
-
## [2.0.5] - 2024-04-18
|
|
131
|
+
## [2.0.5] - 2024-04-18
|
|
132
|
+
|
|
133
|
+
- TAG: [v2.0.5][2.0.5t]
|
|
134
|
+
|
|
59
135
|
### Added
|
|
136
|
+
|
|
60
137
|
* New RSpec matcher (@pboling)
|
|
61
138
|
* `have_bcc_username`
|
|
62
139
|
* Feature #21 - environment configuration option can now be set to proc / lambda / #call (@pboling)
|
|
@@ -64,14 +141,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
64
141
|
* Many more tests
|
|
65
142
|
* Confirmed compatibility with [`sendgrid-actionmailer`](https://github.com/eddiezane/sendgrid-actionmailer)
|
|
66
143
|
* Code coverage up to 90%
|
|
144
|
+
|
|
67
145
|
### Changed
|
|
146
|
+
|
|
68
147
|
* Averted deprecation warnings when using Rails 6 (@pboling)
|
|
148
|
+
|
|
69
149
|
## Fixed
|
|
150
|
+
|
|
70
151
|
* Bug #37 - Unable to send email when only CC or BCC present
|
|
71
152
|
|
|
72
|
-
## [2.0.4] - 2024-03-22
|
|
153
|
+
## [2.0.4] - 2024-03-22
|
|
154
|
+
|
|
155
|
+
- TAG: [v2.0.4][2.0.4t]
|
|
156
|
+
|
|
73
157
|
### Added
|
|
74
|
-
|
|
158
|
+
|
|
159
|
+
* [#74](https://github.com/galtzo-floss/sanitize_email/pull/74) Support sanitizing SendGrid personalization fields (@joeyparis)
|
|
75
160
|
* mail gem dependency (@pboling)
|
|
76
161
|
* version_gem dependency (@pboling)
|
|
77
162
|
* new RSpec Matchers (@pboling)
|
|
@@ -80,48 +165,84 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
80
165
|
* Contributor [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) (@pboling)
|
|
81
166
|
* Security Policy in [SECURITY.md](SECURITY.md) (@pboling)
|
|
82
167
|
* More documentation (@pboling)
|
|
168
|
+
|
|
83
169
|
### Changed
|
|
170
|
+
|
|
84
171
|
* Switched from Travis-CI to GitHub Actions
|
|
85
172
|
* Testing for
|
|
173
|
+
|
|
86
174
|
### Fixed
|
|
87
|
-
|
|
175
|
+
|
|
176
|
+
* [#64](https://github.com/galtzo-floss/sanitize_email/issues/64) Automatically dedup recipients in cascading fashion: To > CC > BCC (@pboling)
|
|
88
177
|
* Set sanitized email headers with decoded values from Mail gem
|
|
178
|
+
|
|
89
179
|
### Removed
|
|
180
|
+
|
|
90
181
|
* Dependency on git in gemspec (@pboling)
|
|
91
182
|
* Coveralls development gem dependecy
|
|
92
183
|
|
|
93
|
-
## [2.0.3] - 2018-09-08
|
|
184
|
+
## [2.0.3] - 2018-09-08
|
|
185
|
+
|
|
186
|
+
- TAG: [v2.0.3][2.0.3t]
|
|
187
|
+
|
|
94
188
|
### Changed
|
|
189
|
+
|
|
95
190
|
* Nothing
|
|
96
191
|
|
|
97
|
-
## [2.0.2] - 2018-09-08
|
|
192
|
+
## [2.0.2] - 2018-09-08
|
|
193
|
+
|
|
194
|
+
- TAG: [v2.0.2][2.0.2t]
|
|
195
|
+
|
|
98
196
|
### Added
|
|
197
|
+
|
|
99
198
|
* More and fixed badges (@pboling)
|
|
100
199
|
* Code Coverage reporting (@pboling)
|
|
200
|
+
|
|
101
201
|
### Changed
|
|
202
|
+
|
|
102
203
|
* begin following SemVer for dependency requirements (@pboling)
|
|
204
|
+
|
|
103
205
|
### Fixed
|
|
104
|
-
|
|
206
|
+
|
|
207
|
+
* [#47](https://github.com/galtzo-floss/sanitize_email/pull/47) Don't use #prepend on subject (@mslade-fairfax)
|
|
208
|
+
|
|
105
209
|
### Removed
|
|
210
|
+
|
|
106
211
|
* Ability to install on Ruby 2.2 (@pboling)
|
|
107
212
|
|
|
108
|
-
## [2.0.1] - 2018-03-07
|
|
213
|
+
## [2.0.1] - 2018-03-07
|
|
214
|
+
|
|
215
|
+
- TAG: [v2.0.1][2.0.1t]
|
|
216
|
+
|
|
109
217
|
### Fixed
|
|
110
|
-
|
|
218
|
+
|
|
219
|
+
* [#32](https://github.com/galtzo-floss/sanitize_email/pull/32) A better fix for the frozen subject bug (@pboling)
|
|
220
|
+
|
|
111
221
|
### Removed
|
|
222
|
+
|
|
112
223
|
* Ruby 2.2 is really no longer supported (@pboling)
|
|
113
224
|
|
|
114
|
-
## [2.0.0] - 2018-03-07
|
|
225
|
+
## [2.0.0] - 2018-03-07
|
|
226
|
+
|
|
227
|
+
- TAG: [v2.0.0][2.0.0t]
|
|
228
|
+
|
|
115
229
|
### Added
|
|
230
|
+
|
|
116
231
|
* Add testing for Rails 5.1 and 5.2 (@pboling)
|
|
117
232
|
* More and fixed badges (@pboling)
|
|
233
|
+
|
|
118
234
|
### Changed
|
|
235
|
+
|
|
119
236
|
* Drop support for MRI Ruby 1.9, 2.0, 2.1, and 2.2 (@pboling)
|
|
120
237
|
* Drop support for JRuby 1.7 and 9.0, while still supporting 9.1 (@pboling)
|
|
121
238
|
* Drop support for Rails 3.0, 3.1, 3.2, 4.0, 4.1, while still supporting 4.2 (@pboling)
|
|
239
|
+
|
|
122
240
|
### Fixed
|
|
241
|
+
|
|
123
242
|
* Frozen subject bug (@pboling)
|
|
243
|
+
|
|
124
244
|
### Removed
|
|
245
|
+
|
|
125
246
|
* Ruby 2.2 is no longer supported (@pboling)
|
|
126
247
|
|
|
127
248
|
Version 1.2.2 - FEB.20.2017
|
|
@@ -274,7 +395,7 @@ Version 1.0.0.rc3 - AUG.08.2012
|
|
|
274
395
|
Version 1.0.0.rc2 - AUG.08.2012 - botched
|
|
275
396
|
|
|
276
397
|
* Bug: loading the gem in a rails app broke mailer specs in the app - Fixed
|
|
277
|
-
* https://github.com/
|
|
398
|
+
* https://github.com/galtzo-floss/sanitize_email/issues/4
|
|
278
399
|
* Moved MIT-LICENSE to LICENSE, updated years
|
|
279
400
|
* Added Travis-CI for... CI.
|
|
280
401
|
|
|
@@ -320,26 +441,28 @@ Old version?
|
|
|
320
441
|
* Fixed require paths
|
|
321
442
|
* added about.yml and this CHANGELOG
|
|
322
443
|
|
|
323
|
-
[Unreleased]: https://github.com/
|
|
324
|
-
[2.0.
|
|
325
|
-
[2.0.
|
|
326
|
-
[2.0.
|
|
327
|
-
[2.0.
|
|
328
|
-
[2.0.
|
|
329
|
-
[2.0.
|
|
330
|
-
[2.0.
|
|
331
|
-
[2.0.
|
|
332
|
-
[2.0.
|
|
333
|
-
[2.0.
|
|
334
|
-
[2.0.
|
|
335
|
-
[2.0.
|
|
336
|
-
[2.0.
|
|
337
|
-
[2.0.
|
|
338
|
-
[2.0.
|
|
339
|
-
[2.0.
|
|
340
|
-
[2.0.
|
|
341
|
-
[2.0.
|
|
342
|
-
[2.0.
|
|
343
|
-
[2.0.
|
|
344
|
-
[2.0.
|
|
345
|
-
[2.0.
|
|
444
|
+
[Unreleased]: https://github.com/galtzo-floss/sanitize_email/compare/v2.0.11...HEAD
|
|
445
|
+
[2.0.11]: https://github.com/galtzo-floss/sanitize_email/compare/v2.0.10...v2.0.11
|
|
446
|
+
[2.0.11t]: https://github.com/galtzo-floss/sanitize_email/releases/tag/v2.0.11
|
|
447
|
+
[2.0.10]: https://github.com/galtzo-floss/sanitize_email/compare/v2.0.9...v2.0.10
|
|
448
|
+
[2.0.10t]: https://github.com/galtzo-floss/sanitize_email/tags/v2.0.10
|
|
449
|
+
[2.0.9]: https://github.com/galtzo-floss/sanitize_email/compare/v2.0.8...v2.0.9
|
|
450
|
+
[2.0.9t]: https://github.com/galtzo-floss/sanitize_email/tags/v2.0.9
|
|
451
|
+
[2.0.8]: https://github.com/galtzo-floss/sanitize_email/compare/v2.0.7...v2.0.8
|
|
452
|
+
[2.0.8t]: https://github.com/galtzo-floss/sanitize_email/tags/v2.0.8
|
|
453
|
+
[2.0.7]: https://github.com/galtzo-floss/sanitize_email/compare/v2.0.6...v2.0.7
|
|
454
|
+
[2.0.7t]: https://github.com/galtzo-floss/sanitize_email/tags/v2.0.7
|
|
455
|
+
[2.0.6]: https://github.com/galtzo-floss/sanitize_email/compare/v2.0.5...v2.0.6
|
|
456
|
+
[2.0.6t]: https://github.com/galtzo-floss/sanitize_email/tags/v2.0.6
|
|
457
|
+
[2.0.5]: https://github.com/galtzo-floss/sanitize_email/compare/v2.0.4...v2.0.5
|
|
458
|
+
[2.0.5t]: https://github.com/galtzo-floss/sanitize_email/tags/v2.0.5
|
|
459
|
+
[2.0.4]: https://github.com/galtzo-floss/sanitize_email/compare/v2.0.3...v2.0.4
|
|
460
|
+
[2.0.4t]: https://github.com/galtzo-floss/sanitize_email/tags/v2.0.4
|
|
461
|
+
[2.0.3]: https://github.com/galtzo-floss/sanitize_email/compare/v2.0.2...v2.0.3
|
|
462
|
+
[2.0.3t]: https://github.com/galtzo-floss/sanitize_email/tags/v2.0.3
|
|
463
|
+
[2.0.2]: https://github.com/galtzo-floss/sanitize_email/compare/v2.0.1...v2.0.2
|
|
464
|
+
[2.0.2t]: https://github.com/galtzo-floss/sanitize_email/tags/v2.0.2
|
|
465
|
+
[2.0.1]: https://github.com/galtzo-floss/sanitize_email/compare/v2.0.0...v2.0.1
|
|
466
|
+
[2.0.1t]: https://github.com/galtzo-floss/sanitize_email/tags/v2.0.1
|
|
467
|
+
[2.0.0]: https://github.com/galtzo-floss/sanitize_email/compare/v1.2.2...v2.0.0
|
|
468
|
+
[2.0.0t]: https://github.com/galtzo-floss/sanitize_email/tags/v2.0.0
|
data/CITATION.cff
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
title: "sanitize_email"
|
|
3
|
+
message: >-
|
|
4
|
+
If you use this work and you want to cite it,
|
|
5
|
+
then you can use the metadata from this file.
|
|
6
|
+
type: software
|
|
7
|
+
authors:
|
|
8
|
+
- given-names: "Peter H."
|
|
9
|
+
family-names: "Boling"
|
|
10
|
+
email: "floss@galtzo.com"
|
|
11
|
+
affiliation: "galtzo.com"
|
|
12
|
+
orcid: 'https://orcid.org/0009-0008-8519-441X'
|
|
13
|
+
identifiers:
|
|
14
|
+
- type: url
|
|
15
|
+
value: 'https://github.com/galtzo-floss/sanitize_email/tree/main/gems/sanitize_email'
|
|
16
|
+
description: "sanitize_email"
|
|
17
|
+
repository-code: 'https://github.com/galtzo-floss/sanitize_email/tree/main/gems/sanitize_email'
|
|
18
|
+
abstract: >-
|
|
19
|
+
sanitize_email
|
|
20
|
+
license: See license file
|
data/CODE_OF_CONDUCT.md
CHANGED
|
@@ -2,83 +2,133 @@
|
|
|
2
2
|
|
|
3
3
|
## Our Pledge
|
|
4
4
|
|
|
5
|
-
We as members, contributors, and leaders pledge to make participation in our
|
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our
|
|
6
|
+
community a harassment-free experience for everyone, regardless of age, body
|
|
7
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
8
|
+
identity and expression, level of experience, education, socio-economic status,
|
|
9
|
+
nationality, personal appearance, race, caste, color, religion, or sexual
|
|
10
|
+
identity and orientation.
|
|
6
11
|
|
|
7
|
-
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
12
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
13
|
+
diverse, inclusive, and healthy community.
|
|
8
14
|
|
|
9
15
|
## Our Standards
|
|
10
16
|
|
|
11
|
-
Examples of behavior that contributes to a positive environment for our
|
|
17
|
+
Examples of behavior that contributes to a positive environment for our
|
|
18
|
+
community include:
|
|
12
19
|
|
|
13
20
|
* Demonstrating empathy and kindness toward other people
|
|
14
21
|
* Being respectful of differing opinions, viewpoints, and experiences
|
|
15
22
|
* Giving and gracefully accepting constructive feedback
|
|
16
|
-
* Accepting responsibility and apologizing to those affected by our mistakes,
|
|
17
|
-
|
|
23
|
+
* Accepting responsibility and apologizing to those affected by our mistakes,
|
|
24
|
+
and learning from the experience
|
|
25
|
+
* Focusing on what is best not just for us as individuals, but for the overall
|
|
26
|
+
community
|
|
18
27
|
|
|
19
28
|
Examples of unacceptable behavior include:
|
|
20
29
|
|
|
21
|
-
* The use of sexualized language or imagery, and sexual attention or
|
|
22
|
-
|
|
30
|
+
* The use of sexualized language or imagery, and sexual attention or advances of
|
|
31
|
+
any kind
|
|
23
32
|
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
24
33
|
* Public or private harassment
|
|
25
|
-
* Publishing others' private information, such as a physical or email
|
|
26
|
-
|
|
34
|
+
* Publishing others' private information, such as a physical or email address,
|
|
35
|
+
without their explicit permission
|
|
27
36
|
* Other conduct which could reasonably be considered inappropriate in a
|
|
28
37
|
professional setting
|
|
29
38
|
|
|
30
39
|
## Enforcement Responsibilities
|
|
31
40
|
|
|
32
|
-
Community leaders are responsible for clarifying and enforcing our standards of
|
|
41
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
|
42
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
|
43
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
44
|
+
or harmful.
|
|
33
45
|
|
|
34
|
-
Community leaders have the right and responsibility to remove, edit, or reject
|
|
46
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
|
47
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
48
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
49
|
+
decisions when appropriate.
|
|
35
50
|
|
|
36
51
|
## Scope
|
|
37
52
|
|
|
38
|
-
This Code of Conduct applies within all community spaces, and also applies when
|
|
53
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
|
54
|
+
an individual is officially representing the community in public spaces.
|
|
55
|
+
Examples of representing our community include using an official email address,
|
|
56
|
+
posting via an official social media account, or acting as an appointed
|
|
57
|
+
representative at an online or offline event.
|
|
39
58
|
|
|
40
59
|
## Enforcement
|
|
41
60
|
|
|
42
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
61
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
62
|
+
reported to the community leaders responsible for enforcement at
|
|
63
|
+
[![Contact Maintainer][🚂maint-contact-img]][🚂maint-contact].
|
|
64
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
|
43
65
|
|
|
44
|
-
All community leaders are obligated to respect the privacy and security of the
|
|
66
|
+
All community leaders are obligated to respect the privacy and security of the
|
|
67
|
+
reporter of any incident.
|
|
45
68
|
|
|
46
69
|
## Enforcement Guidelines
|
|
47
70
|
|
|
48
|
-
Community leaders will follow these Community Impact Guidelines in determining
|
|
71
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
|
72
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
|
49
73
|
|
|
50
74
|
### 1. Correction
|
|
51
75
|
|
|
52
|
-
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
76
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
77
|
+
unprofessional or unwelcome in the community.
|
|
53
78
|
|
|
54
|
-
**Consequence**: A private, written warning from community leaders, providing
|
|
79
|
+
**Consequence**: A private, written warning from community leaders, providing
|
|
80
|
+
clarity around the nature of the violation and an explanation of why the
|
|
81
|
+
behavior was inappropriate. A public apology may be requested.
|
|
55
82
|
|
|
56
83
|
### 2. Warning
|
|
57
84
|
|
|
58
|
-
**Community Impact**: A violation through a single incident or series of
|
|
85
|
+
**Community Impact**: A violation through a single incident or series of
|
|
86
|
+
actions.
|
|
59
87
|
|
|
60
|
-
**Consequence**: A warning with consequences for continued behavior. No
|
|
88
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
|
89
|
+
interaction with the people involved, including unsolicited interaction with
|
|
90
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
|
91
|
+
includes avoiding interactions in community spaces as well as external channels
|
|
92
|
+
like social media. Violating these terms may lead to a temporary or permanent
|
|
93
|
+
ban.
|
|
61
94
|
|
|
62
95
|
### 3. Temporary Ban
|
|
63
96
|
|
|
64
|
-
**Community Impact**: A serious violation of community standards, including
|
|
97
|
+
**Community Impact**: A serious violation of community standards, including
|
|
98
|
+
sustained inappropriate behavior.
|
|
65
99
|
|
|
66
|
-
**Consequence**: A temporary ban from any sort of interaction or public
|
|
100
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
|
101
|
+
communication with the community for a specified period of time. No public or
|
|
102
|
+
private interaction with the people involved, including unsolicited interaction
|
|
103
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
|
104
|
+
Violating these terms may lead to a permanent ban.
|
|
67
105
|
|
|
68
106
|
### 4. Permanent Ban
|
|
69
107
|
|
|
70
|
-
**Community Impact**: Demonstrating a pattern of violation of community
|
|
108
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
|
109
|
+
standards, including sustained inappropriate behavior, harassment of an
|
|
110
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
|
71
111
|
|
|
72
|
-
**Consequence**: A permanent ban from any sort of public interaction within the
|
|
112
|
+
**Consequence**: A permanent ban from any sort of public interaction within the
|
|
113
|
+
community.
|
|
73
114
|
|
|
74
115
|
## Attribution
|
|
75
116
|
|
|
76
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
77
|
-
available at
|
|
117
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
118
|
+
version 2.1, available at
|
|
119
|
+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
|
78
120
|
|
|
79
|
-
Community Impact Guidelines were inspired by
|
|
80
|
-
|
|
81
|
-
[homepage]: https://www.contributor-covenant.org
|
|
121
|
+
Community Impact Guidelines were inspired by
|
|
122
|
+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
|
82
123
|
|
|
83
124
|
For answers to common questions about this code of conduct, see the FAQ at
|
|
84
|
-
https://www.contributor-covenant.org/faq. Translations are available at
|
|
125
|
+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
|
|
126
|
+
[https://www.contributor-covenant.org/translations][translations].
|
|
127
|
+
|
|
128
|
+
[homepage]: https://www.contributor-covenant.org
|
|
129
|
+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
|
130
|
+
[Mozilla CoC]: https://github.com/mozilla/diversity
|
|
131
|
+
[FAQ]: https://www.contributor-covenant.org/faq
|
|
132
|
+
[translations]: https://www.contributor-covenant.org/translations
|
|
133
|
+
[🚂maint-contact]: http://www.railsbling.com/contact
|
|
134
|
+
[🚂maint-contact-img]: https://img.shields.io/badge/Contact-Maintainer-0093D0.svg?style=flat&logo=rubyonrails&logoColor=red
|