mime-types-data 3.2016.0521 → 3.2022.0105

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
- SHA1:
3
- metadata.gz: 2747f196c42646e5aa4da822e481bebcb1f0b26b
4
- data.tar.gz: bdefbe341f03cf250667ac0f19ffe6cf157efc9a
2
+ SHA256:
3
+ metadata.gz: 329d601098ccd4e2d3978e6e323230a2ae19d2349f869711d899207c19b16994
4
+ data.tar.gz: 1dedab8c410c72bb0c84cb089000b87003a026ac109b9bf7cac165b102720fac
5
5
  SHA512:
6
- metadata.gz: 9bac329c65e88677c29b472495b7b4a2340aea5dd002894e1817ddf7c33867f493875407ac66c2e8885dad3b98c8fcb4bb16d07341c3cedcbe4cb68b71677ab3
7
- data.tar.gz: 92754f80d611368684b2bb721e5e0bb1515b6db29bf612662b3eb57e5d134a4f0fa12ba142bc00d20b8dbb3665738f8068a3e90be11e7952ddfd85d3c999f553
6
+ metadata.gz: 1c2c164f48716aebc3caed14a571f783aea3397cb218b6bc494c960561304a593a8e13c7f6362e1d9abd900c3c6b7752fa2cc8bdae6fb41681178fa3186dddbe
7
+ data.tar.gz: 3272473043d3359581c716e0fff76225219302573f7a1c31c7755b6fce7a4ad40aa0f183889e55f61fb043133562ba2e682b214cb2843df5340bc5ad50b3b8a3
data/Code-of-Conduct.md CHANGED
@@ -4,31 +4,31 @@
4
4
 
5
5
  In the interest of fostering an open and welcoming environment, we as
6
6
  contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age,
8
- body size, disability, ethnicity, gender identity and expression, level of
9
- experience, nationality, personal appearance, race, religion, or sexual
10
- identity and orientation.
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.
11
11
 
12
12
  ## Our Standards
13
13
 
14
14
  Examples of behavior that contributes to creating a positive environment
15
15
  include:
16
16
 
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
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
22
22
 
23
23
  Examples of unacceptable behavior by participants include:
24
24
 
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
25
+ - The use of sexualized language or imagery and unwelcome sexual attention or
26
26
  advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
27
+ - Trolling, insulting/derogatory comments, and personal or political attacks
28
+ - Public or private harassment
29
+ - Publishing others' private information, such as a physical or electronic
30
30
  address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
31
+ - Other conduct which could reasonably be considered inappropriate in a
32
32
  professional setting
33
33
 
34
34
  ## Our Responsibilities
@@ -37,20 +37,20 @@ Project maintainers are responsible for clarifying the standards of acceptable
37
37
  behavior and are expected to take appropriate and fair corrective action in
38
38
  response to any instances of unacceptable behavior.
39
39
 
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
40
+ Project maintainers have the right and responsibility to remove, edit, or reject
41
+ 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.
45
45
 
46
46
  ## Scope
47
47
 
48
48
  This Code of Conduct applies both within project spaces and in public spaces
49
49
  when an individual is representing the project or its community. Examples of
50
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
52
- appointed representative at an online or offline event. Representation of a
53
- project may be further defined and clarified by project maintainers.
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.
54
54
 
55
55
  ## Enforcement
56
56
 
data/Contributing.md CHANGED
@@ -1,22 +1,22 @@
1
1
  ## Contributing
2
2
 
3
3
  Contributions to mime-types-data is encouraged in any form: a bug report, new
4
- MIME type defintions, or additional code to help manage the MIME types. As with
4
+ MIME type definitions, or additional code to help manage the MIME types. As with
5
5
  many of my projects, I have a few suggestions for improving the chance of
6
6
  acceptance of your code contributions:
7
7
 
8
- * The support files are written in Ruby and should remain in the coding style
8
+ - The support files are written in Ruby and should remain in the coding style
9
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
10
+ - Use a thoughtfully-named topic branch that contains your change. Rebase your
11
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
12
+ - Use [quality commit messages][qcm].
13
+ - Do not change the version number; when your patch is accepted and a release
14
14
  is 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.
15
+ - Submit a GitHub pull request with your changes.
16
+ - New or changed behaviours require new or updated documentation.
17
17
 
18
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
19
+ the support files are written in Ruby, the _target_ of mime-types-data is any
20
20
  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.
@@ -26,35 +26,35 @@ other languages.
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
28
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
30
- files will require amendment to revert these files.
29
+ data in the `types` directory. Pull requests that include changes to these files
30
+ will require amendment to revert these files.
31
31
 
