differ icon indicating copy to clipboard operation
differ copied to clipboard

A simple gem for generating string diffs

Results 11 differ issues
Sort by recently updated
recently updated
newest added

Hi. Could you remove "protected" from raw_array? I need the diff output in machine readable format (rather than display to user), and raw_array seems the most usable format. My use...

Something is wrong when there is bold text (text surrounded by the `` element). Take for example: ``` a = "adfadf\n222\nfoo bar was here 333\nhere too\n444\n55 bold text added\n66\n" b...

`:html` formatter passes ` Differ.diff_by_line("foo", "alert(1)").format_as(:html) => "alert(1)foo" ``` As Differ operates on strings, not HTML fragments, IMHO, it should escape chunks of these strings in resulting html. Using differ...

Ruby 2.7.0 gives a deprecation warning: ``` vendor/bundle/ruby/2.7.0/gems/differ-0.1.2/lib/differ.rb:11: warning: `$;' is deprecated ```

I tested the following two strings: ```` @original = "The second aspect is that graphic design is a very inclusive subject, and enables me to explore various art fields. For...

Hello sir. Please take a look at this: ![image](https://cloud.githubusercontent.com/assets/1852056/15946742/8a7cb9ce-2e6e-11e6-932b-db4c11a7edbc.png) The outputt: ![image](https://cloud.githubusercontent.com/assets/1852056/15946763/a0f054f4-2e6e-11e6-9987-c901c69f4d41.png) How it looks when you write this content to a file: ![image](https://cloud.githubusercontent.com/assets/1852056/15946915/515e0b1a-2e6f-11e6-9fc9-2e01137123d2.png) The problem, found in ascii.rb: ![image](https://cloud.githubusercontent.com/assets/1852056/15946802/ce8b46e4-2e6e-11e6-913c-7101fbce4369.png)...

Hi. I'm not sure if you want updates in the official repo or if you'd rather people run with it. But the changes I made are really quite generic and...

This commit adds a patch format similar to `diff`: ``` xml - one + two ``` Just need to set `Differ.format = :patch`.

Hi! I went to use `"something".diff_by_char()` and realized that String had only been extended with the `diff()` method so far. Added: ``` ruby "something".diff_by_char("something else") "something".diff_by_word("something else") "something".diff_by_line("something else") ```...

Hi there! This is WhitespaceBot. I'm an [open-source](https://github.com/Gunio/WhitespaceBot) robot that removes trailing white space in your code, and gives you a gitignore file if you didn't have one! Why whitespace?...