Solved

Text-Diff in RUBY

Posted on 2008-06-13
3
1,208 Views
Last Modified: 2011-10-03
Dear experts,

In Perl, they  have Text::Diff library to compare the difference of two files
http://cpan.uwinnipeg.ca/htdocs/Text-Diff/Text/Diff.html

Is there any equivalent in Ruby?

Thank you & best regards.
0
Comment
Question by:isuhendro
3 Comments
 
LVL 27

Expert Comment

by:ddrudik
Comment Utility
I would suggest this, but it's all I could find for Ruby:
http://raa.ruby-lang.org/project/compare/
0
 

Author Comment

by:isuhendro
Comment Utility
Hi ddrudik,
thank you fyi, it seems what I try to find.. but I could not get the code itself.
0
 
LVL 1

Accepted Solution

by:
gethemant earned 500 total points
Comment Utility
there is ruby-diff, a straight port of Perl Text::Diff. Checkout here:

http://www.freebsd.org/cgi/pds.cgi?ports/textproc/ruby-diff
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

I recently rediscovered rails when I needed a holiday project and decided to build a management dashboard for the company where I work.  With it being a project done in my free time, I could focus my time on learning the basics rather than trying to…
Do you hate spam? I do, and I am willing to bet you do as well. I often wonder, though, "if people hate spam so much, why do they still post their email addresses on the web?" I'm not talking about a plain-text posting here. I am referring to the fa…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now