During some Puppet 3.x to 4.x updates, we've observed that YAML files we generate within Puppet using the ruby libraries can exhibit different white-space characteristics, but the parsed YAML objects are identical.
This PR adds a new option --filters YAML which will further compare the content of any changes to files with an extension .yml or .yaml and ignore the change if the files parse to the same objects. (Note: In the future, additional filtering options like this will be added to --filters instead of having their own named option.)
This should probably be used sparingly and situationally, because you'll also lose reporting on changes to comments (if you care).
Stub integration test and fixture for YAML comparison code
Finish integration test and corresponding feature
Add command line option for ignoring equivalent YAML files
Update fixtures to break the YAML parser
Implement feature to ignore YAML files that parse to equivalent objects
Add spec test coverage for YAML ignorer
Auto-update options reference document
Rewrite YAML feature as a more modular filter
Fix const_get naming and write test for filter
Add coverage for YAML option in differ spec
Move the YAML parsing option to `--filters`
Bump version and tweak documents
Update changelog too