Skip to content

Suggestion: Replace mime-types with mini_mime for content type lookup#769

Merged
jnunemaker merged 1 commit into
jnunemaker:masterfrom
carlosantoniodasilva:ca-mini-mime
Dec 30, 2022
Merged

Suggestion: Replace mime-types with mini_mime for content type lookup#769
jnunemaker merged 1 commit into
jnunemaker:masterfrom
carlosantoniodasilva:ca-mini-mime

Conversation

@carlosantoniodasilva
Copy link
Copy Markdown
Contributor

mini_mime is a minimal mime type library that's more performant and less memory hungry.
https://github.com/discourse/mini_mime

It has replaced mime-types in the mail gem: (which is a dependency of actionmailer, and by extension, rails)
mikel/mail#1059

As well as capybara:
teamcapybara/capybara#1884

Which also means using it as a dependency of httparty would be able to reuse the same dependency that should be already available in most Rails apps, instead of pulling in an extra mime-types dependency.

The change in code is pretty straightforward, the same one made by the capybara PR linked above.

`mini_mime` is a minimal mime type library that's more performant and
less memory hungry.
https://github.com/discourse/mini_mime

It has replaced `mime-types` in the `mail` gem: (which is a dependency
of `actionmailer`, and by extension, `rails`)
mikel/mail#1059

As well as `capybara`:
teamcapybara/capybara#1884

Which also means using it as a dependency of `httparty` would be able to
reuse the same dependency that should be already available in most Rails
apps, instead of pulling in an extra `mime-types` dependency.

The change in code is pretty straightforward, the same one made by the
capybara PR linked above.
@jnunemaker
Copy link
Copy Markdown
Owner

This is great! I'm sorry I didn't see it until now. Not sure what the deal is but I swear I'm not getting some notifications.

@jnunemaker jnunemaker merged commit 243a215 into jnunemaker:master Dec 30, 2022
@carlosantoniodasilva carlosantoniodasilva deleted the ca-mini-mime branch January 19, 2023 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants