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 exception calling to_range' after freeze' - fix #35 #36

Merged
merged 1 commit into from
Dec 24, 2021

Conversation

esparta
Copy link
Contributor

@esparta esparta commented Dec 13, 2021

The set method tries to modify instance variables which are not permitted after freeze the object. Instead of use clone we can simply create a new instance since we have all the elements we need.

Added a minimal set of specs for to_range which were missing.

@esparta esparta mentioned this pull request Dec 13, 2021
@ioquatix ioquatix merged commit 77fe1fc into ruby:master Dec 24, 2021
@ioquatix
Copy link
Member

Thanks for this, looks like we could slip this in before cutting 3.1 🥳

@esparta esparta deleted the fix/freeze_to_range branch December 30, 2021 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants