ruby-mime-types
ruby-mime-types copied to clipboard
Ruby MIME type registry library
- This probably has a negative performance impact, so I’m not sure I’m going to merge this. See #148 --- This change is [](https://reviewable.io/reviews/mime-types/ruby-mime-types/151)
This is very _much_ a work in progress. --- This change is [](https://reviewable.io/reviews/mime-types/ruby-mime-types/162)
Migrating CI from Travis CI to GitHub Actions is done in #150. This PR is a follow-up to that. - Replace CI status badge from Travis CI to GitHub Actions...
This PR adds Ruby 3.1 to the CI matrix. And includes the following: - Bump actions/checkout from v2 to v3 --- This change is [](https://reviewable.io/reviews/mime-types/ruby-mime-types/165)
Hi, I'm the maintainer of `httpx`, which optionally uses `mime-types`, when available, to [identify the mime type of a file to be sent in a multipart request](https://gitlab.com/honeyryderchuck/httpx/-/blob/master/lib/httpx/plugins/multipart/mime_type_detector.rb#L13-16); this feature is...
I ran a simple test case on multiple Ruby implementations: ``` it 'is returns stable order for types with equal priority' do assert_equal %w(audio/webm video/webm), MIME::Types.type_for('foo.webm') end ``` On Travis...
mime-types was "built to conform to the MIME types of RFCs 2045 and 2231". RFC 2045 is itself composed of many other RFCs, some of which have been obsoleted or...
As per the discussion in https://github.com/ioquatix/utopia/issues/1 It would be good if `MIME::Types.of(:archive)` would provide common, non-obsolete archive types. In addition, providing a way to expand mime types based on a...
Right now, MIME::Types has two main representations of a MIME content type: - `content_type`: a presentation value from the MIME type registry and should not be used for comparison. The...
Based on work by Charlie Somerville (@charliesome); found at https://github.com/SamSaffron/mime-types/commit/ca0bce0ad428c887b2026158d9fc05e7d956b722 and https://github.com/SamSaffron/mime-types/commit/6b34ec645e1a5f1e5c4619b1f51389b24675e8e7.