Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Dec 30, 2022

Conversation

carlosantoniodasilva
Copy link
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
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.

None yet

2 participants