mime-types-data 3.2026.1027 → 3.2026.1129

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dfbd9a80e9748fef85fae1b8f51ec64389ac7d474cbf3f5b508c06a718eeaa07
4
- data.tar.gz: abd8ff57604d11829320a963b9461c8e6d9821dcb2e9b49a758fbf8005904a9e
3
+ metadata.gz: b8b02ae949b4a02f1281ec696c4f76c3f2709486fecbe0ca196b6c3550696247
4
+ data.tar.gz: d1d4d447cf125ad15974dcc6e887c65cd5dd39cb7f265cbdfda50f93dd7422bc
5
5
  SHA512:
6
- metadata.gz: d50ba3ada24819dca76aeda1c1854041e91bac9851f816bb2697e108cb75582e0f81f50490efa0dea8042583f8f11722d8b6225218066384ad53269791f19248
7
- data.tar.gz: c350db598984e333d468467f1a2722f9cbde22f9288368d57557658336604afde910118a73ee28031bae2e06500417b9070f859a844a96576b6f29b7f95aa21f
6
+ metadata.gz: ab7f9ebb52af13b7d4b8b332a3c2c6ba31f6e8aa3eb0bb39850627269c8d986f345ceb2dc6ee95ecc500367b72c9d95aba05b6ab28823a0dfe0ef9d270714b45
7
+ data.tar.gz: 0db3c7fe453125e1b2193f04e87010e729d344cfc5b961aa04e9ea4b22995015289dc32b2fdd419289378cb6375851a568aca895f30ad182799c3d966a38a713
data/AI_POLICY.md ADDED
@@ -0,0 +1,106 @@
1
+ # Human Responsibility
2
+
3
+ This policy covers the responsibility of humans when contributing to this
4
+ project, with or without generative AI and AI-assisted tooling of any kind.
5
+
6
+ > **Only humans are authors. Everything else is a tool.**
7
+
8
+ **You** take full responsibility for your contribution the moment you open a
9
+ pull request or an issue. Do not blame or elevate tools: they are neither
10
+ excuses nor co-authors and cannot be held accountable. Submitting content you
11
+ cannot explain, defend, or take responsibility for will result in your
12
+ contribution being rejected.
13
+
14
+ ## AI Usage Policy
15
+
16
+ This project has strict rules for AI usage[^1]:
17
+
18
+ - **The human author MUST fully understand all contributions.** If you can't
19
+ explain the issue, feature, or code contribution without the aid of AI
20
+ tools[^2], do not contribute to this project.
21
+
22
+ - **All AI usage in any form MUST be disclosed.** State the agent harness used
23
+ (Claude Code, Cursor, Amp), the model and other AI tools. Describe in text
24
+ the extent of AI-assistance.
25
+
26
+ - **Issues, discussions, and pull requests MUST be driven by the human, even
27
+ with AI assistance.** Content generated with AI must have been reviewed _and
28
+ edited_ by a human before submission. AI tools produce overly verbose and
29
+ noisy paragraphs distracting from the main point. Humans must trim this
30
+ down.
31
+
32
+ - **No AI-generated media is allowed (art, images, videos, audio, etc.).**
33
+ Text and code are the only acceptable AI-generated content, per the other
34
+ rules in this policy.
35
+
36
+ - **Bad AI drivers WILL face consequences.** People who produce bad
37
+ contributions that are clearly AI (slop) will face sanctions: contributions
38
+ closed, denouncement with [vouch][vouch], project bans, or even bans across
39
+ multiple projects for sufficiently bad actors.
40
+
41
+ ### Maintainers
42
+
43
+ Maintainers are exempt from AI disclosure, but are encouraged to disclose its
44
+ use anyway.
45
+
46
+ ### Disclosure
47
+
48
+ AI tool disclosure is professional practice. It does not make a weak
49
+ contribution acceptable or a strong one suspect. It helps calibrate review.
50
+ Add AI-assistance notes to the body of your issue, comment, or pull request if
51
+ used. Add an `Assisted-by` git trailer for every commit involving the use of
52
+ AI tooling.
53
+
54
+ ```text
55
+ Assisted-by: <agent harness> [model] [tool…]
56
+ ```
57
+
58
+ Agents **MUST NOT** be present in `Co-authored-by` or `Signed-off-by`
59
+ trailers.
60
+
61
+ ### Autonomous Agents and Reverse Centaurs
62
+
63
+ Autonomous coding agents and [reverse centaurs][centaur] are not permitted.
64
+ The human is the director and owner of the work, not a submit button.
65
+
66
+ ## Human-Driven AI Contributions Are Welcome
67
+
68
+ The maintainer of this project uses AI-assisted tooling frequently. This is
69
+ not an endorsement of these tools: there is no ethical frontier model
70
+ provider, and the infrastructure powering these tools carries real
71
+ externalized costs that affect communities and ecosystems that never
72
+ consented. The tools are useful. The organizations are untrustworthy (but some
73
+ are less worthy of trust than others). [Both of these are true.][critics]
74
+
75
+ Using AI **well** is [rarely faster than writing code by hand][slowly]. AI
76
+ produces first drafts faster, but it has no judgement, taste, or coherence to
77
+ its design. AI frequently produces code that is _wrong but plausible_. AI
78
+ nearly always writes too much: whether three sentences when one would do,
79
+ three paragraphs when two would do, or details that not even a maintainer
80
+ would care about in a comment. It's up to you, the human in the loop, to make
81
+ these choices that AI cannot.
82
+
83
+ You are welcome to contribute to this project with AI tooling, but make sure
84
+ you understand your contribution because **you** are accountable. Make it
85
+ count.
86
+
87
+ > This policy was informed by the [Ghostty AI Policy][ghostty], the
88
+ > [AsyncAPI Generator AI Policy][async] and the essays
89
+ > ["I Am Not a Reverse Centaur"][centaur] by Miguel Grinberg,
90
+ > ["Open Source Was Not Ready for AI-speed Contributions"][ai-speed] by Franck
91
+ > Nijhof, ["Using AI to Write Better Code More Slowly"][slowly] by Nolan
92
+ > Lawson, and ["The LLM Critics Are Right. I Use LLMs Anyway."][critics] by
93
+ > Jeremy Theocharis.
94
+
95
+ [^1]: Adapted from the [Ghostty AI Policy][ghostty]
96
+
97
+ [^2]: AI-assisted translations are always permitted; disclosure is still
98
+ mandatory.
99
+
100
+ [ai-speed]: https://frenck.dev/open-source-was-not-ready-for-ai-speed-contributions/
101
+ [async]: https://github.com/asyncapi/generator/blob/master/apps/generator/docs/ai-policy.md
102
+ [centaur]: https://blog.miguelgrinberg.com/post/i-am-not-a-reverse-centaur
103
+ [critics]: https://www.theocharis.dev/blog/llm-critics-are-right-i-use-llms-anyway/
104
+ [ghostty]: https://github.com/ghostty-org/ghostty/blob/main/AI_POLICY.md
105
+ [slowly]: https://nolanlawson.com/2026/05/25/using-ai-to-write-better-code-more-slowly/
106
+ [vouch]: https://github.com/mitchellh/vouch
data/CHANGELOG.md CHANGED
@@ -2,26 +2,36 @@
2
2
 
