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

fix: mime type string deprecation #655

Merged
merged 2 commits into from
Oct 2, 2024
Merged

Conversation

avk
Copy link
Contributor

@avk avk commented Oct 2, 2024

mime-types 3.6.0 warns "MIME::Type.MIME::Type.new when called with a String is deprecated."

change introduced in and syntax borrowed from:
mime-types/ruby-mime-types@8512c15

avk and others added 2 commits October 2, 2024 12:34
mime-types 3.6.0 warns "MIME::Type.MIME::Type.new when called with a String is deprecated."

change introduced in and syntax borrowed from:
mime-types/ruby-mime-types@8512c15
to one that supports modern ruby.
@flavorjones
Copy link
Member

@avk Thank you for this PR! While we're here, I added a commit which bumps the minimum version of the mime-types gem to 3.3.0, which is the first version that supports Ruby 2.7+.

@flavorjones flavorjones merged commit 2ae412a into sparklemotion:main Oct 2, 2024
9 checks passed
@flavorjones
Copy link
Member

Released in https://github.com/sparklemotion/mechanize/releases/tag/v2.12.2

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