Solved

Text-Diff in RUBY

Posted on 2008-06-13
3
1,214 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

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…
I have been reconstructing a PHP-based application that has grown into a full blown interface system over the last ten years by a developer that has now gone into business for himself building websites. I am not incredibly fond of writing PHP code o…
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…

813 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

11 Experts available now in Live!

Get 1:1 Help Now