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_mimeIt has replaced
mime-types
in themail
gem: (which is a dependency ofactionmailer
, and by extension,rails
) https://github.com/mikel/mail/pull/1059As well as
capybara
: https://github.com/teamcapybara/capybara/pull/1884Which 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 extramime-types
dependency.The change in code is pretty straightforward, the same one made by the capybara PR linked above.