3
3
  <!-- automatic-release -->
4
4
 
5
- ## 3.2026.1027 / 2026-10-27
5
+ ## 3.2026.1129 / 2026-11-29
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
- ## 3.2026.1020 / 2026-10-20
12
+ ## 3.2026.1103 / 2026-11-03
13
13
 
14
14
  - Updated registry entries from the IANA [media registry][registry] and
15
15
  [provisional media registry][provisional] and the
16
16
  [Apache Tika media registry][tika] as of the release date.
17
17
 
18
+ ## 3.2026.1027 / 2026-10-27
18
19
 
19
- ## 3.2026.1013 / 2026-10-13
20
+ - Updated registry entries from the IANA [media registry][registry] and
21
+ [provisional media registry][provisional] and the
22
+ [Apache Tika media registry][tika] as of the release date.
23
+
24
+ ## 3.2026.1020 / 2026-10-20
20
25
 
21
26
  - Updated registry entries from the IANA [media registry][registry] and
22
27
  [provisional media registry][provisional] and the
23
28
  [Apache Tika media registry][tika] as of the release date.
24
29
 
30
+ ## 3.2026.1013 / 2026-10-13
31
+
32
+ - Updated registry entries from the IANA [media registry][registry] and
33
+ [provisional media registry][provisional] and the
34
+ [Apache Tika media registry][tika] as of the release date.
25
35
 
