Anybody have any suggestions for DIFF?

Hi Wayne,

Not sure if this is what you're after?

I've used it, with great success, for comparing xml files in tests :slight_smile:

Cheers,

Geoff

路路路

On Fri 07/02/14 11:05 , Wayne Brissette <wbrisett@att.net> wrote:

I searched through the various archives, and also tried nearly all the
gems related to diff (I don&rsquo;t think some of them are Ruby 2.x
compatible although they don&rsquo;t mention that). Anyhow, I have a
script that compares two sets of files, finds the matching file (the
file names don&rsquo;t match, so I&rsquo;m forced to look at the XML
and compare a field via nokogiri). Once found, all I really want to
do is do something like the unix diff between the two files. I
realize I can use %x(diff file1 file2), but that&rsquo;s not going to
work with my windows coworkers. Most of the diff gems I&rsquo;ve found
either make a mess of the output, or are so woefully documented that I
couldn&rsquo;t get the diff to really find the differences between the
two files.
Anybody have any luck with any of the gems out there? If so, any
hints on getting output that remotely looks like the diff output?
Thanks,
Wayne