-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
Bound recursive checksumming #518
Conversation
dcbc5da
to
2bcf98b
Compare
digest.update(obj.class.to_s) | ||
|
||
if visited.include?(obj) | ||
digest.update('recur') |
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.
if visited would be a hash then we could store also the digest value and set it here, would it be useful at all?
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.
We can’t set the digest value because at the time it isn’t known yet.
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.
ah I see it now, painful
Can I get a +1? |
looks good but the jruby test failed, I have restarted it to check if it was one time or an real problem |
Tests are passing on Travis CI, but GitHub isn’t picking up the success. Odd! |
Bound recursive checksumming
Fix for #469. Instead of preventing items and layouts in attributes, we can allow them and let the checksummer properly deal with it.
PR #507 had a different implementation, but too much like a hack.