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

Separate yaml #710

Merged
merged 9 commits into from
Sep 24, 2014
Merged

Separate yaml #710

merged 9 commits into from
Sep 24, 2014

Conversation

albus522
Copy link
Member

No description provided.

splattael and others added 4 commits June 26, 2014 12:19
`DelayedJob` makes freedom patches of `Psych`'s `resolve_class` method.
It misses to guard this method from empty class names.

`Psych` does it:
https://github.com/tenderlove/psych/blob/2c644e18/lib/psych/class_loader.rb#L25

While deserializing an anonymous struct the class name is an empty
string (`""`). Constantizing an empty string resolves to `Object`.

This leads to this error:

    #<NoMethodError: undefined method `members' for #<Object:0xXXXXXXX>>

After this commit deserializing anonymous structs works again.
@albus522
Copy link
Member Author

This also includes #475

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.77%) when pulling ebf6789 on separate-yaml into 4bb1ce0 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.97%) when pulling e530194 on separate-yaml into 4bb1ce0 on master.

Conflicts:
	lib/delayed/psych_ext.rb
It doesn't do this on its own
@coveralls
Copy link

Coverage Status

Coverage decreased (-1.2%) when pulling 7a288ec on separate-yaml into 4bb1ce0 on master.

albus522 added a commit that referenced this pull request Sep 24, 2014
@albus522 albus522 merged commit bb3d3a8 into master Sep 24, 2014
@albus522 albus522 deleted the separate-yaml branch September 24, 2014 13:06
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.

None yet

4 participants