Ruby Stuff

news | mp3tag | diff | glruby | everything else

diff

Description

diff.rb is a Ruby library class to generate a list of "differences" between two arrays of elements or strings. Its functionality is similar to that of the Unix program "diff", although it only consists of the algorithm the generate the "diff" between two set of elements (e.g. lines). diff.rb is an adaption of Perl's Algoritm::Diff to Ruby. It can operate on array of arbitrary elements (e.g. arrays of lines to provide diffs similar to unix diff) or strings (to get bytewise diffs).

Files

diff-0.3.tar.gz

Revision History

Version 0.1: Initial release. Diff algorithm works.

Version 0.2: Speed improvements and code clean up

Version 0.3: Added unixdiff.rb, an implementation of Unix Diff (simple format only)