ApprovalTests.Ruby icon indicating copy to clipboard operation
ApprovalTests.Ruby copied to clipboard

Exclude dynamically changing data from text

Open hotgazpacho opened this issue 11 years ago • 5 comments

There currently exists a way to exclude dynamically changing data (e.g. dates) from JSON. It would be nice to extend this to text documents (and maybe HTML) as well.

hotgazpacho avatar Sep 12 '14 20:09 hotgazpacho

Agreed–this would be very handy.

kytrinyx avatar Sep 13 '14 01:09 kytrinyx

Has there been any updates to this issue?

mariocsee avatar Apr 23 '19 21:04 mariocsee

No, there hasn't been any work done on it. I don't actively develop the gem anymore, though I do review and discuss proposed patches.

kytrinyx avatar Apr 24 '19 02:04 kytrinyx

Oh, hi! I've been working on a comparison tool specifically designed for JSON data that supports ignoring specific parts of the document. It's still wet around the ears and definitely not worth adding as a dependency to this gem... but maybe an adapter can be written? Or, of course, feel free to swipe any ideas and/or code that's useful. :)

https://github.com/realgeeks/check_please

geeksam avatar Jan 15 '21 01:01 geeksam

Oh, see also https://github.com/mcmire/super_diff/

geeksam avatar Jan 15 '21 01:01 geeksam