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

Frozen string issue fix. #17

Merged
merged 1 commit into from Jun 10, 2020

Conversation

godsent
Copy link

@godsent godsent commented Jun 9, 2020

Hello.
In ruby 2.7.1 (latest stable for now) #to_s method for some singleton object (e.g. nil, false, true) returns frozen string. << modifies the receiver string and can't be used for frozen objects, so nil.to_s << "hello" will throw an error. I replaced <<concatenation with simple+`.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling fa6cce5 on SoftSwiss:rc-frozen_string_issue_fix into 65c9be7 on gonzedge:master.

3 similar comments
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling fa6cce5 on SoftSwiss:rc-frozen_string_issue_fix into 65c9be7 on gonzedge:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling fa6cce5 on SoftSwiss:rc-frozen_string_issue_fix into 65c9be7 on gonzedge:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling fa6cce5 on SoftSwiss:rc-frozen_string_issue_fix into 65c9be7 on gonzedge:master.

@gonzedge
Copy link
Owner

Hello. Thanks for this contribution! I'll release a new version with this fix later tonight.

@gonzedge gonzedge merged commit 5b3ab1b into gonzedge:master Jun 10, 2020
@gonzedge
Copy link
Owner

@godsent Pushed version 2.1.1 including this fix. Thanks again!

@godsent
Copy link
Author

godsent commented Jun 14, 2020

@godsent Pushed version 2.1.1 including this fix. Thanks again!

I glad to help.

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.

None yet

3 participants