Skip to content

replace String#concat with Array#push to avoid frozen string violation#582

Open
UiP9AV6Y wants to merge 1 commit into
voxpupuli:masterfrom
UiP9AV6Y:feature/array_string_builder
Open

replace String#concat with Array#push to avoid frozen string violation#582
UiP9AV6Y wants to merge 1 commit into
voxpupuli:masterfrom
UiP9AV6Y:feature/array_string_builder

Conversation

@UiP9AV6Y
Copy link
Copy Markdown

Pull Request (PR) description

with Ruby 3.0 strings are frozen by default causing the catalog compiler to throw errors when one of the native corosync module types is used.

this change replaces the use of the string concatenation operator with an array that gets joined into a string for further use.

the functionality and data passed to external systems should remain unchanged, making this change backwards compatible.

This Pull Request (PR) fixes the following issues

n/a

@UiP9AV6Y UiP9AV6Y force-pushed the feature/array_string_builder branch from d44ae6b to 74e2890 Compare November 15, 2025 10:26
@antaflos
Copy link
Copy Markdown
Contributor

We are also running into issues with Ruby complaining about frozen string violations. So +1 from me for this PR.

ghost pushed a commit to riseops/puppet-corosync that referenced this pull request Feb 10, 2026
@bastelfreak
Copy link
Copy Markdown
Member

@UiP9AV6Y can you please rebase and fix the merge conflict?

@UiP9AV6Y UiP9AV6Y force-pushed the feature/array_string_builder branch from 74e2890 to 04e53dc Compare April 23, 2026 19:40
…ation

with Ruby 3.0 strings are frozen by default causing the catalog compiler
to throw errors when one of the native corosync module types is used.

this change replaces the use of the string concatenation operator
with an array that gets joined into a string for further use.

the functionality and data passed to external systems should remain
unchanged, making this change backwards compatible.
@UiP9AV6Y UiP9AV6Y force-pushed the feature/array_string_builder branch from 04e53dc to c2d74ea Compare May 4, 2026 07:02
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.

3 participants