26
36
  ## 3.2026.1006 / 2026-10-06
27
37
 
@@ -29,29 +39,24 @@
29
39
  [provisional media registry][provisional] and the
30
40
  [Apache Tika media registry][tika] as of the release date.
31
41
 
32
-
33
42
  ## 3.2026.0929 / 2026-09-29
34
43
 
35
44
  - Updated registry entries from the IANA [media registry][registry] and
36
45
  [provisional media registry][provisional] and the
37
46
  [Apache Tika media registry][tika] as of the release date.
38
47
 
39
-
40
48
  ## 3.2026.0922 / 2026-09-22
41
49
 
42
50
  - Updated registry entries from the IANA [media registry][registry] and
43
51
  [provisional media registry][provisional] and the
44
52
  [Apache Tika media registry][tika] as of the release date.
45
53
 
46
-
47
54
  ## 3.2026.0921 / 2026-09-21
48
55
 
49
56
  - Updated registry entries from the IANA [media registry][registry] and
50
57
  [provisional media registry][provisional] and the
51
58
  [Apache Tika media registry][tika] as of the release date.
52
59
 
53
-
54
-
55
60
  - Upgraded `hoe-halostatue` with a fix for YAML issues.
56
61
 
57
62
  ## 3.2026.0701 / 2026-07-01
@@ -511,9 +516,9 @@
511
516
 
512
517
  - Internal changes:
513
518
 
514
- - Update to latest version of Rubygems for testing.
519
+ - Update to latest version of RubyGems for testing.
515
520
 
516
- - Remove restriction on Pysch version as that does not work well with
521
+ - Remove restriction on Psych version as that does not work well with
517
522
  current Rubies.
518
523
 
519
524
  - Fix a bug with the history generation on automatic updates.
@@ -628,7 +633,8 @@
628
633
  [Apache httpd media registry][httpd] as of the release date.
629
634
 
630
635
  - Added conversion utilities that support the `mini_mime` data format. These
