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

Implement marshaling methods to avoid issue with serializing mutex #392

Merged
merged 1 commit into from
Jan 24, 2019

Conversation

cjcolvar
Copy link
Contributor

The default marshal dump method attempts to serialize RDF::URI's mutex which leads to an error: TypeError: no _dump_data is defined for class Thread::Mutex. This PR implements the _dump and _load methods (https://ruby-doc.org/core-2.5.0/Marshal.html#module-Marshal-label-_dump+and+_load) to avoid this error.

Related samvera/active_fedora#1378.

@gkellogg gkellogg merged commit 37e08df into ruby-rdf:develop Jan 24, 2019
@cjcolvar cjcolvar deleted the marshaling branch January 24, 2019 16:10
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.006%) to 92.375% when pulling ce811b4 on cjcolvar:marshaling into 02340e8 on ruby-rdf:develop.

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.

3 participants