Skip to content

Define URI::NONE as a module to avoid serialization issues - #509

Merged
dentarg merged 2 commits into
sporkmonger:mainfrom
casperisfine:improve-serialization
May 19, 2023
Merged

dentarg merged 2 commits into
sporkmonger:mainfrom
casperisfine:improve-serialization

Conversation

@casperisfine

Copy link
Copy Markdown
Contributor

If it's an anonymous objects, when serialized and restored by Marshal or YAML, the restored instance has a diferent anonymous object as ivar values.

The simplest fix for this is to use a named module.

This is related to #508, but only focus on current version compatibility.

cc @tenderlove

If it's an anonymous objects, when serialized and restored by Marshal
or YAML, the restored instance has a diferent anonymous object as ivar values.

The simplest fix for this is to use a named module.
@casperisfine
casperisfine force-pushed the improve-serialization branch from 8d9350e to 30a38d6 Compare May 2, 2023 17:15
@dentarg dentarg mentioned this pull request May 9, 2023
@dentarg

dentarg commented May 10, 2023

Copy link
Copy Markdown
Collaborator

@tenderlove does this look good to you?

@tenderlove

Copy link
Copy Markdown
Contributor

@dentarg yep, it looks good to me!

@dentarg

dentarg commented May 19, 2023

Copy link
Copy Markdown
Collaborator

Thanks @tenderlove

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.

4 participants