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: handle deprecation warning - add unary operator to mutable string #351

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jsugarman
Copy link

Add unary operator to mutable string.

This avoids deprecation warnings when running against ruby 3.4.1 and prepares for later versions (4.0) that will default to # frozen_string_literal: true.

Deprecation warning:

gems/puffing-billy-4.0.0/lib/billy/proxy_connection.rb:33: warning: literal string will be frozen in the future (run with --debug-frozen-string-literal for more information)

Example CI with deprecation warnings:
https://app.circleci.com/pipelines/github/ministryofjustice/laa-apply-for-legal-aid/32282/workflows/b137f673-cb4e-4f21-a307-86050bde6e87/jobs/168908/parallel-runs/0?filterBy=ALL

This avoids deprecation warnings when running against ruby 3.4.1
and prepares for later versions (4.0) that will default to
`# frozen_string_literal: true`.

Deprecation warning:
```sh
gems/puffing-billy-4.0.0/lib/billy/proxy_connection.rb:33: warning: literal string will be frozen in the future (run with --debug-frozen-string-literal for more information)
```

Example CI with deprecation warnings:
https://app.circleci.com/pipelines/github/ministryofjustice/laa-apply-for-legal-aid/32282/workflows/b137f673-cb4e-4f21-a307-86050bde6e87/jobs/168908/parallel-runs/0?filterBy=ALL
Copy link

@arthurashman arthurashman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @jsugarman! 👍

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