mime-types-data 3.2024.1105 → 3.2026.0127
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 +794 -0
- data/CODE_OF_CONDUCT.md +166 -0
- data/CONTRIBUTING.md +213 -0
- data/CONTRIBUTORS.md +54 -0
- data/{Licence.md → LICENCE.md} +1 -1
- data/Manifest.txt +7 -19
- data/README.md +42 -34
- data/Rakefile +52 -116
- data/SECURITY.md +24 -5
- data/data/content_type_mime.db +240 -48
- data/data/ext_mime.db +1611 -1204
- data/data/mime-types.json +1 -1
- data/data/mime.content_type.column +535 -57
- data/data/mime.docs.column +478 -0
- data/data/mime.encoding.column +478 -0
- data/data/mime.flags.column +556 -78
- data/data/mime.friendly.column +478 -0
- data/data/mime.pext.column +478 -0
- data/data/mime.spri.column +0 -0
- data/data/mime.use_instead.column +478 -0
- data/data/mime.xrefs.column +586 -108
- data/lib/mime/types/data.rb +1 -1
- data/licences/dco.txt +34 -0
- metadata +33 -105
- data/Code-of-Conduct.md +0 -128
- data/Contributing.md +0 -203
- data/History.md +0 -615
- data/types/application.yaml +0 -18989
- data/types/audio.yaml +0 -1753
- data/types/chemical.yaml +0 -71
- data/types/conference.yaml +0 -9
- data/types/drawing.yaml +0 -15
- data/types/example.yaml +0 -1
- data/types/font.yaml +0 -65
- data/types/haptics.yaml +0 -28
- data/types/image.yaml +0 -1329
- data/types/message.yaml +0 -247
- data/types/model.yaml +0 -454
- data/types/multipart.yaml +0 -187
- data/types/text.yaml +0 -1281
- data/types/video.yaml +0 -1158
- data/types/world.yaml +0 -8
data/lib/mime/types/data.rb
CHANGED
data/licences/dco.txt
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Developer Certificate of Origin
|
|
2
|
+
Version 1.1
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
|
|
5
|
+
|
|
6
|
+
Everyone is permitted to copy and distribute verbatim copies of this
|
|
7
|
+
license document, but changing it is not allowed.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Developer's Certificate of Origin 1.1
|
|
11
|
+
|
|
12
|
+
By making a contribution to this project, I certify that:
|
|
13
|
+
|
|
14
|
+
(a) The contribution was created in whole or in part by me and I
|
|
15
|
+
have the right to submit it under the open source license
|
|
16
|
+
indicated in the file; or
|
|
17
|
+
|
|
18
|
+
(b) The contribution is based upon previous work that, to the best
|
|
19
|
+
of my knowledge, is covered under an appropriate open source
|
|
20
|
+
license and I have the right under that license to submit that
|
|
21
|
+
work with modifications, whether created in whole or in part
|
|
22
|
+
by me, under the same open source license (unless I am
|
|
23
|
+
permitted to submit under a different license), as indicated
|
|
24
|
+
in the file; or
|
|
25
|
+
|
|
26
|
+
(c) The contribution was provided directly to me by some other
|
|
27
|
+
person who certified (a), (b) or (c) and I have not modified
|
|
28
|
+
it.
|
|
29
|
+
|
|
30
|
+
(d) I understand and agree that this project and the contribution
|
|
31
|
+
are public and that a record of the contribution (including all
|
|
32
|
+
personal information I submit with it, including my sign-off) is
|
|
33
|
+
maintained indefinitely and may be redistributed consistent with
|
|
34
|
+
this project or the open source license(s) involved.
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mime-types-data
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.2026.0127
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Austin Ziegler
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: hoe
|
|
@@ -25,81 +24,39 @@ dependencies:
|
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
25
|
version: '4.0'
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: hoe-
|
|
27
|
+
name: hoe-halostatue
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
30
|
- - "~>"
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
34
|
-
type: :development
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - "~>"
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: '1.0'
|
|
41
|
-
- !ruby/object:Gem::Dependency
|
|
42
|
-
name: hoe-gemspec2
|
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
|
44
|
-
requirements:
|
|
45
|
-
- - "~>"
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: '1.1'
|
|
48
|
-
type: :development
|
|
49
|
-
prerelease: false
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - "~>"
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: '1.1'
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: hoe-git2
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - "~>"
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: '1.7'
|
|
62
|
-
type: :development
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - "~>"
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: '1.7'
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: hoe-rubygems
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - "~>"
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: '1.0'
|
|
32
|
+
version: '2.0'
|
|
76
33
|
type: :development
|
|
77
34
|
prerelease: false
|
|
78
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
36
|
requirements:
|
|
80
37
|
- - "~>"
|
|
81
38
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '
|
|
39
|
+
version: '2.0'
|
|
83
40
|
- !ruby/object:Gem::Dependency
|
|
84
41
|
name: mime-types
|
|
85
42
|
requirement: !ruby/object:Gem::Requirement
|
|
86
43
|
requirements:
|
|
87
|
-
- - "
|
|
44
|
+
- - ">"
|
|
88
45
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: 3.
|
|
46
|
+
version: 3.6.2
|
|
90
47
|
- - "<"
|
|
91
48
|
- !ruby/object:Gem::Version
|
|
92
|
-
version: '
|
|
49
|
+
version: '5'
|
|
93
50
|
type: :development
|
|
94
51
|
prerelease: false
|
|
95
52
|
version_requirements: !ruby/object:Gem::Requirement
|
|
96
53
|
requirements:
|
|
97
|
-
- - "
|
|
54
|
+
- - ">"
|
|
98
55
|
- !ruby/object:Gem::Version
|
|
99
|
-
version: 3.
|
|
56
|
+
version: 3.6.2
|
|
100
57
|
- - "<"
|
|
101
58
|
- !ruby/object:Gem::Version
|
|
102
|
-
version: '
|
|
59
|
+
version: '5'
|
|
103
60
|
- !ruby/object:Gem::Dependency
|
|
104
61
|
name: nokogiri
|
|
105
62
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -148,48 +105,30 @@ dependencies:
|
|
|
148
105
|
- - "~>"
|
|
149
106
|
- !ruby/object:Gem::Version
|
|
150
107
|
version: '1.0'
|
|
151
|
-
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
- - ">="
|
|
156
|
-
- !ruby/object:Gem::Version
|
|
157
|
-
version: '4.0'
|
|
158
|
-
- - "<"
|
|
159
|
-
- !ruby/object:Gem::Version
|
|
160
|
-
version: '7'
|
|
161
|
-
type: :development
|
|
162
|
-
prerelease: false
|
|
163
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
164
|
-
requirements:
|
|
165
|
-
- - ">="
|
|
166
|
-
- !ruby/object:Gem::Version
|
|
167
|
-
version: '4.0'
|
|
168
|
-
- - "<"
|
|
169
|
-
- !ruby/object:Gem::Version
|
|
170
|
-
version: '7'
|
|
171
|
-
description: |-
|
|
172
|
-
mime-types-data provides a registry for information about MIME media type
|
|
173
|
-
definitions. It can be used with the Ruby mime-types library or other software
|
|
174
|
-
to determine defined filename extensions for MIME types, or to use filename
|
|
175
|
-
extensions to look up the likely MIME type definitions.
|
|
108
|
+
description: mime-types-data provides a registry for information about MIME media
|
|
109
|
+
type definitions. It can be used with the Ruby mime-types library or other software
|
|
110
|
+
to determine defined filename extensions for MIME types, or to use filename extensions
|
|
111
|
+
to look up the likely MIME type definitions.
|
|
176
112
|
email:
|
|
177
113
|
- halostatue@gmail.com
|
|
178
114
|
executables: []
|
|
179
115
|
extensions: []
|
|
180
116
|
extra_rdoc_files:
|
|
181
|
-
-
|
|
182
|
-
-
|
|
183
|
-
-
|
|
184
|
-
-
|
|
117
|
+
- CHANGELOG.md
|
|
118
|
+
- CODE_OF_CONDUCT.md
|
|
119
|
+
- CONTRIBUTING.md
|
|
120
|
+
- CONTRIBUTORS.md
|
|
121
|
+
- LICENCE.md
|
|
185
122
|
- Manifest.txt
|
|
186
123
|
- README.md
|
|
187
124
|
- SECURITY.md
|
|
125
|
+
- licences/dco.txt
|
|
188
126
|
files:
|
|
189
|
-
-
|
|
190
|
-
-
|
|
191
|
-
-
|
|
192
|
-
-
|
|
127
|
+
- CHANGELOG.md
|
|
128
|
+
- CODE_OF_CONDUCT.md
|
|
129
|
+
- CONTRIBUTING.md
|
|
130
|
+
- CONTRIBUTORS.md
|
|
131
|
+
- LICENCE.md
|
|
193
132
|
- Manifest.txt
|
|
194
133
|
- README.md
|
|
195
134
|
- Rakefile
|
|
@@ -203,31 +142,21 @@ files:
|
|
|
203
142
|
- data/mime.flags.column
|
|
204
143
|
- data/mime.friendly.column
|
|
205
144
|
- data/mime.pext.column
|
|
145
|
+
- data/mime.spri.column
|
|
206
146
|
- data/mime.use_instead.column
|
|
207
147
|
- data/mime.xrefs.column
|
|
208
148
|
- lib/mime-types-data.rb
|
|
209
149
|
- lib/mime/types/data.rb
|
|
210
|
-
-
|
|
211
|
-
- types/audio.yaml
|
|
212
|
-
- types/chemical.yaml
|
|
213
|
-
- types/conference.yaml
|
|
214
|
-
- types/drawing.yaml
|
|
215
|
-
- types/example.yaml
|
|
216
|
-
- types/font.yaml
|
|
217
|
-
- types/haptics.yaml
|
|
218
|
-
- types/image.yaml
|
|
219
|
-
- types/message.yaml
|
|
220
|
-
- types/model.yaml
|
|
221
|
-
- types/multipart.yaml
|
|
222
|
-
- types/text.yaml
|
|
223
|
-
- types/video.yaml
|
|
224
|
-
- types/world.yaml
|
|
150
|
+
- licences/dco.txt
|
|
225
151
|
homepage: https://github.com/mime-types/mime-types-data/
|
|
226
152
|
licenses:
|
|
227
153
|
- MIT
|
|
228
154
|
metadata:
|
|
155
|
+
homepage_uri: https://github.com/mime-types/mime-types-data/
|
|
156
|
+
bug_tracker_uri: https://github.com/mime-types/mime-types-data/issues
|
|
157
|
+
source_code_uri: https://github.com/mime-types/mime-types-data/
|
|
158
|
+
changelog_uri: https://github.com/mime-types/mime-types-data/blob/main/CHANGELOG.md
|
|
229
159
|
rubygems_mfa_required: 'true'
|
|
230
|
-
post_install_message:
|
|
231
160
|
rdoc_options:
|
|
232
161
|
- "--main"
|
|
233
162
|
- README.md
|
|
@@ -244,8 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
244
173
|
- !ruby/object:Gem::Version
|
|
245
174
|
version: '0'
|
|
246
175
|
requirements: []
|
|
247
|
-
rubygems_version:
|
|
248
|
-
signing_key:
|
|
176
|
+
rubygems_version: 4.0.4
|
|
249
177
|
specification_version: 4
|
|
250
178
|
summary: mime-types-data provides a registry for information about MIME media type
|
|
251
179
|
definitions
|
data/Code-of-Conduct.md
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
|
2
|
-
|
|
3
|
-
## Our Pledge
|
|
4
|
-
|
|
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.
|
|
11
|
-
|
|
12
|
-
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
13
|
-
diverse, inclusive, and healthy community.
|
|
14
|
-
|
|
15
|
-
## Our Standards
|
|
16
|
-
|
|
17
|
-
Examples of behavior that contributes to a positive environment for our
|
|
18
|
-
community include:
|
|
19
|
-
|
|
20
|
-
- Demonstrating empathy and kindness toward other people
|
|
21
|
-
- Being respectful of differing opinions, viewpoints, and experiences
|
|
22
|
-
- Giving and gracefully accepting constructive feedback
|
|
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
|
|
27
|
-
|
|
28
|
-
Examples of unacceptable behavior include:
|
|
29
|
-
|
|
30
|
-
- The use of sexualized language or imagery, and sexual attention or advances of
|
|
31
|
-
any kind
|
|
32
|
-
- Trolling, insulting or derogatory comments, and personal or political attacks
|
|
33
|
-
- Public or private harassment
|
|
34
|
-
- Publishing others' private information, such as a physical or email address,
|
|
35
|
-
without their explicit permission
|
|
36
|
-
- Other conduct which could reasonably be considered inappropriate in a
|
|
37
|
-
professional setting
|
|
38
|
-
|
|
39
|
-
## Enforcement Responsibilities
|
|
40
|
-
|
|
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.
|
|
45
|
-
|
|
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.
|
|
50
|
-
|
|
51
|
-
## Scope
|
|
52
|
-
|
|
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.
|
|
58
|
-
|
|
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
|
-
## Attribution
|
|
115
|
-
|
|
116
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
117
|
-
version 2.1, available at
|
|
118
|
-
<https://www.contributor-covenant.org/version/2/1/code_of_conduct.html>.
|
|
119
|
-
|
|
120
|
-
Community Impact Guidelines were inspired by
|
|
121
|
-
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
|
122
|
-
|
|
123
|
-
For answers to common questions about this code of conduct, see the FAQ at
|
|
124
|
-
<https://www.contributor-covenant.org/faq>. Translations are available at
|
|
125
|
-
<https://www.contributor-covenant.org/translations>.
|
|
126
|
-
|
|
127
|
-
[homepage]: https://www.contributor-covenant.org
|
|
128
|
-
[Mozilla CoC]: https://github.com/mozilla/diversity
|
data/Contributing.md
DELETED
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
# Contributing
|
|
2
|
-
|
|
3
|
-
Contributions 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. As with
|
|
5
|
-
many of my projects, I have a few suggestions for improving the chance of
|
|
6
|
-
acceptance of your code contributions:
|
|
7
|
-
|
|
8
|
-
- The support files are written in Ruby and should remain in the coding style
|
|
9
|
-
that already exists, and I use hoe for releasing the mime-types-data RubyGem.
|
|
10
|
-
- Use a thoughtfully-named topic branch that contains your change. Rebase your
|
|
11
|
-
commits into logical chunks as necessary.
|
|
12
|
-
- Use [quality commit messages][qcm].
|
|
13
|
-
- Do not change the version number; when your patch is accepted and a release is
|
|
14
|
-
made, the version will be updated at that point.
|
|
15
|
-
- Submit a GitHub pull request with your changes.
|
|
16
|
-
- New or changed behaviours require new or updated documentation.
|
|
17
|
-
|
|
18
|
-
Although mime-types-data was extracted from the [Ruby mime-types][rmt] gem and
|
|
19
|
-
the support files are written in Ruby, the _target_ of mime-types-data is any
|
|
20
|
-
implementation that wishes to use the data as a MIME types registry, so I am
|
|
21
|
-
particularly interested in tools that will create a mime-types-data package for
|
|
22
|
-
other languages.
|
|
23
|
-
|
|
24
|
-
## Adding or Modifying MIME Types
|
|
25
|
-
|
|
26
|
-
The Ruby mime-types gem loads its data from files encoded in the `data`
|
|
27
|
-
directory in this gem by loading `mime-types-data` and reading
|
|
28
|
-
MIME::Types::Data::PATH. These files are compiled files from the collection of
|
|
29
|
-
data in the `types` directory. Pull requests that include changes to these files
|
|
30
|
-
will require amendment to revert these files.
|
|
31
|
-
|
|
32
|
-
New or modified MIME types should be edited in the appropriate YAML file under
|
|
33
|
-
`types`. The format is as shown below for the `application/xml` MIME type in
|
|
34
|
-
`types/application.yml`.
|
|
35
|
-
|
|
36
|
-
```yaml
|
|
37
|
-
- !ruby/object:MIME::Type
|
|
38
|
-
content-type: application/xml
|
|
39
|
-
encoding: 8bit
|
|
40
|
-
extensions:
|
|
41
|
-
- xml
|
|
42
|
-
- xsl
|
|
43
|
-
references:
|
|
44
|
-
- IANA
|
|
45
|
-
- RFC3023
|
|
46
|
-
xrefs:
|
|
47
|
-
rfc:
|
|
48
|
-
- rfc3023
|
|
49
|
-
registered: true
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
There are other fields that can be added, matching the fields discussed in the
|
|
53
|
-
documentation for MIME::Type. Pull requests for MIME types should just contain
|
|
54
|
-
the changes to the YAML files for the new or modified MIME types; I will convert
|
|
55
|
-
the YAML files to JSON prior to a new release. I would rather not have to verify
|
|
56
|
-
that the JSON matches the YAML changes, which is why it is not necessary to
|
|
57
|
-
convert for the pull request.
|
|
58
|
-
|
|
59
|
-
If you are making a change for a private fork, use `rake convert:yaml:json` to
|
|
60
|
-
convert the YAML to JSON, or `rake convert:yaml:columnar` to convert it to the
|
|
61
|
-
new columnar format.
|
|
62
|
-
|
|
63
|
-
### Updating Types from the IANA or Apache Lists
|
|
64
|
-
|
|
65
|
-
If you are maintaining a private fork and wish to update your copy of the MIME
|
|
66
|
-
types registry used by this gem, you can do this with the rake tasks:
|
|
67
|
-
|
|
68
|
-
```sh
|
|
69
|
-
$ rake mime:iana
|
|
70
|
-
$ rake mime:apache
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
#### A Note on Provisional Types
|
|
74
|
-
|
|
75
|
-
Provisionally registered types from IANA are contained in the `types/*.yaml`
|
|
76
|
-
files. Per IANA,
|
|
77
|
-
|
|
78
|
-
> This registry, unlike some other provisional IANA registries, is only for
|
|
79
|
-
> temporary use. Entries in this registry are either finalized and moved to the
|
|
80
|
-
> main media types registry or are abandoned and deleted. Entries in this
|
|
81
|
-
> registry are suitable for use for development and test purposes only.
|
|
82
|
-
|
|
83
|
-
Provisional types are rewritten when updated, so pull requests to manually
|
|
84
|
-
customize provisional types (such as with extensions) are considered lower
|
|
85
|
-
priority. It is recommended that any updates required to the data be performed
|
|
86
|
-
in your application if you require provisional types.
|
|
87
|
-
|
|
88
|
-
## Development Dependencies
|
|
89
|
-
|
|
90
|
-
## Test Dependencies
|
|
91
|
-
|
|
92
|
-
mime-types-data uses Ryan Davis’s [Hoe][hoe] to manage the release process, and
|
|
93
|
-
it adds a number of rake tasks. You will mostly be interested in `rake`, which
|
|
94
|
-
runs tests the same way that `rake test` does.
|
|
95
|
-
|
|
96
|
-
To assist with the installation of the development dependencies for mime-types,
|
|
97
|
-
I have provided the simplest possible Gemfile pointing to the (generated)
|
|
98
|
-
`mime-types-data.gemspec` file. This permits `bundle install` for dependencies.
|
|
99
|
-
If you already have `hoe` installed, you can accomplish the same thing with
|
|
100
|
-
`rake newb`. This task will install any missing dependencies, run the tests, and
|
|
101
|
-
generate the RDoc.
|
|
102
|
-
|
|
103
|
-
You can run tests with code coverage analysis by running `rake test:coverage`.
|
|
104
|
-
|
|
105
|
-
### Workflow
|
|
106
|
-
|
|
107
|
-
Here's the most direct way to get your work merged into the project:
|
|
108
|
-
|
|
109
|
-
- Fork the project.
|
|
110
|
-
- Clone down your fork
|
|
111
|
-
(`git clone git://github.com/<username>/mime-types-data.git`).
|
|
112
|
-
- Create a topic branch to contain your change
|
|
113
|
-
(`git checkout -b my\_awesome\_feature`).
|
|
114
|
-
- Hack away, add tests. Not necessarily in that order.
|
|
115
|
-
- Make sure everything still passes by running `rake`.
|
|
116
|
-
- If necessary, rebase your commits into logical chunks, without errors.
|
|
117
|
-
- Push the branch up (`git push origin my\_awesome\_feature`).
|
|
118
|
-
- Create a pull request against mime-types/mime-types-data and describe what
|
|
119
|
-
your change does and the why you think it should be merged.
|
|
120
|
-
|
|
121
|
-
## The Release Process
|
|
122
|
-
|
|
123
|
-
The release process is much more automated than it used to be, as regular
|
|
124
|
-
updates are performed with GitHub actions on Tuesdays. Before release, however,
|
|
125
|
-
a final step of checking for IANA updates should be performed.
|
|
126
|
-
|
|
127
|
-
1. Review any outstanding issues or pull requests to see if anything needs to be
|
|
128
|
-
addressed. This is necessary because there is no automated source for
|
|
129
|
-
extensions for the thousands of MIME entries. (Suggestions and/or pull
|
|
130
|
-
requests for same would be deeply appreciated.)
|
|
131
|
-
2. `bundle install`
|
|
132
|
-
3. `bundle exec rake mime:apache`
|
|
133
|
-
4. `bundle exec rake mime:iana`
|
|
134
|
-
5. Review the changes to make sure that the changes are sane. The IANA data
|
|
135
|
-
source changes from time to time, resulting in big changes or even a broken
|
|
136
|
-
step 4. (The most recent change was the addition of the `font/*` top-level
|
|
137
|
-
category.)
|
|
138
|
-
6. `bundle exec rake convert`
|
|
139
|
-
7. `bundle exec rake update:version`
|
|
140
|
-
8. Write up the changes in `History.md`. If any PRs have been merged, these
|
|
141
|
-
should be noted specifically and contributions should be added in
|
|
142
|
-
`Contributing.md`.
|
|
143
|
-
9. Commit the changes and push to GitHub.
|
|
144
|
-
10. `bundle exec rake release VERSION=newversion`
|
|
145
|
-
|
|
146
|
-
This is based on an issue [#18][#18].
|
|
147
|
-
|
|
148
|
-
### Contributors
|
|
149
|
-
|
|
150
|
-
- Austin Ziegler created mime-types.
|
|
151
|
-
|
|
152
|
-
Thanks to everyone else who has contributed to mime-types:
|
|
153
|
-
|
|
154
|
-
- Aaron Patterson
|
|
155
|
-
- Aggelos Avgerinos
|
|
156
|
-
- Alessio Parma
|
|
157
|
-
- Alex Balhatchet
|
|
158
|
-
- Andre Pankratz
|
|
159
|
-
- Andrey Eremin
|
|
160
|
-
- Andy Brody
|
|
161
|
-
- Arnaud Meuret
|
|
162
|
-
- Bradley Meck
|
|
163
|
-
- Brandon Galbraith
|
|
164
|
-
- Chris Gat
|
|
165
|
-
- Chris Salzberg
|
|
166
|
-
- David Genord
|
|
167
|
-
- Eric Marden
|
|
168
|
-
- Garret Alfert
|
|
169
|
-
- Godfrey Chan
|
|
170
|
-
- Greg Brockman
|
|
171
|
-
- Hans de Graaff
|
|
172
|
-
- Henrik Hodne
|
|
173
|
-
- Jeremy Evans
|
|
174
|
-
- John Gardner
|
|
175
|
-
- Jon Sneyers
|
|
176
|
-
- Jonas Petersen
|
|
177
|
-
- Juanito Fatas
|
|
178
|
-
- Keerthi Siva
|
|
179
|
-
- Ken Ip
|
|
180
|
-
- Łukasz Śliwa
|
|
181
|
-
- Lucia
|
|
182
|
-
- Martin d'Allens
|
|
183
|
-
- Mauricio Linhares
|
|
184
|
-
- Mohammed Gad
|
|
185
|
-
- Myk Klemme
|
|
186
|
-
- nycvotes-dev
|
|
187
|
-
- Postmodern
|
|
188
|
-
- Richard Hirner
|
|
189
|
-
- Richard Hurt
|
|
190
|
-
- Richard Schneeman
|
|
191
|
-
- Robert Buchberger
|
|
192
|
-
- Samuel Williams
|
|
193
|
-
- Sergio Baptista
|
|
194
|
-
- Shane Eskritt
|
|
195
|
-
- Tao Guo
|
|
196
|
-
- Thomas Leese
|
|
197
|
-
- Tibor Szolár
|
|
198
|
-
- Todd Carrico
|
|
199
|
-
- Yoran Brondsema
|
|
200
|
-
|
|
201
|
-
[qcm]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
|
|
202
|
-
[rmt]: https://github.com/mime-types/ruby-mime-types/
|
|
203
|
-
[hoe]: https://github.com/seattlerb/hoe
|