mime-types-data 3.2025.0924 → 3.2026.0113
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
- data/CHANGELOG.md +50 -30
- data/CODE_OF_CONDUCT.md +152 -114
- data/CONTRIBUTING.md +88 -25
- data/Manifest.txt +1 -0
- data/Rakefile +1 -1
- data/SECURITY.md +23 -4
- data/data/mime-types.json +1 -1
- data/data/mime.content_type.column +38 -0
- data/data/mime.docs.column +38 -0
- data/data/mime.encoding.column +38 -0
- data/data/mime.flags.column +42 -4
- data/data/mime.friendly.column +38 -0
- data/data/mime.pext.column +38 -0
- data/data/mime.spri.column +0 -0
- data/data/mime.use_instead.column +38 -0
- data/data/mime.xrefs.column +59 -21
- data/lib/mime/types/data.rb +1 -1
- data/licences/dco.txt +34 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 400780b92e1f1f3052a7cdb790a6401a4a5f264925ad2aad9b8ecc6fef8ac07f
|
|
4
|
+
data.tar.gz: b88ec153a0f99186cd7d0156675ae4b00ac3772f26799f307be08f517de8fb2f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 25027c8dcf66ef4f4087630376ff5daa7a6cc54424787488b08e81c815572556033486c9a005c755e7bbd3e5242bcc929856f93b562d6b19382376f59c2a71e2
|
|
7
|
+
data.tar.gz: c21428612e575f6395e997b3f81c60c37ca7e44ee92a4518acba1eab35254d0e6488288e4221a223f69a3dab90deb9385a393af18cf1d30808a91e6a94dd0fe2
|
data/CHANGELOG.md
CHANGED
|
@@ -2,75 +2,93 @@
|
|
|
2
2
|
|
|
3
3
|
<!-- automatic-release -->
|
|
4
4
|
|
|
5
|
-
## 3.
|
|
5
|
+
## 3.2026.0113 / 2026-01-13
|
|
6
6
|
|
|
7
7
|
- Updated registry entries from the IANA [media registry][registry] and
|
|
8
8
|
[provisional media registry][provisional] and the
|
|
9
9
|
[Apache Tika media registry][tika] as of the release date.
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## 3.2026.0106 / 2026-01-06
|
|
13
|
+
|
|
14
|
+
- Updated registry entries from the IANA [media registry][registry] and
|
|
15
|
+
[provisional media registry][provisional] and the
|
|
16
|
+
[Apache Tika media registry][tika] as of the release date.
|
|
13
17
|
|
|
14
|
-
- Removed the [Apache httpd media registry][httpd] from automatic updates.
|
|
15
|
-
It is currently failing and no longer provides useful data compared to
|
|
16
|
-
other sources.
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
|
|
20
|
+
- Manual contributions now require `Signed-off-by` trailers for assertion of the
|
|
21
|
+
[Developer Certificate of Origin][dco]. More details will be added in the
|
|
22
|
+
coming weeks.
|
|
23
|
+
|
|
24
|
+
- Added `application/microdata+json`, `application/speculationrules+json`,
|
|
25
|
+
`text/event-stream` and `text/ping` from the [WHATWG HTML spec][whatwg]
|
|
26
|
+
|
|
27
|
+
## 3.2025.0924 / 2025-09-24
|
|
19
28
|
|
|
20
29
|
- Updated registry entries from the IANA [media registry][registry] and
|
|
21
|
-
[provisional media registry][provisional]
|
|
22
|
-
|
|
30
|
+
[provisional media registry][provisional] and the
|
|
31
|
+
[Apache Tika media registry][tika] as of the release date.
|
|
23
32
|
|
|
33
|
+
- Removed the [Apache httpd media registry][httpd] from automatic updates. It is
|
|
34
|
+
currently failing and no longer provides useful data compared to other
|
|
35
|
+
sources.
|
|
24
36
|
|
|
25
|
-
## 3.2025.
|
|
37
|
+
## 3.2025.0916 / 2025-09-16
|
|
26
38
|
|
|
27
39
|
- Updated registry entries from the IANA [media registry][registry] and
|
|
28
|
-
[provisional media registry][provisional], the
|
|
29
|
-
|
|
40
|
+
[provisional media registry][provisional], the
|
|
41
|
+
[Apache httpd media registry][httpd], and the
|
|
42
|
+
[Apache Tika media registry][tika] as of the release date.
|
|
43
|
+
|
|
44
|
+
## 3.2025.0909 / 2025-09-09
|
|
30
45
|
|
|
46
|
+
- Updated registry entries from the IANA [media registry][registry] and
|
|
47
|
+
[provisional media registry][provisional], the
|
|
48
|
+
[Apache httpd media registry][httpd], and the
|
|
49
|
+
[Apache Tika media registry][tika] as of the release date.
|
|
31
50
|
|
|
32
51
|
## 3.2025.0902 / 2025-09-02
|
|
33
52
|
|
|
34
53
|
- Updated registry entries from the IANA [media registry][registry] and
|
|
35
|
-
[provisional media registry][provisional], the
|
|
36
|
-
|
|
37
|
-
|
|
54
|
+
[provisional media registry][provisional], the
|
|
55
|
+
[Apache httpd media registry][httpd], and the
|
|
56
|
+
[Apache Tika media registry][tika] as of the release date.
|
|
38
57
|
|
|
39
58
|
## 3.2025.0826 / 2025-08-26
|
|
40
59
|
|
|
41
60
|
- Updated registry entries from the IANA [media registry][registry] and
|
|
42
|
-
[provisional media registry][provisional], the
|
|
43
|
-
|
|
44
|
-
|
|
61
|
+
[provisional media registry][provisional], the
|
|
62
|
+
[Apache httpd media registry][httpd], and the
|
|
63
|
+
[Apache Tika media registry][tika] as of the release date.
|
|
45
64
|
|
|
46
65
|
## 3.2025.0819 / 2025-08-19
|
|
47
66
|
|
|
48
67
|
- Updated registry entries from the IANA [media registry][registry] and
|
|
49
|
-
[provisional media registry][provisional], the
|
|
50
|
-
|
|
51
|
-
|
|
68
|
+
[provisional media registry][provisional], the
|
|
69
|
+
[Apache httpd media registry][httpd], and the
|
|
70
|
+
[Apache Tika media registry][tika] as of the release date.
|
|
52
71
|
|
|
53
72
|
## 3.2025.0812 / 2025-08-12
|
|
54
73
|
|
|
55
74
|
- Updated registry entries from the IANA [media registry][registry] and
|
|
56
|
-
[provisional media registry][provisional], the
|
|
57
|
-
|
|
58
|
-
|
|
75
|
+
[provisional media registry][provisional], the
|
|
76
|
+
[Apache httpd media registry][httpd], and the
|
|
77
|
+
[Apache Tika media registry][tika] as of the release date.
|
|
59
78
|
|
|
60
79
|
## 3.2025.0805 / 2025-08-05
|
|
61
80
|
|
|
62
81
|
- Updated registry entries from the IANA [media registry][registry] and
|
|
63
|
-
[provisional media registry][provisional], the
|
|
64
|
-
|
|
65
|
-
|
|
82
|
+
[provisional media registry][provisional], the
|
|
83
|
+
[Apache httpd media registry][httpd], and the
|
|
84
|
+
[Apache Tika media registry][tika] as of the release date.
|
|
66
85
|
|
|
67
86
|
## 3.2025.0729 / 2025-07-29
|
|
68
87
|
|
|
69
88
|
- Updated registry entries from the IANA [media registry][registry] and
|
|
70
|
-
[provisional media registry][provisional], the
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
89
|
+
[provisional media registry][provisional], the
|
|
90
|
+
[Apache httpd media registry][httpd], and the
|
|
91
|
+
[Apache Tika media registry][tika] as of the release date.
|
|
74
92
|
|
|
75
93
|
- Remove `.doc` from `text/plain`: The use of `.doc` for `text/plain` documents
|
|
76
94
|
is mostly a holdover from VAX VMS where the default wasn't `.txt` but `.doc`.
|
|
@@ -710,6 +728,7 @@
|
|
|
710
728
|
`text/plain`.
|
|
711
729
|
|
|
712
730
|
[code of conduct]: CODE_OF_CONDUCT.md
|
|
731
|
+
[dco]: https://developercertificate.org
|
|
713
732
|
[httpd]: https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
|
|
714
733
|
[issue-18]: https://github.com/mime-types/mime-types-data/issues/18
|
|
715
734
|
[issue-22]: https://github.com/mime-types/mime-types-data/issues/22
|
|
@@ -758,3 +777,4 @@
|
|
|
758
777
|
[ruby-mime-types#99]: https://github.com/mime-types/ruby-mime-types/pull/99
|
|
759
778
|
[tika]: https://github.com/apache/tika/blob/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
|
|
760
779
|
[tp]: https://guides.rubygems.org/trusted-publishing/
|
|
780
|
+
[whatwg]: https://html.spec.whatwg.org/multipage/iana.html#text/event-stream
|
data/CODE_OF_CONDUCT.md
CHANGED
|
@@ -1,128 +1,166 @@
|
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
|
1
|
+
# Contributor Covenant 3.0 Code of Conduct
|
|
2
2
|
|
|
3
3
|
## Our Pledge
|
|
4
4
|
|
|
5
|
-
We
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
identity
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
or
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
5
|
+
We pledge to make our community welcoming, safe, and equitable for all.
|
|
6
|
+
|
|
7
|
+
We are committed to fostering an environment that respects and promotes the
|
|
8
|
+
dignity, rights, and contributions of all individuals, regardless of
|
|
9
|
+
characteristics including race, ethnicity, caste, color, age, physical
|
|
10
|
+
characteristics, neurodiversity, disability, sex or gender, gender identity or
|
|
11
|
+
expression, sexual orientation, language, philosophy or religion, national or
|
|
12
|
+
social origin, socio-economic position, level of education, or other status. The
|
|
13
|
+
same privileges of participation are extended to everyone who participates in
|
|
14
|
+
good faith and in accordance with this Covenant.
|
|
15
|
+
|
|
16
|
+
## Encouraged Behaviors
|
|
17
|
+
|
|
18
|
+
While acknowledging differences in social norms, we all strive to meet our
|
|
19
|
+
community's expectations for positive behavior. We also understand that our
|
|
20
|
+
words and actions may be interpreted differently than we intend based on
|
|
21
|
+
culture, background, or native language.
|
|
22
|
+
|
|
23
|
+
With these considerations in mind, we agree to behave mindfully toward each
|
|
24
|
+
other and act in ways that center our shared values, including:
|
|
25
|
+
|
|
26
|
+
1. Respecting the **purpose of our community**, our activities, and our ways of
|
|
27
|
+
gathering.
|
|
28
|
+
2. Engaging **kindly and honestly** with others.
|
|
29
|
+
3. Respecting **different viewpoints** and experiences.
|
|
30
|
+
4. **Taking responsibility** for our actions and contributions.
|
|
31
|
+
5. Gracefully giving and accepting **constructive feedback**.
|
|
32
|
+
6. Committing to **repairing harm** when it occurs.
|
|
33
|
+
7. Behaving in other ways that promote and sustain the **well-being of our
|
|
34
|
+
community**.
|
|
35
|
+
|
|
36
|
+
## Restricted Behaviors
|
|
37
|
+
|
|
38
|
+
We agree to restrict the following behaviors in our community. Instances,
|
|
39
|
+
threats, and promotion of these behaviors are violations of this Code of
|
|
40
|
+
Conduct.
|
|
41
|
+
|
|
42
|
+
1. **Harassment.** Violating explicitly expressed boundaries or engaging in
|
|
43
|
+
unnecessary personal attention after any clear request to stop.
|
|
44
|
+
2. **Character attacks.** Making insulting, demeaning, or pejorative comments
|
|
45
|
+
directed at a community member or group of people.
|
|
46
|
+
3. **Stereotyping or discrimination.** Characterizing anyone’s personality or
|
|
47
|
+
behavior on the basis of immutable identities or traits.
|
|
48
|
+
4. **Sexualization.** Behaving in a way that would generally be considered
|
|
49
|
+
inappropriately intimate in the context or purpose of the community.
|
|
50
|
+
5. **Violating confidentiality**. Sharing or acting on someone's personal or
|
|
51
|
+
private information without their permission.
|
|
52
|
+
6. **Endangerment.** Causing, encouraging, or threatening violence or other harm
|
|
53
|
+
toward any person or group.
|
|
54
|
+
7. Behaving in other ways that **threaten the well-being** of our community.
|
|
55
|
+
|
|
56
|
+
### Other Restrictions
|
|
57
|
+
|
|
58
|
+
1. **Misleading identity.** Impersonating someone else for any reason, or
|
|
59
|
+
pretending to be someone else to evade enforcement actions.
|
|
60
|
+
2. **Failing to credit sources.** Not properly crediting the sources of content
|
|
61
|
+
you contribute.
|
|
62
|
+
3. **Promotional materials**. Sharing marketing or other commercial content in a
|
|
63
|
+
way that is outside the norms of the community.
|
|
64
|
+
4. **Irresponsible communication.** Failing to responsibly present content which
|
|
65
|
+
includes, links or describes any other restricted behaviors.
|
|
66
|
+
|
|
67
|
+
## Reporting an Issue
|
|
68
|
+
|
|
69
|
+
Tensions can occur between community members even when they are trying their
|
|
70
|
+
best to collaborate. Not every conflict represents a code of conduct violation,
|
|
71
|
+
and this Code of Conduct reinforces encouraged behaviors and norms that can help
|
|
72
|
+
avoid conflicts and minimize harm.
|
|
73
|
+
|
|
74
|
+
When an incident does occur, it is important to report it promptly. To report a
|
|
75
|
+
possible violation, create a [private security advisory][advisory] — violations
|
|
76
|
+
of this code of conduct are considered security vulnerabilities.
|
|
77
|
+
|
|
78
|
+
Community Moderators take reports of violations seriously and will make every
|
|
79
|
+
effort to respond in a timely manner. They will investigate all reports of code
|
|
80
|
+
of conduct violations, reviewing messages, logs, and recordings, or interviewing
|
|
81
|
+
witnesses and other participants. Community Moderators will keep investigation
|
|
82
|
+
and enforcement actions as transparent as possible while prioritizing safety and
|
|
83
|
+
confidentiality. In order to honor these values, enforcement actions are carried
|
|
84
|
+
out in private with the involved parties, but communicating to the whole
|
|
85
|
+
community may be part of a mutually agreed upon resolution.
|
|
86
|
+
|
|
87
|
+
## Addressing and Repairing Harm
|
|
88
|
+
|
|
89
|
+
If an investigation by the Community Moderators finds that this Code of Conduct
|
|
90
|
+
has been violated, the following enforcement ladder may be used to determine how
|
|
91
|
+
best to repair harm, based on the incident's impact on the individuals involved
|
|
92
|
+
and the community as a whole. Depending on the severity of a violation, lower
|
|
93
|
+
rungs on the ladder may be skipped.
|
|
94
|
+
|
|
95
|
+
1. Warning
|
|
96
|
+
1. Event: A violation involving a single incident or series of incidents.
|
|
97
|
+
2. Consequence: A private, written warning from the Community Moderators.
|
|
98
|
+
3. Repair: Examples of repair include a private written apology,
|
|
99
|
+
acknowledgement of responsibility, and seeking clarification on
|
|
100
|
+
expectations.
|
|
101
|
+
|
|
102
|
+
2. Temporarily Limited Activities
|
|
103
|
+
1. Event: A repeated incidence of a violation that previously resulted in a
|
|
104
|
+
warning, or the first incidence of a more serious violation.
|
|
105
|
+
2. Consequence: A private, written warning with a time-limited cooldown
|
|
106
|
+
period designed to underscore the seriousness of the situation and give
|
|
107
|
+
the community members involved time to process the incident. The cooldown
|
|
108
|
+
period may be limited to particular communication channels or interactions
|
|
109
|
+
with particular community members.
|
|
110
|
+
3. Repair: Examples of repair may include making an apology, using the
|
|
111
|
+
cooldown period to reflect on actions and impact, and being thoughtful
|
|
112
|
+
about re-entering community spaces after the period is over.
|
|
113
|
+
|
|
114
|
+
3. Temporary Suspension
|
|
115
|
+
1. Event: A pattern of repeated violation which the Community Moderators have
|
|
116
|
+
tried to address with warnings, or a single serious violation.
|
|
117
|
+
2. Consequence: A private written warning with conditions for return from
|
|
118
|
+
suspension. In general, temporary suspensions give the person being
|
|
119
|
+
suspended time to reflect upon their behavior and possible corrective
|
|
120
|
+
actions.
|
|
121
|
+
3. Repair: Examples of repair include respecting the spirit of the
|
|
122
|
+
suspension, meeting the specified conditions for return, and being
|
|
123
|
+
thoughtful about how to reintegrate with the community when the suspension
|
|
124
|
+
is lifted.
|
|
125
|
+
|
|
126
|
+
4. Permanent Ban
|
|
127
|
+
1. Event: A pattern of repeated code of conduct violations that other steps
|
|
128
|
+
on the ladder have failed to resolve, or a violation so serious that the
|
|
129
|
+
Community Moderators determine there is no way to keep the community safe
|
|
130
|
+
with this person as a member.
|
|
131
|
+
2. Consequence: Access to all community spaces, tools, and communication
|
|
132
|
+
channels is removed. In general, permanent bans should be rarely used,
|
|
133
|
+
should have strong reasoning behind them, and should only be resorted to
|
|
134
|
+
if working through other remedies has failed to change the behavior.
|
|
135
|
+
3. Repair: There is no possible repair in cases of this severity.
|
|
136
|
+
|
|
137
|
+
This enforcement ladder is intended as a guideline. It does not limit the
|
|
138
|
+
ability of Community Managers to use their discretion and judgment, in keeping
|
|
139
|
+
with the best interests of our community.
|
|
50
140
|
|
|
51
141
|
## Scope
|
|
52
142
|
|
|
53
143
|
This Code of Conduct applies within all community spaces, and also applies when
|
|
54
|
-
an individual is officially representing the community in public
|
|
55
|
-
Examples of representing our community include using an official email
|
|
56
|
-
posting via an official social media account, or acting as an appointed
|
|
144
|
+
an individual is officially representing the community in public or other
|
|
145
|
+
spaces. Examples of representing our community include using an official email
|
|
146
|
+
address, posting via an official social media account, or acting as an appointed
|
|
57
147
|
representative at an online or offline event.
|
|
58
148
|
|
|
59
|
-
## Enforcement
|
|
60
|
-
|
|
61
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
62
|
-
reported to the community leaders responsible for enforcement at [INSERT CONTACT
|
|
63
|
-
METHOD]. All complaints will be reviewed and investigated promptly and fairly.
|
|
64
|
-
|
|
65
|
-
All community leaders are obligated to respect the privacy and security of the
|
|
66
|
-
reporter of any incident.
|
|
67
|
-
|
|
68
|
-
## Enforcement Guidelines
|
|
69
|
-
|
|
70
|
-
Community leaders will follow these Community Impact Guidelines in determining
|
|
71
|
-
the consequences for any action they deem in violation of this Code of Conduct:
|
|
72
|
-
|
|
73
|
-
### 1. Correction
|
|
74
|
-
|
|
75
|
-
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
76
|
-
unprofessional or unwelcome in the community.
|
|
77
|
-
|
|
78
|
-
**Consequence**: A private, written warning from community leaders, providing
|
|
79
|
-
clarity around the nature of the violation and an explanation of why the
|
|
80
|
-
behavior was inappropriate. A public apology may be requested.
|
|
81
|
-
|
|
82
|
-
### 2. Warning
|
|
83
|
-
|
|
84
|
-
**Community Impact**: A violation through a single incident or series of
|
|
85
|
-
actions.
|
|
86
|
-
|
|
87
|
-
**Consequence**: A warning with consequences for continued behavior. No
|
|
88
|
-
interaction with the people involved, including unsolicited interaction with
|
|
89
|
-
those enforcing the Code of Conduct, for a specified period of time. This
|
|
90
|
-
includes avoiding interactions in community spaces as well as external channels
|
|
91
|
-
like social media. Violating these terms may lead to a temporary or permanent
|
|
92
|
-
ban.
|
|
93
|
-
|
|
94
|
-
### 3. Temporary Ban
|
|
95
|
-
|
|
96
|
-
**Community Impact**: A serious violation of community standards, including
|
|
97
|
-
sustained inappropriate behavior.
|
|
98
|
-
|
|
99
|
-
**Consequence**: A temporary ban from any sort of interaction or public
|
|
100
|
-
communication with the community for a specified period of time. No public or
|
|
101
|
-
private interaction with the people involved, including unsolicited interaction
|
|
102
|
-
with those enforcing the Code of Conduct, is allowed during this period.
|
|
103
|
-
Violating these terms may lead to a permanent ban.
|
|
104
|
-
|
|
105
|
-
### 4. Permanent Ban
|
|
106
|
-
|
|
107
|
-
**Community Impact**: Demonstrating a pattern of violation of community
|
|
108
|
-
standards, including sustained inappropriate behavior, harassment of an
|
|
109
|
-
individual, or aggression toward or disparagement of classes of individuals.
|
|
110
|
-
|
|
111
|
-
**Consequence**: A permanent ban from any sort of public interaction within the
|
|
112
|
-
community.
|
|
113
|
-
|
|
114
149
|
## Attribution
|
|
115
150
|
|
|
116
|
-
This Code of Conduct is adapted from the
|
|
117
|
-
|
|
118
|
-
<https://www.contributor-covenant.org/version/2/1/code_of_conduct.html>.
|
|
151
|
+
This Code of Conduct is adapted from the Contributor Covenant, version 3.0,
|
|
152
|
+
permanently available at <https://www.contributor-covenant.org/version/3/0/>.
|
|
119
153
|
|
|
120
|
-
|
|
121
|
-
|
|
154
|
+
Contributor Covenant is stewarded by the Organization for Ethical Source and
|
|
155
|
+
licensed under CC BY-SA 4.0. To view a copy of this license, visit
|
|
156
|
+
<https://creativecommons.org/licenses/by-sa/4.0/>.
|
|
122
157
|
|
|
123
|
-
For answers to common questions about
|
|
124
|
-
<https://www.contributor-covenant.org/faq>. Translations are
|
|
125
|
-
<https://www.contributor-covenant.org/translations>.
|
|
158
|
+
For answers to common questions about Contributor Covenant, see the FAQ at
|
|
159
|
+
<https://www.contributor-covenant.org/faq>. Translations are provided at
|
|
160
|
+
<https://www.contributor-covenant.org/translations>. Additional enforcement and
|
|
161
|
+
community guideline resources can be found at
|
|
162
|
+
<https://www.contributor-covenant.org/resources>. The enforcement ladder was
|
|
163
|
+
inspired by the work of [Mozilla’s code of conduct team][inclusion].
|
|
126
164
|
|
|
127
|
-
[
|
|
128
|
-
[
|
|
165
|
+
[advisory]: https://github.com/mime-types/ruby-mime-types/security/advisories/new
|
|
166
|
+
[inclusion]: https://github.com/mozilla/inclusion
|
data/CONTRIBUTING.md
CHANGED
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
# Contributing
|
|
2
2
|
|
|
3
3
|
Contribution to mime-types-data is encouraged in any form: a bug report, new
|
|
4
|
-
MIME type definitions, or additional code to help manage the MIME types.
|
|
5
|
-
|
|
4
|
+
MIME type definitions, or additional code to help manage the MIME types. New
|
|
5
|
+
features should be proposed and discussed in an [issue][issues].
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Before contributing patches, please read the [Licence](./LICENCE.md).
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
MIME::Types data is governed under the
|
|
10
|
+
[Contributor Covenant Code of Conduct][cccoc].
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
into logical chunks as necessary.
|
|
12
|
+
## Code Guidelines
|
|
14
13
|
|
|
15
|
-
|
|
14
|
+
I have several guidelines to contributing code through pull requests:
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
- I use code formatters, static analysis tools, and linting to ensure consistent
|
|
17
|
+
styles and formatting. There should be no warning output from test run
|
|
18
|
+
processes. I use [Standard Ruby][standardrb].
|
|
20
19
|
|
|
21
|
-
-
|
|
20
|
+
- Proposed changes should be on a thoughtfully-named topic branch and organized
|
|
21
|
+
into logical commit chunks as appropriate.
|
|
22
|
+
|
|
23
|
+
- Use [Conventional Commits][conventional] with my
|
|
24
|
+
[conventions](#commit-conventions).
|
|
25
|
+
|
|
26
|
+
- Versions must not be updated in pull requests unless otherwise directed. This
|
|
27
|
+
means that you must not:
|
|
22
28
|
|
|
23
29
|
- Modify `VERSION` in `lib/mime/types/data.rb`. When your patch is accepted
|
|
24
|
-
and a release is made, the version will be updated at that point.
|
|
25
|
-
likely, once merged, your release will be rolled into the next automatic
|
|
26
|
-
release.
|
|
30
|
+
and a release is made, the version will be updated at that point.
|
|
27
31
|
|
|
28
32
|
- Modify `mime-types-data.gemspec`; it is a generated file. (You _may_ use
|
|
29
33
|
`rake gemspec` to regenerate it if your change involves metadata related to
|
|
@@ -31,8 +35,22 @@ are a few DOs and DON'Ts for contributions.
|
|
|
31
35
|
|
|
32
36
|
- Modify the `Gemfile`.
|
|
33
37
|
|
|
34
|
-
|
|
35
|
-
|
|
38
|
+
- Type updates may only be performed on the YAML files in `types/`. This means
|
|
39
|
+
that no files may be modified in `data/`. Any changes to be captured here will
|
|
40
|
+
be automatically updated on the next release.
|
|
41
|
+
|
|
42
|
+
- Documentation should be added or updated as appropriate for new or updated
|
|
43
|
+
functionality. The documentation is RDoc; mime-types-data does not use
|
|
44
|
+
extensions that may be present in alternative documentation generators.
|
|
45
|
+
|
|
46
|
+
- All GitHub Actions checks marked as required must pass before a pull request
|
|
47
|
+
may be accepted and merged.
|
|
48
|
+
|
|
49
|
+
- Add your name or GitHub handle to `CONTRIBUTORS.md` and a record in the
|
|
50
|
+
`CHANGELOG.md` as a separate commit from your main change. (Follow the style
|
|
51
|
+
in the `CHANGELOG.md` and provide a link to your PR.)
|
|
52
|
+
|
|
53
|
+
- Include your DCO sign-off in each commit message (see [LICENCE](LICENCE.md)).
|
|
36
54
|
|
|
37
55
|
Although mime-types-data was extracted from the [Ruby mime-types][rmt] gem and
|
|
38
56
|
the support files are written in Ruby, the _target_ of mime-types-data is any
|
|
@@ -76,12 +94,12 @@ There are other fields that can be added, matching the fields discussed in the
|
|
|
76
94
|
documentation for MIME::Type. Pull requests for MIME types should just contain
|
|
77
95
|
the changes to the YAML files for the new or modified MIME types; I will convert
|
|
78
96
|
the YAML files to JSON prior to a new release. I would rather not have to verify
|
|
79
|
-
that the JSON matches the YAML changes, which is why it is not necessary to
|
|
80
|
-
|
|
97
|
+
that the JSON matches the YAML changes, which is why it is not necessary to run
|
|
98
|
+
conversion for the pull request.
|
|
81
99
|
|
|
82
100
|
If you are making a change for a private fork, use `rake convert:yaml:json` to
|
|
83
|
-
convert the YAML to JSON
|
|
84
|
-
|
|
101
|
+
convert the YAML to JSON and `rake convert:yaml:columnar` to convert it to the
|
|
102
|
+
default columnar format.
|
|
85
103
|
|
|
86
104
|
### Updating Types from the IANA or Apache Lists
|
|
87
105
|
|
|
@@ -108,11 +126,48 @@ customize provisional types (such as with extensions) are considered lower
|
|
|
108
126
|
priority. It is recommended that any updates required to the data be performed
|
|
109
127
|
in your application if you require provisional types.
|
|
110
128
|
|
|
129
|
+
## Commit Conventions
|
|
130
|
+
|
|
131
|
+
MIMe::Types has adopted a variation of the Conventional Commits format for
|
|
132
|
+
commit messages. The following types are permitted:
|
|
133
|
+
|
|
134
|
+
| Type | Purpose |
|
|
135
|
+
| ------- | ----------------------------------------------------- |
|
|
136
|
+
| `feat` | A new feature |
|
|
137
|
+
| `fix` | A bug fix |
|
|
138
|
+
| `chore` | A code change that is neither a bug fix nor a feature |
|
|
139
|
+
| `docs` | Documentation updates |
|
|
140
|
+
| `deps` | Dependency updates, including GitHub Actions. |
|
|
141
|
+
| `types` | Manually contributed MIME::Types |
|
|
142
|
+
|
|
143
|
+
I encourage the use of [Tim Pope's][tpope-qcm] or [Chris Beam's][cbeams]
|
|
144
|
+
guidelines on the writing of commit messages
|
|
145
|
+
|
|
146
|
+
I require the use of [git][trailers1] [trailers][trailers2] for specific
|
|
147
|
+
additional metadata and strongly encourage it for others. The conditionally
|
|
148
|
+
required metadata trailers are:
|
|
149
|
+
|
|
150
|
+
- `Breaking-Change`: if the change is a breaking change. **Do not** use the
|
|
151
|
+
shorthand form (`feat!(scope)`) or `BREAKING CHANGE`.
|
|
152
|
+
|
|
153
|
+
- `Signed-off-by`: this is required for all developers except me, as outlined in
|
|
154
|
+
the [Licence](./LICENCE.md#developer-certificate-of-origin).
|
|
155
|
+
|
|
156
|
+
- `Fixes` or `Resolves`: If a change fixes one or more open [issues][issues],
|
|
157
|
+
that issue must be included in the `Fixes` or `Resolves` trailer. Multiple
|
|
158
|
+
issues should be listed comma separated in the same trailer:
|
|
159
|
+
`Fixes: #1, #5, #7`, but _may_ appear in separate trailers. While both `Fixes`
|
|
160
|
+
and `Resolves` are synonyms, only _one_ should be used in a given commit or
|
|
161
|
+
pull request.
|
|
162
|
+
|
|
163
|
+
- `Related to`: If a change does not fix an issue, those issue references should
|
|
164
|
+
be included in this trailer.
|
|
165
|
+
|
|
111
166
|
## The Release Process
|
|
112
167
|
|
|
113
|
-
The release process is
|
|
114
|
-
|
|
115
|
-
|
|
168
|
+
The release process is completely automated, where upstream MIME types will be
|
|
169
|
+
updated weekly (on Tuesdays) and be presented in a reviewable pull request. Once
|
|
170
|
+
merged, the release will be automatically published to RubyGems.
|
|
116
171
|
|
|
117
172
|
With the addition of [trusted publishing][tp], there should no longer be a need
|
|
118
173
|
for manual releases outside of the update cycle. Pull requests merged between
|
|
@@ -141,10 +196,18 @@ performed manually.
|
|
|
141
196
|
|
|
142
197
|
This list is based on issue [#18][issue-18].
|
|
143
198
|
|
|
199
|
+
[cbeams]: https://cbea.ms/git-commit/
|
|
200
|
+
[cccoc]: ./CODE_OF_CONDUCT.md
|
|
201
|
+
[conventional]: https://www.conventionalcommits.org/en/v1.0.0/
|
|
202
|
+
[dco]: licences/dco.txt
|
|
144
203
|
[hoe]: https://github.com/seattlerb/hoe
|
|
145
204
|
[issue-18]: https://github.com/mime-types/mime-types-data/issues/18
|
|
146
|
-
[
|
|
205
|
+
[issues]: https://github.com/mime-types/mime-types-data/issues
|
|
206
|
+
[minitest]: https://github.com/seattlerb/minitest
|
|
147
207
|
[release-gem]: https://github.com/rubygems/release-gem
|
|
148
208
|
[rmt]: https://github.com/mime-types/ruby-mime-types/
|
|
149
209
|
[standardrb]: https://github.com/standardrb/standard
|
|
150
210
|
[tp]: https://guides.rubygems.org/trusted-publishing/
|
|
211
|
+
[tpope-qcm]: https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
|
|
212
|
+
[trailers1]: https://git-scm.com/docs/git-interpret-trailers
|
|
213
|
+
[trailers2]: https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---trailerlttokengtltvaluegt
|
data/Manifest.txt
CHANGED
data/Rakefile
CHANGED
data/SECURITY.md
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
# mime-types-data Security
|
|
2
2
|
|
|
3
|
-
## Security
|
|
3
|
+
## LLM-Generated Security Report Policy
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
Absolutely no security reports will be accepted that have been generated by LLM
|
|
6
|
+
agents.
|
|
7
|
+
|
|
8
|
+
## Supported Versions
|
|
9
|
+
|
|
10
|
+
Security reports are accepted for the most recent major release, with a limited
|
|
11
|
+
window of support after the initial major release.
|
|
12
|
+
|
|
13
|
+
- Bug reports will be accepted up to three months after release.
|
|
14
|
+
- Security reports will be accepted up to six months after release.
|
|
15
|
+
|
|
16
|
+
All issues raised must be demonstrated on the minimum supported Ruby version.
|
|
17
|
+
|
|
18
|
+
## Reporting a Vulnerability
|
|
19
|
+
|
|
20
|
+
Report vulnerabilities via the [Tidelift security contact][tidelift]. Tidelift
|
|
21
|
+
will coordinate the fix and disclosure.
|
|
22
|
+
|
|
23
|
+
Alternatively, create a [private vulnerability report][advisory] with GitHub.
|
|
24
|
+
|
|
25
|
+
[advisory]: https://github.com/halostatue/mime-types-data/security/advisories/new
|
|
26
|
+
[tidelift]: https://tidelift.com/security
|