diffy
diffy copied to clipboard
Diffy does not diff
I'm using diffy-2.1.2 with Ruby 1.9.3p327 (2012-11-10) [i386-mingw32] on Windows XP SP3.
I have successfully (or so I think) configured diffy on the computer. However, diffy doesn't seem to be diffing.
For example, the output for puts Diffy::Diff.new("blue\n", "red\n").to_s(:html)
is
`
- blue
Am I missing something here?
Thanks, Grasswistle
My guess is the problem has something to do with the default command line settings for your version of diff.
It might make sense to play around with the options passed to diff
(https://github.com/samg/diffy#overriding-the-command-line-options-passed-to-diff) since they might be different than the *nix defaults. You could also play around on the command line to determine whether the problem is in diffy or in your diff installation.
So this is what I had done wrong:
- I installed diff and which on windows using the exe installers.
- I created a path without spaces (e.g. C:\unixutils) where I could copy diff and which so that diffy could access them.
- I moved the diff and which executables from their original location in C:\Program Files\GnuWin32 to this new directory.
- Added this new directory to this path.
The problem: I should have moved all of the files (including the dll's) from C:\Program Files\GnuWin32 to the new directory.
Grasswistle