mime-types-data 3.2024.0820 → 3.2024.0903

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e2ed9cd13978b5b288a280c31c31517f6412d49f6c30d42767d09d7e63ab12f9
4
- data.tar.gz: 792d8ec7660fdd58a27ffba329fdeb8538dfedf0eef5e3dcf2c2e28ee040c28d
3
+ metadata.gz: 6fe5721c3a6908abf70900e33991528076221d0bcb199676087c6ce21b0d53eb
4
+ data.tar.gz: 9f16b9c9eff8641527120f33cd9d4a19582f2a700409157dbb70ad94a6a76a97
5
5
  SHA512:
6
- metadata.gz: fd16bc1aaec94b42d498ded768bb2e4274fa9e1701fbc82fc1f0f7466554395277d9f655f617cb64c2b9eacb2c2fb8897bae927f74e3f5815ed9eb334e0fa795
7
- data.tar.gz: d1bebc6d35b7d00d5053e417c036f3bcbd1967eaf01818187773589559fa7623f5252e757aa45fddf93b4c18c6fe9a1612f010e1fff80f9e3d4b48c8b28c12e8
6
+ metadata.gz: e36be28b72b2822cb9050e7daf7044ff88018f47b36d1b6087f84e3f3d03a8c16fb4fcc90fe75d0dac1eb0bc0be9f38e864568d907948e061fb17310efddfab4
7
+ data.tar.gz: 1ba019bb39861d7295cd4914b0aa6fb5c55b35340c5e34b9e0704e7b559538ce7f4ec486b21cc376923b8a6984506284de6ebae6ca8c217a8de95bce248f9211
data/Code-of-Conduct.md CHANGED
@@ -2,74 +2,127 @@
2
2
 
3
3
  ## Our Pledge
4
4
 
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of
9
- experience, nationality, personal appearance, race, religion, or sexual identity
10
- and orientation.
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.
11
14
 
12
15
  ## Our Standards
13
16
 
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
16
19
 
17
- - Using welcoming and inclusive language
18
- - Being respectful of differing viewpoints and experiences
19
- - Gracefully accepting constructive criticism
20
- - Focusing on what is best for the community
21
- - Showing empathy towards other community members
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
22
27
 
23
- Examples of unacceptable behavior by participants include:
28
+ Examples of unacceptable behavior include:
24
29
 
25
- - The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- - Trolling, insulting/derogatory comments, and personal or political attacks
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
28
33
  - Public or private harassment
29
- - Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
34
+ - Publishing others' private information, such as a physical or email address,
35
+ without their explicit permission
31
36
  - Other conduct which could reasonably be considered inappropriate in a
32
37
  professional setting
33
38
 
34
- ## Our Responsibilities
39
+ ## Enforcement Responsibilities
35
40
 
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
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.
39
45
 
40
- Project maintainers have the right and responsibility to remove, edit, or reject
46
+ Community leaders have the right and responsibility to remove, edit, or reject
41
47
  comments, commits, code, wiki edits, issues, and other contributions that are
42
- not aligned to this Code of Conduct, or to ban temporarily or permanently any
43
- contributor for other behaviors that they deem inappropriate, threatening,
44
- offensive, or harmful.
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
45
50
 
46
51
  ## Scope
47
52
 
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
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.
54
58
 
55
59
  ## Enforcement
56
60
 
57
61
  Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an
62
- incident. Further details of specific enforcement policies may be posted
63
- separately.
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.
64
86
 
65
- Project maintainers who do not follow or enforce the Code of Conduct in good
66
- faith may face temporary or permanent repercussions as determined by other
67
- members of the project's leadership.
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.
68
113
 
69
114
  ## Attribution
70
115
 