631
- have been ported from the [mini\_mime][mini_mime] repository. [#47][pull-47]
636
+ have been ported from the [`mini_mime`][mini_mime] repository.
637
+ [#47][pull-47]
632
638
 
633
639
  - Added IANA provisional media registries. Added some notes to CONTRIBUTING
634
640
  about the transient nature of the provisional registration data. This was
@@ -767,13 +773,15 @@
767
773
 
768
774
  - Adding `frozen_string_literal: true` to all Ruby files.
769
775
  - Applied some recommended readability and performance suggestions from
770
- Rubocop. Ignored some style recommendations, too.
776
+ RuboCop. Ignored some style recommendations, too.
771
777
  - Replaced some cases of `foo.bar rescue nil` with `foo&.bar`.
772
778
 
773
779
  ## 3.2015.1120 / 2015-11-20
774
780
 
775
781
  - Extracted from [ruby-mime-types][rmt].
782
+
776
783
  - Added a [Code of Conduct][Code of Conduct].
784
+
777
785
  - The versioning has changed to be semantic on format plus date in two parts.
778
786
 
779
787
  - All registry formats have been updated to remove deprecated data.
data/CODE_OF_CONDUCT.md CHANGED
@@ -9,9 +9,9 @@ dignity, rights, and contributions of all individuals, regardless of
9
9
  characteristics including race, ethnicity, caste, color, age, physical
10
10
  characteristics, neurodiversity, disability, sex or gender, gender identity or
11
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.
12
+ social origin, socio-economic position, level of education, or other status.
13
+ The same privileges of participation are extended to everyone who participates
14
+ in good faith and in accordance with this Covenant.
15
15
 
16
16
  ## Encouraged Behaviors
17
17
 
@@ -23,8 +23,8 @@ culture, background, or native language.
23
23
  With these considerations in mind, we agree to behave mindfully toward each
24
24
  other and act in ways that center our shared values, including:
25
25
 
26
- 1. Respecting the **purpose of our community**, our activities, and our ways of
27
- gathering.
26
+ 1. Respecting the **purpose of our community**, our activities, and our ways
27
+ of gathering.
28
28
  2. Engaging **kindly and honestly** with others.
29
29
  3. Respecting **different viewpoints** and experiences.
30
30
  4. **Taking responsibility** for our actions and contributions.
@@ -43,54 +43,55 @@ Conduct.
43
43
  unnecessary personal attention after any clear request to stop.
44
44
  2. **Character attacks.** Making insulting, demeaning, or pejorative comments
45
45
  directed at a community member or group of people.
46
- 3. **Stereotyping or discrimination.** Characterizing anyone’s personality or
46
+ 3. **Stereotyping or discrimination.** Characterizing anyone's personality or
47
47
  behavior on the basis of immutable identities or traits.
48
48
  4. **Sexualization.** Behaving in a way that would generally be considered
49
49
  inappropriately intimate in the context or purpose of the community.
50
50
  5. **Violating confidentiality**. Sharing or acting on someone's personal or
51
51
  private information without their permission.
52
- 6. **Endangerment.** Causing, encouraging, or threatening violence or other harm
53
- toward any person or group.
52
+ 6. **Endangerment.** Causing, encouraging, or threatening violence or other
53
+ harm toward any person or group.
54
54
  7. Behaving in other ways that **threaten the well-being** of our community.
55
55
 
56
56
  ### Other Restrictions
57
57
 
58
58
  1. **Misleading identity.** Impersonating someone else for any reason, or
59
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.
60
+ 2. **Failing to credit sources.** Not properly crediting the sources of
61
+ content you contribute.
62
+ 3. **Promotional materials**. Sharing marketing or other commercial content in
63
+ a way that is outside the norms of the community.
64
+ 4. **Irresponsible communication.** Failing to responsibly present content
65
+ which includes, links or describes any other restricted behaviors.
66
66
 
67
67
  ## Reporting an Issue
68
68
 
69
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.
70
+ best to collaborate. Not every conflict represents a code of conduct
71
+ violation, and this Code of Conduct reinforces encouraged behaviors and norms
72
+ that can help avoid conflicts and minimize harm.
73
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.
74
+ When an incident does occur, it is important to report it promptly. To report
75
+ a possible violation, create a [private security advisory][advisory] —
76
+ violations of this code of conduct are considered security vulnerabilities.
77
77
 
78
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.
79
+ effort to respond in a timely manner. They will investigate all reports of
80
+ code of conduct violations, reviewing messages, logs, and recordings, or
81
+ interviewing witnesses and other participants. Community Moderators will keep
82
+ investigation and enforcement actions as transparent as possible while
83
+ prioritizing safety and confidentiality. In order to honor these values,
84
+ enforcement actions are carried out in private with the involved parties, but
85
+ communicating to the whole community may be part of a mutually agreed upon
86
+ resolution.
86
87
 
87
88
  ## Addressing and Repairing Harm
88
89
 
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.
90
+ If an investigation by the Community Moderators finds that this Code of
91
+ Conduct has been violated, the following enforcement ladder may be used to
92
+ determine how best to repair harm, based on the incident's impact on the
93
+ individuals involved and the community as a whole. Depending on the severity
94
+ of a violation, lower rungs on the ladder may be skipped.
94
95
 
95
96
  1. Warning
96
97
  1. Event: A violation involving a single incident or series of incidents.
@@ -104,30 +105,30 @@ rungs on the ladder may be skipped.
104
105
  warning, or the first incidence of a more serious violation.
105
106
  2. Consequence: A private, written warning with a time-limited cooldown
106
107
  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.
108
+ the community members involved time to process the incident. The
109
+ cooldown period may be limited to particular communication channels or
110
+ interactions with particular community members.
110
111
  3. Repair: Examples of repair may include making an apology, using the
111
112
  cooldown period to reflect on actions and impact, and being thoughtful
112
113
  about re-entering community spaces after the period is over.
113
114
 
114
115
  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.
116
+ 1. Event: A pattern of repeated violation which the Community Moderators
117
+ have tried to address with warnings, or a single serious violation.
117
118
  2. Consequence: A private written warning with conditions for return from
118
119
  suspension. In general, temporary suspensions give the person being
119
120
  suspended time to reflect upon their behavior and possible corrective
120
121
  actions.
121
122
  3. Repair: Examples of repair include respecting the spirit of the
122
123
  suspension, meeting the specified conditions for return, and being
123
- thoughtful about how to reintegrate with the community when the suspension
124
- is lifted.
124
+ thoughtful about how to reintegrate with the community when the
125
+ suspension is lifted.
125
126
 
126
127
  4. Permanent Ban
127
128
  1. Event: A pattern of repeated code of conduct violations that other steps
128
129
  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.
130
+ Community Moderators determine there is no way to keep the community
131
+ safe with this person as a member.
131
132
  2. Consequence: Access to all community spaces, tools, and communication
132
133
  channels is removed. In general, permanent bans should be rarely used,
133
134
  should have strong reasoning behind them, and should only be resorted to
@@ -140,11 +141,11 @@ with the best interests of our community.
140
141
 
141
142
  ## Scope
142
143
 
143
- This Code of Conduct applies within all community spaces, and also applies when
144
- an individual is officially representing the community in public or other
144
+ This Code of Conduct applies within all community spaces, and also applies
145
+ when an individual is officially representing the community in public or other
145
146
  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
147
- representative at an online or offline event.
147
+ address, posting via an official social media account, or acting as an
148
+ appointed representative at an online or offline event.
148
149
 
149
150
  ## Attribution
150
151
 
@@ -157,10 +158,10 @@ licensed under CC BY-SA 4.0. To view a copy of this license, visit
157
158
 
158
159
  For answers to common questions about Contributor Covenant, see the FAQ at
159
160
  <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
161
+ <https://www.contributor-covenant.org/translations>. Additional enforcement
162
+ and community guideline resources can be found at
162
163
  <https://www.contributor-covenant.org/resources>. The enforcement ladder was
163
- inspired by the work of [Mozilla’s code of conduct team][inclusion].
164
+ inspired by the work of [Mozilla's code of conduct team][inclusion].
164
165
 
165
166
  [advisory]: https://github.com/mime-types/ruby-mime-types/security/advisories/new
166
167
  [inclusion]: https://github.com/mozilla/inclusion
data/CONTRIBUTING.md CHANGED
@@ -4,7 +4,7 @@ Contribution to mime-types-data is encouraged in any form: a bug report, new
4
4
  MIME type definitions, or additional code to help manage the MIME types. New
5
5
  features should be proposed and discussed in an [issue][issues].
6
6
 
7
- Before contributing patches, please read the [Licence](./LICENCE.md).
7
+ Before contributing patches, please read the [Licence](LICENCE.md).
8
8
 
9
9
  MIME::Types data is governed under the
10
10
  [Contributor Covenant Code of Conduct][cccoc].
@@ -13,31 +13,31 @@ MIME::Types data is governed under the
13
13
 
14
14
  I have several guidelines to contributing code through pull requests:
15
15
 
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].
16
+ - I use code formatters, static analysis tools, and linting to ensure
17
+ consistent styles and formatting. There should be no warning output from
18
+ test run processes. I use [Standard Ruby][standardrb].
19
19
 
20
- - Proposed changes should be on a thoughtfully-named topic branch and organized
21
- into logical commit chunks as appropriate.
20
+ - Proposed changes should be on a thoughtfully-named topic branch and
21
+ organized into logical commit chunks as appropriate.
22
22
 
23
23
  - Use [Conventional Commits][conventional] with my
24
24
  [conventions](#commit-conventions).
25
25
 
26
- - Versions must not be updated in pull requests unless otherwise directed. This
27
- means that you must not:
26
+ - Versions must not be updated in pull requests unless otherwise directed.
27
+ This means that you must not:
28
28
 
29
29
  - Modify `VERSION` in `lib/mime/types/data.rb`. When your patch is accepted
30
30
  and a release is made, the version will be updated at that point.
31
31
 
32
32
  - Modify `mime-types-data.gemspec`; it is a generated file. (You _may_ use
33
- `rake gemspec` to regenerate it if your change involves metadata related to
34
- gem itself).
33
+ `rake gemspec` to regenerate it if your change involves metadata related
34
+ to gem itself).
35
35
 
36
36
  - Modify the `Gemfile`.
37
37
 
38
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.
39
+ that no files may be modified in `data/`. Any changes to be captured here
40
+ will be automatically updated on the next release.
41
41
 
42
42
  - Documentation should be added or updated as appropriate for new or updated
43
43
  functionality. The documentation is RDoc; mime-types-data does not use
@@ -50,13 +50,25 @@ I have several guidelines to contributing code through pull requests:
50
50
  `CHANGELOG.md` as a separate commit from your main change. (Follow the style
51
51
  in the `CHANGELOG.md` and provide a link to your PR.)
52
52
 
53
- - Include your DCO sign-off in each commit message (see [LICENCE](LICENCE.md)).
53
+ - Include your DCO sign-off in each commit message (see
54
+ [LICENCE](LICENCE.md)).
54
55
 
55
56
  Although mime-types-data was extracted from the [Ruby mime-types][rmt] gem and
56
57
  the support files are written in Ruby, the _target_ of mime-types-data is any
57
58
  implementation that wishes to use the data as a MIME types registry, so I am
58
- particularly interested in tools that will create a mime-types-data package for
59
- other languages.
59
+ particularly interested in tools that will create a mime-types-data package
60
+ for other languages.
61
+
62
+ ## AI Contribution Policy
63
+
64
+ MIME::Types data has specific expectations of the upstream MIME::Types library
65
+ and the conversion utilities in `support/`. It is extremely important that
66
+ contributions of any sort be well understood by the submitter and that the
67
+ developer can attest to the [Developer Certificate of Origin][dco] for each
68
+ pull request (see [LICENCE](LICENCE.md)).
69
+
70
+ Any contribution (bug, feature request, or pull request) that uses undeclared
71
+ AI output will be rejected.
60
72
 
61
73
  ## Adding or Modifying MIME Types
62
74
 
@@ -67,8 +79,8 @@ data in the `types` directory.
67
79
 
68
80
  > [!WARNING]
69
81
  >
70
- > Pull requests that include changes to files in `data/` will require amendment
71
- > to revert these files.
82
+ > Pull requests that include changes to files in `data/` will require
83
+ > amendment to revert these files.
72
84
 
73
85
  New or modified MIME types should be edited in the appropriate YAML file under
74
86
  `types`. The format is as shown below for the `application/xml` MIME type in
@@ -92,10 +104,10 @@ New or modified MIME types should be edited in the appropriate YAML file under
92
104
 
93
105
  There are other fields that can be added, matching the fields discussed in the
94
106
  documentation for MIME::Type. Pull requests for MIME types should just contain
95
- the changes to the YAML files for the new or modified MIME types; I will convert
96
- the YAML files to JSON prior to a new release. I would rather not have to verify
97
- that the JSON matches the YAML changes, which is why it is not necessary to run
98
- conversion for the pull request.
107
+ the changes to the YAML files for the new or modified MIME types; I will
108
+ convert the YAML files to JSON prior to a new release. I would rather not have
109
+ to verify that the JSON matches the YAML changes, which is why it is not
110
+ necessary to run conversion for the pull request.
99
111
 
100
112
  If you are making a change for a private fork, use `rake convert:yaml:json` to
101
113
  convert the YAML to JSON and `rake convert:yaml:columnar` to convert it to the
@@ -107,8 +119,8 @@ If you are maintaining a private fork and wish to update your copy of the MIME
107
119
  types registry used by this gem, you can do this with the rake tasks:
108
120
 
109
121
  ```sh
110
- $ rake mime:iana
111
- $ rake mime:apache
122
+ rake mime:iana
123
+ rake mime:apache
112
124
  ```
113
125
 
114
126
  #### A Note on Provisional Types
@@ -117,8 +129,8 @@ Provisionally registered types from IANA are contained in the `types/*.yaml`
117
129
  files. Per IANA,
118
130
 
119
131
  > This registry, unlike some other provisional IANA registries, is only for
120
- > temporary use. Entries in this registry are either finalized and moved to the
121
- > main media types registry or are abandoned and deleted. Entries in this
132
+ > temporary use. Entries in this registry are either finalized and moved to
133
+ > the main media types registry or are abandoned and deleted. Entries in this
122
134
  > registry are suitable for use for development and test purposes only.
123
135
 
124
136
  Provisional types are rewritten when updated, so pull requests to manually
@@ -150,34 +162,34 @@ required metadata trailers are:
150
162
  - `Breaking-Change`: if the change is a breaking change. **Do not** use the
151
163
  shorthand form (`feat!(scope)`) or `BREAKING CHANGE`.
152
164
 
153
- - `Signed-off-by`: this is required for all developers except me, as outlined in
154
- the [Licence](./LICENCE.md#developer-certificate-of-origin).
165
+ - `Signed-off-by`: this is required for all developers except me, as outlined
166
+ in the [Licence](LICENCE.md#developer-certificate-of-origin).
155
167
 
156
168
  - `Fixes` or `Resolves`: If a change fixes one or more open [issues][issues],
157
169
  that issue must be included in the `Fixes` or `Resolves` trailer. Multiple
158
170
  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.
171
+ `Fixes: #1, #5, #7`, but _may_ appear in separate trailers. While both
172
+ `Fixes` and `Resolves` are synonyms, only _one_ should be used in a given
173
+ commit or pull request.
162
174
 
163
- - `Related to`: If a change does not fix an issue, those issue references should
164
- be included in this trailer.
175
+ - `Related to`: If a change does not fix an issue, those issue references
176
+ should be included in this trailer.
165
177
 
166
178
  ## The Release Process
167
179
 
168
180
  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.
181
+ updated weekly (on Tuesdays) and be presented in a reviewable pull request.
182
+ Once merged, the release will be automatically published to RubyGems.
171
183
 
172
- With the addition of [trusted publishing][tp], there should no longer be a need
173
- for manual releases outside of the update cycle. Pull requests merged between
174
- cycles will be released on the next cycle.
184
+ With the addition of [trusted publishing][tp], there should no longer be a
185
+ need for manual releases outside of the update cycle. Pull requests merged
186
+ between cycles will be released on the next cycle.
175
187
 
176
188
  If it becomes necessary to perform a manual release, IANA updates should be
177
189
  performed manually.
178
190
 
179
- 1. Review any outstanding issues or pull requests to see if anything needs to be
180
- addressed. This is necessary because there is no automated source for
191
+ 1. Review any outstanding issues or pull requests to see if anything needs to
192
+ be addressed. This is necessary because there is no automated source for
181
193
  extensions for the thousands of MIME entries. (Suggestions and/or pull
182
194
  requests for same would be deeply appreciated.)
183
195
  2. `bundle install`
@@ -194,17 +206,13 @@ performed manually.
194
206
  7. Commit the changes and push to GitHub. The automated trusted publishing
195
207
  workflow will pick up the changes.
196
208
 
197
- This list is based on issue [#18][issue-18].
198
-
199
209
  [cbeams]: https://cbea.ms/git-commit/
200
- [cccoc]: ./CODE_OF_CONDUCT.md
210
+ [cccoc]: CODE_OF_CONDUCT.md
201
211
  [conventional]: https://www.conventionalcommits.org/en/v1.0.0/
202
212
  [dco]: licences/dco.txt
203
213
  [hoe]: https://github.com/seattlerb/hoe
204
- [issue-18]: https://github.com/mime-types/mime-types-data/issues/18
205
214
  [issues]: https://github.com/mime-types/mime-types-data/issues
206
215
  [minitest]: https://github.com/seattlerb/minitest
207
- [release-gem]: https://github.com/rubygems/release-gem
208
216
  [rmt]: https://github.com/mime-types/ruby-mime-types/
209
217
  [standardrb]: https://github.com/standardrb/standard
210
218
  [tp]: https://guides.rubygems.org/trusted-publishing/
data/CONTRIBUTORS.md CHANGED
@@ -5,6 +5,7 @@
5
5
  Thanks to everyone else who has contributed to mime-types:
6
6
 
7
7
  - Aaron Patterson
8
+ - Andy Brody
8
9
  - Aggelos Avgerinos
9
10
  - Alessio Parma
10
11
  - Alex Balhatchet
data/LICENCE.md CHANGED
@@ -1,24 +1,32 @@
1
- ## Licence
1
+ # Licence
2
2
 
3
- - Copyright 2003–2025 Austin Ziegler and other contributors.
3
+ <!-- SPDX-License-Identifier: MIT -->
4
4
 
5
- The software in this repository is made available under the MIT license.
5
+ MIME::Types is copyright 2003-2025 Austin Ziegler and other contributors and
6
+ is licensed under the [MIT License](licences/MIT.txt).
6
7
 
7
- ### MIT License
8
+ - SPDX License: [MIT][spdx-mit]
8
9
 
9
- Permission is hereby granted, free of charge, to any person obtaining a copy of
10
- this software and associated documentation files (the "Software"), to deal in
11
- the Software without restriction, including without limitation the rights to
12
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
13
- the Software, and to permit persons to whom the Software is furnished to do so,
14
- subject to the following conditions:
10
+ ## Developer Certificate of Origin
15
11
 
16
- The above copyright notice and this permission notice shall be included in all
17
- copies or substantial portions of the Software.
12
+ All contributors **must** certify they are willing and able to provide their
13
+ contributions under the terms of this project's licences with the
14
+ certification of the
15
+ [Developer Certificate of Origin (Version 1.1)](licences/dco.txt).
18
16
 
19
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
21
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
22
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
23
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17
+ Such certification is provided by ensuring that a `Signed-off-by`
18
+ [commit trailer][trailer] is present on every commit:
19
+
20
+ ```text
21
+ Signed-off-by: FirstName LastName <email@example.org>
22
+ ```
23
+
24
+ The `Signed-off-by` trailer can be automatically added by git with the `-s` or
25
+ `--signoff` option on `git commit`:
26
+
27
+ ```sh
28
+ git commit --signoff
29
+ ```
30
+
31
+ [spdx-mit]: https://spdx.org/licenses/MIT.html
32
+ [trailer]: https://git-scm.com/docs/git-interpret-trailers