diffy icon indicating copy to clipboard operation
diffy copied to clipboard

Easy Diffing in Ruby

Results 42 diffy issues
Sort by recently updated
recently updated
newest added

When the only difference between two string is a final newline, the last line disappears in the HTML diff. ``` > puts Diffy::Diff.new("1\n2", "1\n2\n").to_s 1 -2 \ No newline at...

I review the source code, it only support `string` and `file`, but actually `diff` in linux support directory, so will it support?

When using the split diff on 2 string with a different number of lines, the matching lines don't line up. For example: input1: ``` A B C D ``` input...

In default and ANSI color views, it deems like DIffy doesn't show line numbers. That would be a really great feature to have!

If you diff two strings that rarely have newlines or none at all, how would you avoid duplicating a lot of text in the unchanged part? Especially in the HTML...

I tried to run this command: puts Diffy::Diff.new('/tmp/foo', '/tmp/bar', :source => 'files') (i put foo and bar folders into tmp). But it gets this error messages. Error messages: ![image](https://cloud.githubusercontent.com/assets/13100197/15139951/790d0d68-16a1-11e6-964d-7812d14c8cde.png)

At certain times I just want to have the number of lines added and deleted, rather than a visual diff output. I can't seem to find a method to give...

Diffy 3.0.6 Ruby 2.1.3 diffutils 3.3 https://github.com/samg/diffy#overriding-the-command-line-options-passed-to-diff claims ``` >> puts Diffy::Diff.new(" foo\nbar\n", "foo\nbar\n", :diff => "-w") foo bar ``` But when I try: ``` 2.1.3p242 :001 > puts Diffy::Diff.new("...

It would be nice for some purposes to be able to save the diff in a db and then load it again, but it looks like there's no method on...

Running diffs for a larger amount (several thousands) of texts under JRuby 1.7.10 throws Bad file descriptor errors: ``` Errno::EBADF: Bad file descriptor - Bad file descriptor getStackTrace at java/lang/Thread.java:1588...