71
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
72
- available at [http://contributor-covenant.org/version/1/4][version]
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>.
73
126
 
74
- [homepage]: http://contributor-covenant.org
75
- [version]: http://contributor-covenant.org/version/1/4/
127
+ [homepage]: https://www.contributor-covenant.org
128
+ [Mozilla CoC]: https://github.com/mozilla/diversity
data/Contributing.md CHANGED
@@ -1,4 +1,4 @@
1
- ## Contributing
1
+ # Contributing
2
2
 
3
3
  Contributions 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. As with
@@ -21,7 +21,7 @@ implementation that wishes to use the data as a MIME types registry, so I am
21
21
  particularly interested in tools that will create a mime-types-data package for
22
22
  other languages.
23
23
 
24
- ### Adding or Modifying MIME Types
24
+ ## Adding or Modifying MIME Types
25
25
 
26
26
  The Ruby mime-types gem loads its data from files encoded in the `data`
27
27
  directory in this gem by loading `mime-types-data` and reading
@@ -60,7 +60,7 @@ If you are making a change for a private fork, use `rake convert:yaml:json` to
60
60
  convert the YAML to JSON, or `rake convert:yaml:columnar` to convert it to the
61
61
  new columnar format.
62
62
 
63
- #### Updating Types from the IANA or Apache Lists
63
+ ### Updating Types from the IANA or Apache Lists
64
64
 
65
65
  If you are maintaining a private fork and wish to update your copy of the MIME
66
66
  types registry used by this gem, you can do this with the rake tasks:
@@ -70,63 +70,37 @@ $ rake mime:iana
70
70
  $ rake mime:apache
71
71
  ```
72
72
 
73
- ##### A Note on Provisional Types
73
+ #### A Note on Provisional Types
74
74
 
75
- The file `types/provisional-standard-types.yaml` contains the provisionally
76
- registered types from IANA. Per IANA,
75
+ Provisionally registered types from IANA are contained in the `types/*.yaml`
76
+ files. Per IANA,
77
77
 
78
78
  > This registry, unlike some other provisional IANA registries, is only for
79
79
  > temporary use. Entries in this registry are either finalized and moved to the
80
80
  > main media types registry or are abandoned and deleted. Entries in this
81
81
  > registry are suitable for use for development and test purposes only.
82
82
 
83
- The provisional types file is rewritten when updated, so pull requests to
84
- manually promote or customize provisional types (such as with extensions). It is
85
- recommended that any updates required to the data be performed in your
86
- application if you require provisional types.
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
87
 
88
- ### Development Dependencies
88
+ ## Development Dependencies
89
89
 
90
- mime-types-data uses Ryan Davis’s {Hoe}[https://github.com/seattlerb/hoe] to
91
- manage the release process, and it adds a number of rake tasks. You will mostly
92
- be interested in:
90
+ ## Test Dependencies
93
91
 
94
- ```sh
95
- $ rake
96
- ```
97
-
98
- which runs the tests the same way that:
99
-
100
- ```sh
101
- $ rake test
102
- $ rake travis
103
- ```
104
-
105
- will do.
106
-
107
- To assist with the installation of the development dependencies for
108
- mime-types-data, I have provided the simplest possible Gemfile pointing to the
109
- (generated) `mime-types-data.gemspec` file. This will permit you to do:
110
-
111
- ```sh
112
- $ bundle install
113
- ```
114
-
115
- to get the development dependencies. If you aleady have `hoe` installed, you can
116
- accomplish the same thing with:
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.
117
95
 
118
- ```sh
119
- $ rake newb
120
- ```
121
-
122
- This task will install any missing dependencies, run the tests/specs, and
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
123
101
  generate the RDoc.
124
102
 
125
- You can run tests with code coverage analysis by running:
126
-
127
- ```sh
128
- $ rake test:coverage
129
- ```
103
+ You can run tests with code coverage analysis by running `rake test:coverage`.
130
104
 
131
105
  ### Workflow
132
106
 
@@ -144,49 +118,31 @@ Here's the most direct way to get your work merged into the project:
144
118
  - Create a pull request against mime-types/mime-types-data and describe what
145
119
  your change does and the why you think it should be merged.
146
120
 
147
- ### The Release Process
121
+ ## The Release Process
148
122
 
149
- The release process needs automation; as it includes generating code and
150
- committing to the repository, it is not clear how this will happen safely.
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.
151
126
 
152
127
  1. Review any outstanding issues or pull requests to see if anything needs to be
153
- addressed. This is necessary because there is currently no automated source
154
- for extensions for the thousands of MIME entries. (Suggestions and/or pull
128
+ addressed. This is necessary because there is no automated source for
129
+ extensions for the thousands of MIME entries. (Suggestions and/or pull
155
130
  requests for same would be deeply appreciated.)
156
131
  2. `bundle install`
157
132
  3. `bundle exec rake mime:apache`
158
133
  4. `bundle exec rake mime:iana`
159
134
  5. Review the changes to make sure that the changes are sane. The IANA data
160
135
  source changes from time to time, resulting in big changes or even a broken
161
- step 4. (The most recent change was the addition of the font/\* top-level
136
+ step 4. (The most recent change was the addition of the `font/*` top-level
162
137
  category.)
163
138
  6. `bundle exec rake convert`
164
139
  7. `bundle exec rake update:version`
165
- 8. Write up the changes in History.md. If any PRs have been merged, these should
166
- be noted specifically.
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`.
167
143
  9. Commit the changes and push to GitHub.
168
144
  10. `bundle exec rake release VERSION=newversion`
169
145
 
170
- ### Automating the Release
171
-
172
- If anyone wishes to provide suggestions on automation, this would be a two-phase
173
- process:
174
-
175
- 1. A system would need to periodically create PRs to the GitHub repository with
176
- the output of the following commands (steps 2, 3, and 4):
177
-
178
- ```sh
179
- bundle install
180
- bundle exec rake mime:apache
181
- bundle exec rake mime:iana
182
- git add .
183
- git commit -m "[Automated] MIME Type update for $(date)"
184
- # Somehow make the PR from here.
185
- ```
186
-
187
- 2. Once this PR is approved and merged, the next steps would be conversion,
188
- version update, automatic update of History.md, and release (steps 6–10).
189
-
190
146
  This is based on an issue [#18][#18].
191
147
 
192
148
  ### Contributors
@@ -244,4 +200,4 @@ Thanks to everyone else who has contributed to mime-types:
244
200
 
245
201
  [qcm]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
246
202
  [rmt]: https://github.com/mime-types/ruby-mime-types/
247
- [#18]: https://github.com/mime-types/mime-types-data/issues/18
203
+ [hoe]: https://github.com/seattlerb/hoe
data/History.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  <!-- automatic-release -->
4
4
 
5
+ ## 3.2024.0903 / 2024-09-03
6
+
7
+ - Updated the Apache and IANA media registry entries as of release date
8
+
5
9
  ## 3.2024.0820 / 2024-08-20
6
10
 
7
11
  - Updated the Apache and IANA media registry entries as of release date.
data/Licence.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## Licence
2
2
 
3
- - Copyright 2003–2021 Austin Ziegler and other contributors.
3
+ - Copyright 2003–2024 Austin Ziegler and other contributors.
4
4
 
5
5
  The software in this repository is made available under the MIT license.
6
6
 
data/Manifest.txt CHANGED
@@ -5,6 +5,7 @@ Licence.md
5
5
  Manifest.txt
6
6
  README.md
7
7
  Rakefile
8
+ SECURITY.md
8
9
  data/content_type_mime.db
9
10
  data/ext_mime.db
10
11
  data/mime-types.json
data/SECURITY.md ADDED
@@ -0,0 +1,7 @@
1
+ # mime-types Security
2
+
3
+ ## Security contact information
4
+
5
+ To report a security vulnerability, please use the
6
+ [Tidelift security contact](https://tidelift.com/security). Tidelift will
7
+ coordinate the fix and disclosure.