-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Remove safe_yaml gem in favour of using Psych which is in the stdlib #303
Conversation
This looks good! One question: is there a test to double-check it's really safe…like it can't instantiate a non-allowlisted object? |
I know it's safe because I ran into that error a number of times while working on this hahaha. But yeah definitely worth adding a test for this. Will write a couple of tests for |
Added some tests. Let me know what you think! |
@jaredcwhite heres some background on |
@ayushn21 Awssome! LGTM |
This is a 🐛 bug fix.
Summary
The
safe_yaml
gem doesn't seem like it's maintained any more. ThePsych
module which is part of the stdlib has asafe_load
method so we can drop that external dependency and use the stdlib directly.Context
Resolves #300