citation-file-format / cffconvert

Command line program to validate and convert CITATION.cff files.
Apache License 2.0
95 stars 28 forks source link

testing order bug #344

Closed jspaaks closed 1 year ago

jspaaks commented 1 year ago

This PR changes the way yaml text is parsed. It appears that ruamel.yaml persists some of its configuration, see

This PR stores the timestamp parser that is present before we change anything, and restores it afterwards. Additionally it configures the parser to read timestamps as timestamp under cff-version 1.0.x and 1.1.x and as string under cff-version 1.2.x and 1.3.x, but now using ruamel.yaml's own constructor methods from YAML.SafeConstructor, as opposed to whatever it finds was previously configured as a parser.