I was writing a little rake task to compare some data in our DB to fixture files, and found this module as the best one for doing pretty printed diffs of object.
I had a little bit of trouble finding out how to produce a diff without using Rspec though - I managed to get something working using:
puts SuperDiff::Differs::Main.call(from_dump, from_db)
However this lacks headings to say which item is before/after, and doesn't give a result I can use as an exit code.
Is there a good way to use this library in a standalone mode?
I was writing a little rake task to compare some data in our DB to fixture files, and found this module as the best one for doing pretty printed diffs of object.
I had a little bit of trouble finding out how to produce a diff without using Rspec though - I managed to get something working using:
However this lacks headings to say which item is before/after, and doesn't give a result I can use as an exit code.
Is there a good way to use this library in a standalone mode?