From: "Mauricio Fernández" Date: 2004-08-09T07:12:29+09:00 Subject: Re: [ANN] Diff::LCS 1.1.0, Diff::LCS 1.0.4 On Mon, Aug 09, 2004 at 06:25:26AM +0900, Austin Ziegler wrote: > It is with pleasure that I announce the latest versions of Diff::LCS, > a pure-Ruby differencing algorithm. [...] > Version 1.1.0 is a feature release that includes all bugfixes up to > and including 1.0.4. In addition, it adds a new standard callback > (ContextDiffCallback) that works similarly to SDiffCallback but > produces a smaller diff set. I have just updated the package in the preliminary Ruby Production Archive (RPA) repository (http://rubyforge.org/frs/?group_id=265) $ rpa query diff-lcs Matching available ports: diff-lcs 1.1.0-1 LCS algorithm to compute differences between two enumerable containers As usual, it can be installed/upgraded with rpa install diff-lcs When reviewing the library while packaging, I have found some small quirks, which I fixed in the RPA package (note that the following is not the exact patch I applied): batsman@tux-chan:/tmp/diff-lcs-1.1.0/bin$ RUBYOPT= ldiff -u htmldiff.orig htmldiff --- htmldiff.orig 2004-08-08 23:47:38 +0200 +++ htmldiff 2004-08-08 23:48:11 +0200 @@ -1,4 +1,4 @@ -#! /usr/bin/env ruby +#!/usr/bin/env ruby #-- # Copyright 2004 Austin Ziegler # adapted from: @@ -17,7 +17,7 @@ require 'rubygems' require_gem 'diff-lcs', "1.1.0" require 'diff/lcs/string' -rescue +rescue LoadError require 'diff/lcs/string' end batsman@tux-chan:/tmp/diff-lcs-1.1.0/bin$ RUBYOPT= ldiff -u ldiff.orig ldiff --- ldiff.orig 2004-08-08 23:47:41 +0200 +++ ldiff 2004-08-08 23:48:34 +0200 @@ -1,4 +1,4 @@ -#!/user/bin/env ruby +#!/usr/bin/env ruby # = Diff::LCS 1.1.0 # == ldiff Usage # ldiff [options] oldfile newfile @@ -33,7 +33,7 @@ begin require 'rubygems' require_gem 'diff-lcs', "1.1.0" -rescue +rescue LoadError require 'diff/lcs' end -- Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com