8000 Ruby 3.4 produces frozen string warnings · Issue #660 · sparklemotion/mechanize · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Ruby 3.4 produces frozen string warnings #660

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

Closed
simpl1g opened this issue Jan 2, 2025 · 4 comments
Closed

Ruby 3.4 produces frozen string warnings #660

simpl1g opened this issue Jan 2, 2025 · 4 comments

Comments

@simpl1g
Copy link
Contributor
simpl1g commented Jan 2, 2025

Calling .to_s on symbol will return frozen string in future
https://github.com/sparklemotion/mechanize/blob/main/lib/mechanize/form.rb#L259

:test.to_s.chomp!
DEPRECATION WARNING: warning: string returned by :test.to_s will be frozen in the future
 (called from String#chomp!)
@flavorjones
Copy link
Member

@simpl1g thanks for opening an issue. Are you at all interested in opening a PR to fix this?

@simpl1g
Copy link
Contributor Author
simpl1g commented Jan 2, 2025

I created PR here #661

@flavorjones
Copy link
Member

Thank you! Merged.

@flavorjones
Copy link
Member

Will ship in a release shortly.

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

No branches or pull requests

2 participants
0