[ANN] gdiff / gpatch 0.0.1 released

B

Brian Schröder

Hello rubyists,

I released a new cleaned up version of the gdiff / gpatch library and
programs. Now available as a gem and in setup.rb format.

Find it at

http://ruby.brian-schroeder.de/gdiff/

Installation:

wget http://ruby.brian-schroeder.de/gdiff/releases/gdiff-0.0.1.tar.bz2
tar -xvvjf gdiff-0.0.1.tar.bz2
cd gdiff-0.0.1
ruby setup.rb

Usage:

gdiff file_a file_b > patch
gpatch file_a patch > file_b_from_patch

or as a library:

require 'gdiff'

File.open("patch", "wb") do | patch |
patch << Diff::GDiff.diff(File.read("file_a"), File.read("file_b")).pac=
k
end

File.open("file_b_from_patch", "wb") do | file_b_2 |
file_b_2 <<
Diff::GDiff.unpack(File.read("patch")).apply_to(File.read("file_a"))
end

regard,

Brian
 
Z

Zed A. Shaw

Hey Brian,

Cool stuff. I swear someday I have to get back into the fastcst
thing. I just have so much crap to do it's killing me.

Let me know if you run into any bugs in the suffix array delta library.

Zed
 
B

Brian Schröder

Hey Brian,

Cool stuff. I swear someday I have to get back into the fastcst
thing. I just have so much crap to do it's killing me.

Let me know if you run into any bugs in the suffix array delta library.

Zed

Thank you Zed,

I already wrote you directly, but maybe I used the wrong address. So
I'd like to ask you here in public if it is legal under the suffix
array library licence and acceptable to you to publish this work using
the ruby licence?
And I have included your sourcecode including the README, LICENCE and
COPYING file ripped from the fastcst tarball directly in this release.
Is that ok?

cheers,

Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,184
Messages
2,570,979
Members
47,579
Latest member
CharaS3188

Latest Threads

Top