Solved

Text-Diff in RUBY

Posted on 2008-06-13
3
1,220 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
ID: 21824156
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
ID: 21880759
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
ID: 21932437
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
As most anyone who uses or has come across them can attest to, regular expressions (regex) are a complicated bit of magic. Packed so succinctly within their cryptic syntax lies a great deal of power. It's not the "take over the world" kind of power,…
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…

790 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