Skip to content

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

Open
UiP9AV6Y wants to merge 1 commit intovoxpupuli: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 intovoxpupuli:masterfrom
UiP9AV6Y:feature/array_string_builder

Conversation

@UiP9AV6Y
Copy link

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

…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 d44ae6b to 74e2890 Compare November 15, 2025 10:26
@antaflos
Copy link
Contributor

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

RaffaelChoi-at pushed a commit to riseops/puppet-corosync that referenced this pull request Feb 10, 2026
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