mime-types-data 3.2025.0107 → 3.2025.0304
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 +68 -39
- data/CONTRIBUTING.md +61 -61
- data/CONTRIBUTORS.md +2 -0
- data/README.md +1 -0
- data/Rakefile +8 -1
- data/data/mime-types.json +1 -1
- data/data/mime.content_type.column +5 -0
- data/data/mime.docs.column +5 -0
- data/data/mime.encoding.column +5 -0
- data/data/mime.flags.column +5 -0
- data/data/mime.friendly.column +5 -0
- data/data/mime.pext.column +5 -0
- data/data/mime.use_instead.column +5 -0
- data/data/mime.xrefs.column +7 -2
- data/lib/mime/types/data.rb +1 -1
- metadata +6 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e46111f483946285ff4e8814e376456c819301fdf578c267de76f40ad203c3f
|
4
|
+
data.tar.gz: 4d4d9149b0bb695ab7772c6ed78ef914cec56d35a0e4c5c97896db768d53c65a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc49195696ae2836b1b1936ec4b2d18b247bf08cab763a1df5f332b09992954933dda6a8239ee8b58a6df271f22a931e9f494c2d011a17a2b2b573399ef66465
|
7
|
+
data.tar.gz: 1939f440fbd005a499892f7e669ab530153159f8693fffb25720c672a19d55381a5cf55c826912f482db274709f6d33655f2d531ae44bb75c648e427ee5b3074
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,31 @@
|
|
2
2
|
|
3
3
|
<!-- automatic-release -->
|
4
4
|
|
5
|
+
## 3.2025.0304 / 2025-03-04
|
6
|
+
|
7
|
+
- Updated the Apache and IANA media registry entries as of release date
|
8
|
+
|
9
|
+
## 3.2025.0220 / 2025-02-20
|
10
|
+
|
11
|
+
- Updated the Apache and IANA media registry entries as of release date
|
12
|
+
|
13
|
+
- Added [trusted publishing][tp] for fully automated releases. Developed by
|
14
|
+
Samuel Giddins in [#109][pull-109], merged manually with some updates.
|
15
|
+
|
16
|
+
## 3.2025.0204 / 2025-02-04
|
17
|
+
|
18
|
+
- Updated the Apache and IANA media registry entries as of release date
|
19
|
+
|
20
|
+
- Added the Changelog URL to the README so that RubyGems.org is updated with the
|
21
|
+
`changelog_uri` on release. Contributed by Mark Young in [#96][pull-96].
|
22
|
+
|
23
|
+
- Fixed an issue with automated releases that added thousands of files because
|
24
|
+
`vendor/` was no longer ignored.
|
25
|
+
|
26
|
+
- Fixed the automated release builder process to handle the case when the
|
27
|
+
`automatic-release` tag is followed by a `## NEXT / YYYY-MM-DD` header so that
|
28
|
+
changes merged normally are picked up on automatic releases. [#98][pull-98]
|
29
|
+
|
5
30
|
## 3.2025.0107 / 2025-01-07
|
6
31
|
|
7
32
|
- Updated the Apache and IANA media registry entries as of release date
|
@@ -40,7 +65,7 @@
|
|
40
65
|
- Updated the Apache and IANA media registry entries as of release date.
|
41
66
|
|
42
67
|
- Added `.jxl` extension for `image/jxl`. Contributed by Shane Eskritt in
|
43
|
-
[#81][
|
68
|
+
[#81][pull-81].
|
44
69
|
|
45
70
|
## 3.2024.0806 / 2024-08-06
|
46
71
|
|
@@ -55,7 +80,7 @@
|
|
55
80
|
- This update adds a new `haptics/` group with three media types defined.
|
56
81
|
|
57
82
|
- Moved extensions from `audio/x-aac` to `audio/aac` and mark `audio/x-aac` as
|
58
|
-
obsolete. Based on [#77][
|
83
|
+
obsolete. Based on [#77][pull-77] by Samuel Williams.
|
59
84
|
|
60
85
|
- Made the same changes for `audio/flac` and `audio/matroska`.
|
61
86
|
|
@@ -118,8 +143,8 @@
|
|
118
143
|
information available to deprecate `text/javascript` in favour of
|
119
144
|
`application/javascript`. Since the previous update (2022-01-05), IANA has
|
120
145
|
officially deprecated `application/javascript` in favour of `text/javascript`.
|
121
|
-
Samuel Williams discovered this in [#55][
|
122
|
-
were marked obsolete in version 3.2023.0218.
|
146
|
+
Samuel Williams discovered this in [#55][issue-55] by noting that all `js`
|
147
|
+
types were marked obsolete in version 3.2023.0218.
|
123
148
|
|
124
149
|
A hotfix has been applied to resolve this. However, note that
|
125
150
|
`application/javascript` will not be returned by default, only
|
@@ -130,15 +155,15 @@
|
|
130
155
|
- Updated the Apache and IANA media registry entries as of release date.
|
131
156
|
|
132
157
|
- Mohammed Gad added the `jfif` file extension for `image/jpeg` text format.
|
133
|
-
[#52][
|
158
|
+
[#52][pull-52]
|
134
159
|
|
135
160
|
- Reworked the loading of IANA provisional media registries to merge them into
|
136
161
|
the top-level media-type registries instead of a standalone registry file.
|
137
|
-
[#53][
|
162
|
+
[#53][pull-53] originally identified by Chris Salzberg in [#50][pull-50].
|
138
163
|
|
139
164
|
It is worth noting that this is an _imperfect_ solution as if a media type is
|
140
165
|
provisionally registered and withdrawn, it will linger in the registry with no
|
141
|
-
clean way of identifying them at the moment. See [#54][
|
166
|
+
clean way of identifying them at the moment. See [#54][issue-54].
|
142
167
|
|
143
168
|
This release also fixes [ruby-mime-types#163][ruby-mime-types#163], where logs
|
144
169
|
show "Type application/netcdf is already registered as a variant of
|
@@ -149,25 +174,25 @@
|
|
149
174
|
- Updated the Apache and IANA media registry entries as of release date.
|
150
175
|
|
151
176
|
- Fixed an incorrect definition of `image/bmp`, which had been marked obsolete
|
152
|
-
and later registered. Fixed [#48][
|
177
|
+
and later registered. Fixed [#48][issue-48], found by William T. Nelson.
|
153
178
|
|
154
179
|
## 3.2021.1115 / 2021-11-15
|
155
180
|
|
156
181
|
- Updated the Apache and IANA media registry entries as of release date.
|
157
182
|
|
158
183
|
- Added conversion utilities that support the `mini_mime` data format. These
|
159
|
-
have been ported from the [
|
184
|
+
have been ported from the [mini\_mime][mini_mime] repository. [#47][pull-47]
|
160
185
|
|
161
|
-
- Added IANA provisional media registries. Added some notes to
|
186
|
+
- Added IANA provisional media registries. Added some notes to CONTRIBUTING.md
|
162
187
|
about the transient nature of the provisional registration data. This was
|
163
|
-
triggered in part by a pull request by Jon Sneyers. Thanks! [#45][
|
164
|
-
[#43][
|
188
|
+
triggered in part by a pull request by Jon Sneyers. Thanks! [#45][pull-45],
|
189
|
+
[#43][pull-43]
|
165
190
|
|
166
191
|
## 3.2021.0901 / 2021-09-01
|
167
192
|
|
168
193
|
- Updated the Apache and IANA media registry entries as of release date.
|
169
194
|
|
170
|
-
- Added file extension for WebVTT text format. [#46][
|
195
|
+
- Added file extension for WebVTT text format. [#46][pull-46]
|
171
196
|
|
172
197
|
## 3.2021.0704 / 2021-07-04
|
173
198
|
|
@@ -177,7 +202,7 @@
|
|
177
202
|
|
178
203
|
- Updated the Apache and IANA media registry entries as of release date.
|
179
204
|
|
180
|
-
- Added file extension for AVIF video format. [#40][
|
205
|
+
- Added file extension for AVIF video format. [#40][pull-40]
|
181
206
|
|
182
207
|
## 3.2021.0212 / 2021-02-12
|
183
208
|
|
@@ -192,67 +217,68 @@
|
|
192
217
|
|
193
218
|
- Updated the IANA media registry entries as of release date.
|
194
219
|
|
195
|
-
- Added `application/x-zip-compressed`. [#36][
|
220
|
+
- Added `application/x-zip-compressed`. [#36][pull-36]
|
196
221
|
|
197
222
|
- Updated the contributing guide to include information about the release
|
198
|
-
process as described in [#18][
|
223
|
+
process as described in [#18][issue-18]
|
199
224
|
|
200
|
-
- Corrected a misspelling of Yoran Brondsema
|
225
|
+
- Corrected a misspelling of Yoran Brondsema's name. Sorry, Yoran.
|
226
|
+
[#35][pull-35]
|
201
227
|
|
202
228
|
## 3.2020.0512 / 2020-05-12
|
203
229
|
|
204
230
|
- Updated the IANA media registry entries as of release date.
|
205
231
|
|
206
|
-
- Added file extensions for HEIC image types. [#34][
|
232
|
+
- Added file extensions for HEIC image types. [#34][pull-34]
|
207
233
|
|
208
234
|
## 3.2020.0425 / 2020-04-25
|
209
235
|
|
210
236
|
- Updated the IANA media registry entries as of release date.
|
211
237
|
|
212
238
|
- Added several RAW image types based on data from GNOME RAW Thumbnailer.
|
213
|
-
[#33][
|
239
|
+
[#33][pull-33] fixing [#32][issue-32]
|
214
240
|
|
215
|
-
- Added `audio/wav`. [#31][
|
241
|
+
- Added `audio/wav`. [#31][pull-31]
|
216
242
|
|
217
|
-
- Added a type for Smarttech notebook files. [#30][
|
243
|
+
- Added a type for Smarttech notebook files. [#30][pull-30]
|
218
244
|
|
219
|
-
- Added an alias for audio/m4a files. [#29][
|
245
|
+
- Added an alias for audio/m4a files. [#29][pull-29]
|
220
246
|
|
221
|
-
- Added application/x-ms-dos-executable. [#28][
|
247
|
+
- Added application/x-ms-dos-executable. [#28][pull-28]
|
222
248
|
|
223
249
|
## 3.2019.1009 / 2019-10-09
|
224
250
|
|
225
251
|
- Updated the IANA media registry entries as of release date.
|
226
252
|
|
227
253
|
- Reordered the `.ai` extension so that it is not the preferred extension for
|
228
|
-
`application/pdf` [#24][
|
254
|
+
`application/pdf` [#24][pull-24]
|
229
255
|
|
230
256
|
## 3.2019.0904 / 2019-09-04
|
231
257
|
|
232
258
|
- Updated the IANA media registry entries as of release date.
|
233
259
|
|
234
260
|
- Moved the `.ai` extension from `application/postscript` to `application/pdf`.
|
235
|
-
[#23][
|
261
|
+
[#23][pull-23] fixing [#22][issue-22]
|
236
262
|
|
237
263
|
## 3.2019.0331 / 2019-03-31
|
238
264
|
|
239
265
|
- Updated the IANA media registry entries as of release date.
|
240
266
|
|
241
|
-
- Added support for `application/wasm` with extension `.wasm`. [#21][
|
267
|
+
- Added support for `application/wasm` with extension `.wasm`. [#21][pull-21]
|
242
268
|
|
243
|
-
- Fixed `application/ecmascript` extensions. [#20][
|
269
|
+
- Fixed `application/ecmascript` extensions. [#20][pull-20]
|
244
270
|
|
245
271
|
## 3.2018.0812 / 2018-08-12
|
246
272
|
|
247
|
-
- Added `.xsd` extension to `text/xml`. [#10][
|
273
|
+
- Added `.xsd` extension to `text/xml`. [#10][pull-10]
|
248
274
|
|
249
275
|
- Added `.js` and `.mjs` extensions to `text/ecmascript` and `text/javascript`.
|
250
|
-
[#11][
|
276
|
+
[#11][pull-11]
|
251
277
|
|
252
|
-
- Added `.ipa` extension to `application/octet-stream`. [#12][
|
278
|
+
- Added `.ipa` extension to `application/octet-stream`. [#12][pull-12]
|
253
279
|
|
254
280
|
- Moved extensions `.markdown` and `.md` and added `.mkd` extension to
|
255
|
-
`text/markdown`. [#13][
|
281
|
+
`text/markdown`. [#13][pull-13]
|
256
282
|
|
257
283
|
- Because of a bug found with mime-types 3 before 3.2.1, this version requires
|
258
284
|
mime-types 3.1 or later to manage data.
|
@@ -271,7 +297,7 @@
|
|
271
297
|
- Updated the known extension list for application/octet-stream and
|
272
298
|
application/pgp-encrypted to include gpg as an extension. Fixes
|
273
299
|
[#3](https://github.com/mime-types/mime-types-data/pull/3) by Tao Guo
|
274
|
-
(@taoza).
|
300
|
+
([@taoza](https://github.com/taoza)).
|
275
301
|
- Updated the IANA media registry entries as of release date:
|
276
302
|
|
277
303
|
- Updated metadata for application/EmergencyCallData.Comment+xml,
|
@@ -324,7 +350,7 @@
|
|
324
350
|
## 3.2015.1120 / 2015-11-20
|
325
351
|
|
326
352
|
- Extracted from [ruby-mime-types][rmt].
|
327
|
-
- Added a [Code of Conduct].
|
353
|
+
- Added a [Code of Conduct][Code of Conduct].
|
328
354
|
- The versioning has changed to be semantic on format plus date in two parts.
|
329
355
|
|
330
356
|
- All registry formats have been updated to remove deprecated data.
|
@@ -365,7 +391,7 @@
|
|
365
391
|
|
366
392
|
## 2.6 / 2015-05-25
|
367
393
|
|
368
|
-
- Steven Michael Thomas (@stevenmichaelthomas) added `woff2` as an extension to
|
394
|
+
- Steven Michael Thomas ([@stevenmichaelthomas](https://github.com/stevenmichaelthomas)) added `woff2` as an extension to
|
369
395
|
application/font-woff, [ruby-mime-types#99][ruby-mime-types#99].
|
370
396
|
- Updated the IANA media registry entries as of release date:
|
371
397
|
- Updated metadata for application/jose, application/jose+json,
|
@@ -397,17 +423,17 @@
|
|
397
423
|
(RFC7396), application/smil, application/vnd.arastra.swi,
|
398
424
|
application/vnd.geocube+xml, application/vnd.gmx, application/xhtml+xml,
|
399
425
|
text/directory.
|
400
|
-
- Andy Brody (@ab) fixed a pair of embarrassing typos in text/csv and
|
426
|
+
- Andy Brody ([@ab](https://github.com/ab)) fixed a pair of embarrassing typos in text/csv and
|
401
427
|
text/tab-separated-values,
|
402
428
|
[ruby-mime-types#89](https://github.com/mime-types/ruby-mime-types/pull/89).
|
403
|
-
- Aggelos Avgerinos (@eavgerinos) added the unregistered MIME type
|
429
|
+
- Aggelos Avgerinos ([@eavgerinos](https://github.com/eavgerinos)) added the unregistered MIME type
|
404
430
|
image/x-ms-bmp with the extension `bmp`,
|
405
431
|
[ruby-mime-types#90](https://github.com/mime-types/ruby-mime-types/pull/90).
|
406
432
|
|
407
433
|
## 2.4.2 / 2014-10-15
|
408
434
|
|
409
435
|
- Added application/vnd.ms-outlook as an unregistered MIME type with the
|
410
|
-
extension `msg`. Provided by @keerthisiv in
|
436
|
+
extension `msg`. Provided by [@keerthisiv](https://github.com/keerthisiv) in
|
411
437
|
[ruby-mime-types#72](https://github.com/mime-types/ruby-mime-types/pull/72).
|
412
438
|
|
413
439
|
## 2.4.1 / 2014-10-07
|
@@ -465,7 +491,7 @@
|
|
465
491
|
## 2.2 / 2014-03-14
|
466
492
|
|
467
493
|
- Added <tt>.sj</tt> to `application/javascript` as provided by Brandon
|
468
|
-
Galbraith (@brandongalbraith) in
|
494
|
+
Galbraith ([@brandongalbraith](https://github.com/brandongalbraith)) in
|
469
495
|
[ruby-mime-types#58](https://github.com/mime-types/ruby-mime-types/pull/58).
|
470
496
|
- Marked application/excel and application/x-excel as obsolete in favour of
|
471
497
|
application/vnd.ms-excel per
|
@@ -629,8 +655,11 @@
|
|
629
655
|
[#55]: https://github.com/mime-types/mime-types-data/issues/55
|
630
656
|
[#77]: https://github.com/mime-types/mime-types-data/pull/77
|
631
657
|
[#81]: https://github.com/mime-types/mime-types-data/pull/81
|
658
|
+
[#96]: https://github.com/mime-types/mime-types-data/pull/96
|
659
|
+
[#98]: https://github.com/mime-types/mime-types-data/pull/98
|
632
660
|
[rmt]: https://github.com/mime-types/ruby-mime-types
|
633
|
-
[code of conduct]:
|
661
|
+
[code of conduct]: CODE_OF_CONDUCT.md
|
634
662
|
[mini_mime]: https://github.com/discourse/mini_mime/issues/41
|
635
663
|
[ruby-mime-types#99]: https://github.com/mime-types/ruby-mime-types/pull/99
|
636
664
|
[ruby-mime-types#163]: https://github.com/mime-types/ruby-mime-types/issues/163
|
665
|
+
[tp]: https://guides.rubygems.org/trusted-publishing/
|
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
|
-
##
|
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:
|
111
|
+
## The Release Process
|
108
112
|
|
109
|
-
|
110
|
-
|
111
|
-
|
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.
|
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.
|
120
116
|
|
121
|
-
|
117
|
+
With the addition of [trusted publishing][tp], there should no longer be a need
|
118
|
+
for manual releases outside of the update cycle. Pull requests merged between
|
119
|
+
cycles will be released on the next cycle.
|
122
120
|
|
123
|
-
|
124
|
-
|
125
|
-
a final step of checking for IANA updates should be performed.
|
121
|
+
If it becomes necessary to perform a manual release, IANA updates should be
|
122
|
+
performed manually.
|
126
123
|
|
127
124
|
1. Review any outstanding issues or pull requests to see if anything needs to be
|
128
125
|
addressed. This is necessary because there is no automated source for
|
129
126
|
extensions for the thousands of MIME entries. (Suggestions and/or pull
|
130
127
|
requests for same would be deeply appreciated.)
|
131
128
|
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
|
129
|
+
3. Review the changes to make sure that the changes are sane. The IANA data
|
135
130
|
source changes from time to time, resulting in big changes or even a broken
|
136
131
|
step 4. (The most recent change was the addition of the `font/*` top-level
|
137
132
|
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
|
133
|
+
4. Write up the changes in `CHANGELOG.md`. If any PRs have been merged, these
|
141
134
|
should be noted specifically and contributions should be added in
|
142
135
|
`Contributing.md`.
|
143
|
-
|
144
|
-
|
136
|
+
5. Ensure that the `VERSION` in `lib/mime/types/data.rb` is updated with the
|
137
|
+
current date UTC.
|
138
|
+
6. Run `rake gemspec` to ensure that `mime-types.gemspec` has been updated.
|
139
|
+
7. Commit the changes and push to GitHub. The automated trusted publishing
|
140
|
+
workflow will pick up the changes.
|
145
141
|
|
146
|
-
This is based on an issue [#18][
|
142
|
+
This is based on an issue [#18][issue-18].
|
147
143
|
|
144
|
+
[issue-18]: https://github.com/mime-types/mime-types-data/issues/18
|
145
|
+
[hoe]: https://github.com/seattlerb/hoe
|
148
146
|
[qcm]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
|
147
|
+
[release-gem]: https://github.com/rubygems/release-gem
|
149
148
|
[rmt]: https://github.com/mime-types/ruby-mime-types/
|
150
|
-
[
|
149
|
+
[standardrb]: https://github.com/standardrb/standard
|
150
|
+
[tp]: https://guides.rubygems.org/trusted-publishing/
|
data/CONTRIBUTORS.md
CHANGED
@@ -32,6 +32,7 @@ Thanks to everyone else who has contributed to mime-types:
|
|
32
32
|
- Ken Ip
|
33
33
|
- Łukasz Śliwa
|
34
34
|
- Lucia
|
35
|
+
- Mark Young
|
35
36
|
- Martin d'Allens
|
36
37
|
- Mauricio Linhares
|
37
38
|
- Mohammed Gad
|
@@ -42,6 +43,7 @@ Thanks to everyone else who has contributed to mime-types:
|
|
42
43
|
- Richard Hurt
|
43
44
|
- Richard Schneeman
|
44
45
|
- Robert Buchberger
|
46
|
+
- Samuel Giddins
|
45
47
|
- Samuel Williams
|
46
48
|
- Sergio Baptista
|
47
49
|
- Shane Eskritt
|
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
|
|
data/Rakefile
CHANGED
@@ -17,6 +17,8 @@ Hoe.plugins.delete :signing
|
|
17
17
|
Hoe.spec "mime-types-data" do
|
18
18
|
developer("Austin Ziegler", "halostatue@gmail.com")
|
19
19
|
|
20
|
+
self.trusted_release = ENV["rubygems_release_gem"] == "true"
|
21
|
+
|
20
22
|
require_ruby_version ">= 2.0"
|
21
23
|
|
22
24
|
license "MIT"
|
@@ -26,7 +28,7 @@ Hoe.spec "mime-types-data" do
|
|
26
28
|
}
|
27
29
|
|
28
30
|
extra_dev_deps << ["hoe", "~> 4.0"]
|
29
|
-
extra_dev_deps << ["hoe-halostatue", "~>
|
31
|
+
extra_dev_deps << ["hoe-halostatue", "~> 2.0"]
|
30
32
|
extra_dev_deps << ["mime-types", ">= 3.4.0", "< 4"]
|
31
33
|
extra_dev_deps << ["nokogiri", "~> 1.6"]
|
32
34
|
extra_dev_deps << ["rake", ">= 10.0", "< 14"]
|
@@ -47,6 +49,11 @@ namespace :mime do
|
|
47
49
|
end
|
48
50
|
end
|
49
51
|
|
52
|
+
task :version do
|
53
|
+
require "mime/types/data"
|
54
|
+
puts MIME::Types::Data::VERSION
|
55
|
+
end
|
56
|
+
|
50
57
|
namespace :release do
|
51
58
|
desc "Prepare a new release"
|
52
59
|
task :prepare do
|