mime-types-data 3.2025.0107 → 3.2025.0204
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/CONTRIBUTING.md +61 -61
- data/CONTRIBUTORS.md +1 -0
- data/README.md +1 -0
- data/Rakefile +5 -0
- data/data/mime-types.json +1 -1
- data/data/mime.content_type.column +3 -0
- data/data/mime.docs.column +3 -0
- data/data/mime.encoding.column +3 -0
- data/data/mime.flags.column +3 -0
- data/data/mime.friendly.column +3 -0
- data/data/mime.pext.column +3 -0
- data/data/mime.use_instead.column +3 -0
- data/data/mime.xrefs.column +4 -1
- data/lib/mime/types/data.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 840c446d1416a5c5cdce532c70a53873b135ea1006944a4f1fe31e0f27c122ac
|
4
|
+
data.tar.gz: 200600d2dc811ddf4bbb0dbff135779fdb51ffacb59b40aa47d07c7e4a432798
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 140991f337bbd821c48a2d0b34d4af0648139a672a751732a832b468ef2871aa902297e416b233ea8ac9654a6e45efd05ae0e0c7d93a59484df3e342b51aa8b1
|
7
|
+
data.tar.gz: 5dbbe997eeee3f8ddb232666a09037ad275f53b73d7ab6e68434838f258b28c433a408e22ab51659216debcbdfdf8415c8a94944f996c4dcfae1db1d990407db
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,21 @@
|
|
2
2
|
|
3
3
|
<!-- automatic-release -->
|
4
4
|
|
5
|
+
## 3.2025.0204 / 2025-02-04
|
6
|
+
|
7
|
+
- Updated the Apache and IANA media registry entries as of release date
|
8
|
+
|
9
|
+
|
10
|
+
- Added the Changelog URL to the README so that RubyGems.org is updated with the
|
11
|
+
`changelog_uri` on release. Contributed by Mark Young in [#96][#96].
|
12
|
+
|
13
|
+
- Fixed an issue with automated releases that added thousands of files because
|
14
|
+
`vendor/` was no longer ignored.
|
15
|
+
|
16
|
+
- Fixed the automated release builder process to handle the case when the
|
17
|
+
`automatic-release` tag is followed by a `## NEXT / YYYY-MM-DD` header so that
|
18
|
+
changes merged normally are picked up on automatic releases. [#98][#98]
|
19
|
+
|
5
20
|
## 3.2025.0107 / 2025-01-07
|
6
21
|
|
7
22
|
- Updated the Apache and IANA media registry entries as of release date
|
@@ -629,6 +644,8 @@
|
|
629
644
|
[#55]: https://github.com/mime-types/mime-types-data/issues/55
|
630
645
|
[#77]: https://github.com/mime-types/mime-types-data/pull/77
|
631
646
|
[#81]: https://github.com/mime-types/mime-types-data/pull/81
|
647
|
+
[#96]: https://github.com/mime-types/mime-types-data/pull/96
|
648
|
+
[#98]: https://github.com/mime-types/mime-types-data/pull/98
|
632
649
|
[rmt]: https://github.com/mime-types/ruby-mime-types
|
633
650
|
[code of conduct]: Code-of-Conduct.md
|
634
651
|
[mini_mime]: https://github.com/discourse/mini_mime/issues/41
|
data/CONTRIBUTING.md
CHANGED
@@ -1,19 +1,38 @@
|
|
1
1
|
# Contributing
|
2
2
|
|
3
|
-
|
4
|
-
MIME type definitions, or additional code to help manage the MIME types.
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
- Use
|
13
|
-
|
14
|
-
|
15
|
-
-
|
16
|
-
|
3
|
+
Contribution to mime-types-data is encouraged in any form: a bug report, new
|
4
|
+
MIME type definitions, or additional code to help manage the MIME types. There
|
5
|
+
are a few DOs and DON'Ts for contributions.
|
6
|
+
|
7
|
+
- DO:
|
8
|
+
|
9
|
+
- Keep the coding style that already exists for any updated Ruby code (support
|
10
|
+
or otherwise). I use [Standard Ruby][standardrb] for linting and formatting.
|
11
|
+
|
12
|
+
- Use thoughtfully-named topic branches for contributions. Rebase your commits
|
13
|
+
into logical chunks as necessary.
|
14
|
+
|
15
|
+
- Use [quality commit messages][qcm].
|
16
|
+
|
17
|
+
- Add your name or GitHub handle to `CONTRIBUTORS.md` and a record in the
|
18
|
+
`CHANGELOG.md` as a separate commit from your main change. (Follow the style
|
19
|
+
in the `CHANGELOG.md` and provide a link to your PR.)
|
20
|
+
|
21
|
+
- DO NOT:
|
22
|
+
|
23
|
+
- Modify `VERSION` in `lib/mime/types/data.rb`. When your patch is accepted
|
24
|
+
and a release is made, the version will be updated at that point. Most
|
25
|
+
likely, once merged, your release will be rolled into the next automatic
|
26
|
+
release.
|
27
|
+
|
28
|
+
- Modify `mime-types-data.gemspec`; it is a generated file. (You _may_ use
|
29
|
+
`rake gemspec` to regenerate it if your change involves metadata related to
|
30
|
+
gem itself).
|
31
|
+
|
32
|
+
- Modify the `Gemfile`.
|
33
|
+
|
34
|
+
- Modify any files in `data/`. Any changes to be captured here will be
|
35
|
+
automatically updated on the next release.
|
17
36
|
|
18
37
|
Although mime-types-data was extracted from the [Ruby mime-types][rmt] gem and
|
19
38
|
the support files are written in Ruby, the _target_ of mime-types-data is any
|
@@ -26,8 +45,12 @@ other languages.
|
|
26
45
|
The Ruby mime-types gem loads its data from files encoded in the `data`
|
27
46
|
directory in this gem by loading `mime-types-data` and reading
|
28
47
|
MIME::Types::Data::PATH. These files are compiled files from the collection of
|
29
|
-
data in the `types` directory.
|
30
|
-
|
48
|
+
data in the `types` directory.
|
49
|
+
|
50
|
+
> [!WARNING]
|
51
|
+
>
|
52
|
+
> Pull requests that include changes to files in `data/` will require amendment
|
53
|
+
> to revert these files.
|
31
54
|
|
32
55
|
New or modified MIME types should be edited in the appropriate YAML file under
|
33
56
|
`types`. The format is as shown below for the `application/xml` MIME type in
|
@@ -85,66 +108,43 @@ customize provisional types (such as with extensions) are considered lower
|
|
85
108
|
priority. It is recommended that any updates required to the data be performed
|
86
109
|
in your application if you require provisional types.
|
87
110
|
|
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
111
|
## The Release Process
|
122
112
|
|
123
|
-
The release process is
|
124
|
-
|
125
|
-
|
113
|
+
The release process is almost completely automated, where upstream MIME types
|
114
|
+
will be updated weekly (on Tuesdays) and be presented in a reviewable pull
|
115
|
+
request. Once merged, I need to perform a release and the update is complete.
|
116
|
+
|
117
|
+
If performing a manual release outside of the update cycle, the IANA updates
|
118
|
+
should be performed manually.
|
126
119
|
|
127
120
|
1. Review any outstanding issues or pull requests to see if anything needs to be
|
128
121
|
addressed. This is necessary because there is no automated source for
|
129
122
|
extensions for the thousands of MIME entries. (Suggestions and/or pull
|
130
123
|
requests for same would be deeply appreciated.)
|
131
124
|
2. `bundle install`
|
132
|
-
3.
|
133
|
-
4. `bundle exec rake mime:iana`
|
134
|
-
5. Review the changes to make sure that the changes are sane. The IANA data
|
125
|
+
3. Review the changes to make sure that the changes are sane. The IANA data
|
135
126
|
source changes from time to time, resulting in big changes or even a broken
|
136
127
|
step 4. (The most recent change was the addition of the `font/*` top-level
|
137
128
|
category.)
|
138
|
-
|
139
|
-
7. `bundle exec rake update:version`
|
140
|
-
8. Write up the changes in `CHANGELOG.md`. If any PRs have been merged, these
|
129
|
+
4. Write up the changes in `CHANGELOG.md`. If any PRs have been merged, these
|
141
130
|
should be noted specifically and contributions should be added in
|
142
131
|
`Contributing.md`.
|
143
|
-
|
144
|
-
|
132
|
+
5. Commit the changes and push to GitHub.
|
133
|
+
6. `bundle exec rake release VERSION=newversion`
|
145
134
|
|
146
135
|
This is based on an issue [#18][#18].
|
147
136
|
|
137
|
+
### Help Wanted
|
138
|
+
|
139
|
+
I want to automate this even further. I am **not** switching from Hoe for
|
140
|
+
release management, so the use of [rubygems/release-gem][release-gem] requires
|
141
|
+
some care (perhaps by exporting `VERSION=$(rake version)` to the job), but
|
142
|
+
assistance in getting this action going for an automated release would be
|
143
|
+
greatly appreciated.
|
144
|
+
|
145
|
+
[#18]: https://github.com/mime-types/mime-types-data/issues/18
|
146
|
+
[hoe]: https://github.com/seattlerb/hoe
|
148
147
|
[qcm]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
|
148
|
+
[release-gem]: https://github.com/rubygems/release-gem
|
149
149
|
[rmt]: https://github.com/mime-types/ruby-mime-types/
|
150
|
-
[
|
150
|
+
[standardrb]: https://github.com/standardrb/standard
|
data/CONTRIBUTORS.md
CHANGED
data/README.md
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
- home :: https://github.com/mime-types/mime-types-data/
|
4
4
|
- issues :: https://github.com/mime-types/mime-types-data/issues
|
5
5
|
- code :: https://github.com/mime-types/mime-types-data/
|
6
|
+
- changelog :: https://github.com/mime-types/mime-types-data/blob/main/CHANGELOG.md
|
6
7
|
|
7
8
|
## Description
|
8
9
|
|