-
Notifications
You must be signed in to change notification settings - Fork 444
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
Marshalize mismatch errors #168
Conversation
Implements functionality to make MismatchErrors Marshalizeable.
Can we also drop a new patch version after this is merged? We need this change to fix some internal errors (at GitHub). |
lib/scientist/experiment.rb
Outdated
private | ||
|
||
def marshalize(block) | ||
def block._dump(_) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a check first before overriding? respond_to?(:_dump) || respond_to?(:_dump_data)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea. I'm working to add that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zerowidth I added a check to this before overriding. Please let me know if you have any other feedback. 🙏
|
||
private | ||
|
||
def marshalize(block) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment here explaining why we want to make everything marshalable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call. Added. 👌
Implements functionality to make MismatchErrors Marshalizeable.