An instance of a Subclass of String do not get anchored and aliased when referenced multiple times in an object, leading to different objects on Psych.load.
Expected "" (oid=70239656831080) to be the same as "" (oid=70239656831640).
Psych.load on an YAML containing an instance of a subclass of String anchored and aliased correctly from 1.8.7(Syck) raises "Unknown alias".
Psych::BadAlias: Unknown alias: id001
Followup to #44 and somewhat related to #43
I have verified that a plain old ruby object and even a subclass of Array does alias and anchor properly.
See full failing tests here: https://gist.github.com/3106078
Tested with psych master branch as of today and 1.9.3-p194.
How can I help fix this?
Not sure if this should be broken up into two issues, let me know if that is desired.
Sure! I can fix this, or if you'd like I'd be happy to walk you through solving the problem. We can meet on IRC, or I'll just comment here (it's up to you).