32
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
34
- in `types/application.yml`.
33
+ `types`. The format is as shown below for the `application/xml` MIME type in
34
+ `types/application.yml`.
35
35
 
36
36
  ```yaml
37
- - !ruby/object:MIME::Type
38
- content-type: application/xml
39
- encoding: 8bit
40
- extensions:
37
+ - !ruby/object:MIME::Type
38
+ content-type: application/xml
39
+ encoding: 8bit
40
+ extensions:
41
41
  - xml
42
42
  - xsl
43
- references:
43
+ references:
44
44
  - IANA
45
45
  - RFC3023
46
- xrefs: !ruby/hash:MIME::Types::Container
47
- rfc:
46
+ xrefs:
47
+ rfc:
48
48
  - rfc3023
49
- registered: true
49
+ registered: true
50
50
  ```
51
51
 
52
52
  There are other fields that can be added, matching the fields discussed in the
53
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
55
- convert the YAML files to JSON prior to a new release. I would rather not have
56
- to verify that the JSON matches the YAML changes, which is why it is not
57
- necessary to convert for the pull request.
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
58
 
59
59
  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
@@ -65,8 +65,25 @@ new columnar format.
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:
67
67
 
68
- $ rake mime:iana
69
- $ rake mime:apache
68
+ ```sh
69
+ $ rake mime:iana
70
+ $ rake mime:apache
71
+ ```
72
+
73
+ ##### A Note on Provisional Types
74
+
75
+ The file `types/provisional-standard-types.yaml` contains the provisionally
76
+ registered types from IANA. 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
+ 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.
70
87
 
71
88
  ### Development Dependencies
72
89
 
