Closed tdeo closed 6 days ago
@byroot did you see this issue and the related PR by any chance as you authored the commit I suspect to be responsible?
No, I'm the maintainer, but I'll have a look.
I can repro the same issue before my change.
I can repro the same issue before my change.
Nevermind, my LOAD PATH was incorrect, it's indeed a regression.
I've run into the following behavior after upgrading to psych v5.2.0:
With 5.1.2
Observe how the string is quoted in the Yaml file
With 5.2.0
Now the string is unquoted, which makes it invalid to be parsed back with
YAML.safe_load
.I believe this behavior originates from this commit, also because I noticed that manually requiring
'date'
before calling.to_yaml
still yields the expected result ofv5.1.2
:I think the following error probably hints as to where the problem originates from:
and that actually,
autoload :Date, date
probably rather belongs inPsych::ClassLoader
thanPsych::ScalarScanner
. I'll try writing a regression and submit a PR if I succeed