You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Was wondering if having enough internal primitives in psych to implement this is a good idea? Should comment preservation be built into Psych (optionally) or is this the role of some other gem that consumes it?
The text was updated successfully, but these errors were encountered:
Preserving comments in YAML files is a general problem many automation tools have.
The general problem is that you have some YAML file say:
When you decide to programmatically change the file to correct the answer by loading and saving YAML you end up stripping comments
There are 2 current families of solutions in the wild. The first is regex hacking. The second is leaning on https://pypi.org/project/ruamel.yaml/.
Was wondering if having enough internal primitives in psych to implement this is a good idea? Should comment preservation be built into Psych (optionally) or is this the role of some other gem that consumes it?
The text was updated successfully, but these errors were encountered: