Skip to content

Commit

Permalink
Update 3.2020.1104
Browse files Browse the repository at this point in the history
  • Loading branch information
halostatue committed Nov 5, 2020
1 parent 4533f61 commit 44bce29
Show file tree
Hide file tree
Showing 19 changed files with 617 additions and 83 deletions.
76 changes: 68 additions & 8 deletions Contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,41 +65,53 @@ new columnar format.
If you are maintaining a private fork and wish to update your copy of the MIME
types registry used by this gem, you can do this with the rake tasks:

$ rake mime:iana
$ rake mime:apache
```sh
$ rake mime:iana
$ rake mime:apache
```

### Development Dependencies

mime-types-data uses Ryan Davis’s {Hoe}[https://github.com/seattlerb/hoe] to
manage the release process, and it adds a number of rake tasks. You will mostly
be interested in:

$ rake
```sh
$ rake
```

which runs the tests the same way that:

$ rake test
$ rake travis
```sh
$ rake test
$ rake travis
```

will do.

To assist with the installation of the development dependencies for
mime-types-data, I have provided the simplest possible Gemfile pointing to the
(generated) `mime-types-data.gemspec` file. This will permit you to do:

$ bundle install
```sh
$ bundle install
```

to get the development dependencies. If you aleady have `hoe` installed, you
can accomplish the same thing with:

$ rake newb
```sh
$ rake newb
```

This task will install any missing dependencies, run the tests/specs, and
generate the RDoc.

You can run tests with code coverage analysis by running:

$ rake test:coverage
```sh
$ rake test:coverage
```

### Workflow

Expand All @@ -115,6 +127,51 @@ Here's the most direct way to get your work merged into the project:
- Create a pull request against mime-types/mime-types-data and describe what
your change does and the why you think it should be merged.

### The Release Process

The release process needs automation; as it includes generating code and
committing to the repository, it is not clear how this will happen safely.

1. Review any outstanding issues or pull requests to see if anything needs to
be addressed. This is necessary because there is currently no automated
source for extensions for the thousands of MIME entries. (Suggestions and/or
pull requests for same would be deeply appreciated.)
2. `bundle install`
3. `bundle exec rake mime:apache`
4. `bundle exec rake mime:iana`
5. Review the changes to make sure that the changes are sane. The IANA data
source changes from time to time, resulting in big changes or even a broken
step 4. (The most recent change was the addition of the font/\* top-level
category.)
6. `bundle exec rake convert`
7. `bundle exec rake update:version`
8. Write up the changes in History.md. If any PRs have been merged, these
should be noted specifically.
9. Commit the changes and push to GitHub.
10. `bundle exec rake release VERSION=newversion`

### Automating the Release

If anyone wishes to provide suggestions on automation, this would be a
two-phase process:

1. A system would need to periodically create PRs to the GitHub repository
with the output of the following commands (steps 2, 3, and 4):

```sh
bundle install
bundle exec rake mime:apache
bundle exec rake mime:iana
git add .
git commit -m "[Automated] MIME Type update for $(date)"
# Somehow make the PR from here.
```

2. Once this PR is approved and merged, the next steps would be conversion,
version update, automatic update of History.md, and release (steps 6–10).

This is based on an issue [#18][].

### Contributors

- Austin Ziegler created mime-types.
Expand All @@ -124,6 +181,7 @@ Thanks to everyone else who has contributed to mime-types:
- Aaron Patterson
- Aggelos Avgerinos
- Alessio Parma
- Alex Balhatchet
- Andre Pankratz
- Andrey Eremin
- Andy Brody
Expand All @@ -147,6 +205,7 @@ Thanks to everyone else who has contributed to mime-types:
- Lucia
- Martin d'Allens
- Mauricio Linhares
- Myk Klemme
- nycvotes-dev
- Postmodern
- Richard Hirner
Expand All @@ -161,3 +220,4 @@ Thanks to everyone else who has contributed to mime-types:

[qcm]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
[rmt]: https://github.com/mime-types/ruby-mime-types/
[#18]: https://github.com/mime-types/mime-types-data/issues/18
24 changes: 19 additions & 5 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
# MIME Types Changes by Version

## 3.2020.05.12 / 2020-05-12
## 3.2020.1104 / 2020-11-04

- Updated the IANA media registry entires as of release date.
- Updated the IANA media registry entries as of release date.

- Added `application/x-zip-compressed`. [#36][].

- Updated the contributing guide to include information about the release
process as described in [#18][].

- Corrected a misspelling of Yoran Brondsema’s name. Sorry, Yoran. [#35][].

## 3.2020.0512 / 2020-05-12

- Updated the IANA media registry entries as of release date.

- Added file extensions for HEIC image types. [#34][].

## 3.2020.04.25 / 2020-04-25
## 3.2020.0425 / 2020-04-25

- Updated the IANA media registry entires as of release date.
- Updated the IANA media registry entries as of release date.

- Added several RAW image types based on data from GNOME RAW Thumbnailer.
[#33][] fixing [#32][].
Expand All @@ -21,7 +32,7 @@

- Added application/x-ms-dos-executable. [#28][].

## 3.2019.10.09 / 2019-10-09
## 3.2019.1009 / 2019-10-09

- Updated the IANA media registry entries as of release date.

Expand Down Expand Up @@ -420,6 +431,7 @@
[#11]: https://github.com/mime-types/mime-types-data/pull/11
[#12]: https://github.com/mime-types/mime-types-data/pull/12
[#13]: https://github.com/mime-types/mime-types-data/pull/13
[#18]: https://github.com/mime-types/mime-types-data/issues/18
[#20]: https://github.com/mime-types/mime-types-data/pull/20
[#21]: https://github.com/mime-types/mime-types-data/pull/21
[#22]: https://github.com/mime-types/mime-types-data/issues/22
Expand All @@ -432,5 +444,7 @@
[#32]: https://github.com/mime-types/mime-types-data/issues/32
[#33]: https://github.com/mime-types/mime-types-data/pull/33
[#34]: https://github.com/mime-types/mime-types-data/pull/34
[#35]: https://github.com/mime-types/mime-types-data/pull/35
[#36]: https://github.com/mime-types/mime-types-data/pull/36
[rmt]: https://github.com/mime-types/ruby-mime-types
[code of conduct]: Code-of-Conduct.md
2 changes: 1 addition & 1 deletion data/mime-types.json

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions data/mime.content_type.column
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ application/call-completion
application/cals-1840
application/cals1840
application/cap+xml
application/captive+json
application/cbor
application/cbor-seq
application/cccex
Expand All @@ -64,6 +65,7 @@ application/cea-2018+xml
application/cellml+xml
application/cfw
application/clariscad
application/clr
application/clue+xml
application/clue_info+xml
application/cms
Expand Down Expand Up @@ -111,6 +113,7 @@ application/EDI-consent
application/EDI-X12
application/EDIFACT
application/efi
application/EmergencyCallData.cap+xml
application/EmergencyCallData.Comment+xml
application/EmergencyCallData.Control+xml
application/EmergencyCallData.DeviceInfo+xml
Expand Down Expand Up @@ -277,6 +280,7 @@ application/oebps-package+xml opf
application/ogg ogx
application/omdoc+xml omdoc
application/onenote onepkg onetmp onetoc onetoc2
application/opc-nodeset+xml
application/oscore
application/oxps oxps
application/p2p-overlay+xml
Expand Down Expand Up @@ -314,6 +318,7 @@ application/problem+xml
application/provenance+xml
application/prs.alvestrand.titrax-sheet
application/prs.cww cw cww
application/prs.cyn
application/prs.hpub+zip
application/prs.nprend rnd rct
application/prs.plucker
Expand Down Expand Up @@ -352,6 +357,7 @@ application/rtploopback
application/rtx
application/samlassertion+xml
application/samlmetadata+xml
application/sarif+json
application/sbe
application/sbml+xml sbml
application/scaip+xml
Expand Down Expand Up @@ -454,6 +460,7 @@ application/vnd.3gpp-v2x-local-service-information
application/vnd.3gpp.access-transfer-events+xml
application/vnd.3gpp.bsf+xml
application/vnd.3gpp.GMOP+xml
application/vnd.3gpp.interworking-data
application/vnd.3gpp.mc-signalling-ear
application/vnd.3gpp.mcdata-affiliation-command+xml
application/vnd.3gpp.mcdata-info+xml
Expand Down Expand Up @@ -510,10 +517,12 @@ application/vnd.adobe.xfdf xfdf
application/vnd.aether.imp
application/vnd.afpc.afplinedata
application/vnd.afpc.afplinedata-pagedef
application/vnd.afpc.cmoca-cmresource
application/vnd.afpc.foca-charset
application/vnd.afpc.foca-codedfont
application/vnd.afpc.foca-codepage
application/vnd.afpc.modca
application/vnd.afpc.modca-cmtable
application/vnd.afpc.modca-formdef
application/vnd.afpc.modca-mediummap
application/vnd.afpc.modca-objectcontainer
Expand Down Expand Up @@ -630,6 +639,8 @@ application/vnd.curl.pcurl pcurl
application/vnd.cyan.dean.root+xml
application/vnd.cybank
application/vnd.d2l.coursepackage1p0+zip
application/vnd.d3m-dataset
application/vnd.d3m-problem
application/vnd.dart dart
application/vnd.data-vision.rdz rdz
application/vnd.datapackage+json
Expand Down Expand Up @@ -771,6 +782,7 @@ application/vnd.gentics.grd+json
application/vnd.geo+json
application/vnd.geocube+xml
application/vnd.geogebra.file ggb
application/vnd.geogebra.slides
application/vnd.geogebra.tool ggt
application/vnd.geometry-explorer gex gre
application/vnd.geonext gxt
Expand Down Expand Up @@ -1094,6 +1106,7 @@ application/vnd.oma.dcdc
application/vnd.oma.dd2+xml dd2
application/vnd.oma.drm.risd+xml
application/vnd.oma.group-usage-list+xml
application/vnd.oma.lwm2m+cbor
application/vnd.oma.lwm2m+json
application/vnd.oma.lwm2m+tlv
application/vnd.oma.pal+xml
Expand Down Expand Up @@ -1284,6 +1297,7 @@ application/vnd.sealed.xls sxls sxl s1e
application/vnd.sealedmedia.softseal.html stml stm s1h
application/vnd.sealedmedia.softseal.pdf spdf spd s1a
application/vnd.seemail see
application/vnd.seis+json
application/vnd.sema sema
application/vnd.semd semd
application/vnd.semf semf
Expand Down Expand Up @@ -1336,6 +1350,7 @@ application/vnd.sun.xml.writer.template stw
application/vnd.sus-calendar sus susp
application/vnd.svd svd
application/vnd.swiftview-ics
application/vnd.sycle+xml
application/vnd.symbian.install sis sisx
application/vnd.syncml+xml xsm
application/vnd.syncml.dm+wbxml bdm
Expand Down Expand Up @@ -1397,6 +1412,7 @@ application/vnd.wap.wbxml wbxml
application/vnd.wap.wmlc wmlc
application/vnd.wap.wmlscriptc wmlsc
application/vnd.webturbo wtb
application/vnd.wfa.dpp
application/vnd.wfa.p2p
application/vnd.wfa.wsc
application/vnd.windows.devicepairing
Expand Down Expand Up @@ -1633,6 +1649,7 @@ application/x-xfig fig
application/x-xliff+xml xlf
application/x-xpinstall xpi
application/x-xz xz
application/x-zip-compressed zip
application/x-zmachine z1 z2 z3 z4 z5 z6 z7 z8
application/x400-bp
application/x400.bp
Expand Down Expand Up @@ -1773,6 +1790,7 @@ audio/silk sil
audio/SMV smv
audio/SMV-QCP
audio/SMV0
audio/sofa
audio/sp-midi
audio/speex
audio/t140c
Expand All @@ -1781,6 +1799,7 @@ audio/telephone-event
audio/TETRA_ACELP
audio/TETRA_ACELP_BB
audio/tone
audio/TSVCIS
audio/UEMCLIP
audio/ulpfec
audio/usac
Expand Down Expand Up @@ -1894,6 +1913,7 @@ image/jxsc
image/jxsi
image/jxss
image/ktx ktx
image/ktx2
image/naplps
image/pjpeg
image/png png
Expand Down Expand Up @@ -1928,6 +1948,7 @@ image/vnd.ms-modi mdi
image/vnd.ms-photo wdp
image/vnd.net-fpx npx
image/vnd.net.fpx
image/vnd.pco.b16
image/vnd.radiance
image/vnd.sealed.png
image/vnd.sealedmedia.softseal.gif
Expand Down Expand Up @@ -2008,6 +2029,7 @@ message/tracking-status
message/vnd.si.simp
message/vnd.wfa.wsc
model/3mf
model/e57
model/example
model/gltf+json
model/gltf-binary
Expand Down Expand Up @@ -2075,6 +2097,7 @@ text/enriched
text/example
text/flexfec
text/fwdred
text/gff3
text/grammar-ref-list
text/html html htm htmlx shtml htx
text/javascript js mjs
Expand All @@ -2098,6 +2121,7 @@ text/rtp-enc-aescm128
text/rtploopback
text/rtx
text/sgml sgml sgm
text/shaclc
text/spdx
text/strings
text/t140
Expand All @@ -2124,6 +2148,7 @@ text/vnd.fly fly
text/vnd.fmi.flexstor flx
text/vnd.gml
text/vnd.graphviz gv
text/vnd.hans
text/vnd.hgl
text/vnd.in3d.3dml 3dml
text/vnd.in3d.spot spot
Expand Down
Loading

0 comments on commit 44bce29

Please sign in to comment.