I’ve looked at diff-lcs ( http://raa.ruby-lang.org/project/diff-lcs ) but it’s poorly documented, and appears to be unmaintained.
Are there any good, actively maintained ruby gems for diffing text or html files?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I looked around and couldn’t find an existing gem or library that offered a convenient way to generate diff style output from ruby.
I just released diffy which does what I want. It’s a lightweight wrapper around
diffwhich lets you generate text or html diffs from two strings, without a lot of fuss. I hope others find it useful. It’s in use on wiff.me for anyone wants to preview the html output.