Closed andyw8 closed 10 months ago
Hi there! Unfortunately I don't maintain this gem these days. Should I update the readme to reflect this? Probably.
Anyway, if you're able to solve the issue yourself feel free to submit a pull request :D.
Just chiming in to say I ran into this issue too. I think this is perhaps the clearest explanation of the change that I've read:
https://www.ctrl.blog/entry/ruby-psych4.html
I don't know much about Ruby so I could be wrong, but it seems like if you knew where to add the permitted_classes:
bit then it should be a quick fix.
Basically the problem is that load_file
now defaults to safe_load
, which only permits a small number of classes (and doesn't include the Rubyfocus::Document
class).
:wave: Thank you for the great gem!
Just wanted to log an issue about a failure on newer versions of Ruby. It works fine in Ruby 2.7, but on 3.2 fails with:
I believe this is due to changes in the Psych version that ships with Ruby, but I don't recall off-hand what version that happened in, possibly 3.0?