@@ -74,12 +91,16 @@ mime-types-data uses Ryan Davis’s {Hoe}[https://github.com/seattlerb/hoe] to
74
91
  manage the release process, and it adds a number of rake tasks. You will mostly
75
92
  be interested in:
76
93
 
77
- $ rake
94
+ ```sh
95
+ $ rake
96
+ ```
78
97
 
79
98
  which runs the tests the same way that:
80
99
 
81
- $ rake test
82
- $ rake travis
100
+ ```sh
101
+ $ rake test
102
+ $ rake travis
103
+ ```
83
104
 
84
105
  will do.
85
106
 
@@ -87,71 +108,134 @@ To assist with the installation of the development dependencies for
87
108
  mime-types-data, I have provided the simplest possible Gemfile pointing to the
88
109
  (generated) `mime-types-data.gemspec` file. This will permit you to do:
89
110
 
90
- $ bundle install
111
+ ```sh
112
+ $ bundle install
113
+ ```
91
114
 
92
115
  to get the development dependencies. If you aleady have `hoe` installed, you
93
116
  can accomplish the same thing with:
94
117
 
95
- $ rake newb
118
+ ```sh
119
+ $ rake newb
120
+ ```
96
121
 
97
122
  This task will install any missing dependencies, run the tests/specs, and
98
123
  generate the RDoc.
99
124
 
100
125
  You can run tests with code coverage analysis by running:
101
126
 
102
- $ rake test:coverage
127
+ ```sh
128
+ $ rake test:coverage
129
+ ```
103
130
 
104
131
  ### Workflow
105
132
 
106
133
  Here's the most direct way to get your work merged into the project:
107
134
 
108
- * Fork the project.
109
- * Clone down your fork (`git clone
110
- git://github.com/<username>/mime-types-data.git`).
111
- * Create a topic branch to contain your change (`git checkout -b
112
- my\_awesome\_feature`).
113
- * Hack away, add tests. Not necessarily in that order.
114
- * Make sure everything still passes by running `rake`.
115
- * If necessary, rebase your commits into logical chunks, without errors.
116
- * Push the branch up (`git push origin my\_awesome\_feature`).
117
- * Create a pull request against mime-types/mime-types-data and describe what
135
+ - Fork the project.
136
+ - Clone down your fork (`git clone git://github.com/<username>/mime-types-data.git`).
137
+ - Create a topic branch to contain your change (`git checkout -b my\_awesome\_feature`).
138
+ - Hack away, add tests. Not necessarily in that order.
139
+ - Make sure everything still passes by running `rake`.
140
+ - If necessary, rebase your commits into logical chunks, without errors.
141
+ - Push the branch up (`git push origin my\_awesome\_feature`).
142
+ - Create a pull request against mime-types/mime-types-data and describe what
118
143
  your change does and the why you think it should be merged.
119
144
 
145
+ ### The Release Process
146
+
147
+ The release process needs automation; as it includes generating code and
148
+ committing to the repository, it is not clear how this will happen safely.
149
+
150
+ 1. Review any outstanding issues or pull requests to see if anything needs to be
151
+ addressed. This is necessary because there is currently no automated source
152
+ for extensions for the thousands of MIME entries. (Suggestions and/or pull
153
+ requests for same would be deeply appreciated.)
154
+ 2. `bundle install`
155
+ 3. `bundle exec rake mime:apache`
156
+ 4. `bundle exec rake mime:iana`
157
+ 5. Review the changes to make sure that the changes are sane. The IANA data
158
+ source changes from time to time, resulting in big changes or even a broken
159
+ step 4. (The most recent change was the addition of the font/\* top-level
160
+ category.)
161
+ 6. `bundle exec rake convert`
162
+ 7. `bundle exec rake update:version`
163
+ 8. Write up the changes in History.md. If any PRs have been merged, these should
164
+ be noted specifically.
165
+ 9. Commit the changes and push to GitHub.
166
+ 10. `bundle exec rake release VERSION=newversion`
167
+
168
+ ### Automating the Release
169
+
170
+ If anyone wishes to provide suggestions on automation, this would be a two-phase
171
+ process:
172
+
173
+ 1. A system would need to periodically create PRs to the GitHub repository with
174
+ the output of the following commands (steps 2, 3, and 4):
175
+
176
+ ```sh
177
+ bundle install
178
+ bundle exec rake mime:apache
179
+ bundle exec rake mime:iana
180
+ git add .
181
+ git commit -m "[Automated] MIME Type update for $(date)"
182
+ # Somehow make the PR from here.
183
+ ```
184
+
185
+ 2. Once this PR is approved and merged, the next steps would be conversion,
186
+ version update, automatic update of History.md, and release (steps 6–10).
187
+
188
+ This is based on an issue [#18][].
189
+
120
190
  ### Contributors
121
191
 
122
- * Austin Ziegler created mime-types.
192
+ - Austin Ziegler created mime-types.
123
193
 
124
194
  Thanks to everyone else who has contributed to mime-types:
125
195
 
126
- * Aaron Patterson
127
- * Aggelos Avgerinos
128
- * Andre Pankratz
129
- * Andy Brody
130
- * Arnaud Meuret
131
- * Brandon Galbraith
132
- * Chris Gat
133
- * David Genord
134
- * Eric Marden
135
- * Garret Alfert
136
- * Godfrey Chan
137
- * Greg Brockman
138
- * Hans de Graaff
139
- * Henrik Hodne
140
- * Jeremy Evans
141
- * Juanito Fatas
142
- * Łukasz Śliwa
143
- * Keerthi Siva
144
- * Ken Ip
145
- * Martin d'Allens
146
- * Mauricio Linhares
147
- * nycvotes-dev
148
- * Postmodern
149
- * Richard Hirner
150
- * Richard Hurt
151
- * Richard Schneeman
152
- * Tao Guo
153
- * Tibor Szolár
154
- * Todd Carrico
196
+ - Aaron Patterson
197
+ - Aggelos Avgerinos
198
+ - Alessio Parma
199
+ - Alex Balhatchet
200
+ - Andre Pankratz
201
+ - Andrey Eremin
202
+ - Andy Brody
203
+ - Arnaud Meuret
204
+ - Bradley Meck
205
+ - Brandon Galbraith
206
+ - Chris Gat
207
+ - David Genord
208
+ - Eric Marden
209
+ - Garret Alfert
210
+ - Godfrey Chan
211
+ - Greg Brockman
212
+ - Hans de Graaff
213
+ - Henrik Hodne
214
+ - Jeremy Evans
215
+ - John Gardner
216
+ - Jon Sneyers
217
+ - Jonas Petersen
218
+ - Juanito Fatas
219
+ - Keerthi Siva
220
+ - Ken Ip
221
+ - Łukasz Śliwa
222
+ - Lucia
223
+ - Martin d'Allens
224
+ - Mauricio Linhares
225
+ - Myk Klemme
226
+ - nycvotes-dev
227
+ - Postmodern
228
+ - Richard Hirner
229
+ - Richard Hurt
230
+ - Richard Schneeman
231
+ - Robert Buchberger
232
+ - Sergio Baptista
233
+ - Tao Guo
234
+ - Thomas Leese
235
+ - Tibor Szolár
236
+ - Todd Carrico
237
+ - Yoran Brondsema
155
238
 
156
239
  [qcm]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
157
240
  [rmt]: https://github.com/mime-types/ruby-mime-types/
241
+ [#18]: https://github.com/mime-types/mime-types-data/issues/18