[Xapian-devel] Ruby bindings now pass all smoketests

Olly Betts olly at survex.com
Sat Apr 22 05:29:07 BST 2006


On Fri, Apr 21, 2006 at 10:03:10PM -0300, Paul Legato wrote:
> I am happy to announce that the Xapian-Ruby bindings now pass all tests 
> defined in smoketest.rb. (These tests are mostly drawn from 
> smoketest.py; a few tests that are not applicable to the Ruby version 
> have been removed.) I have also added Olly's patch to integrate the Ruby 
> bindings into the automake/configure scripts.

The Makefile.am patch got applied to the wrong Makefile.am, and
my configure test was broken.  Also, now there's a xapian.rb we need
to find out where to install that.

I've renamed the .so to _xapian.so because otherwise I don't see how
xapian.rb can load xapian.so once both are installed, but perhaps I'm
missing some subtlety (none of the Ruby modules installed on my dev-box
have a .so and .rb with the same basename).  Or perhaps there's a
Ruby convention for how to name the .so in this situation.

Anyway, here's a patch:

http://www.oligarchy.co.uk/xapian/patches/xapian-ruby-tweaks.patch

This also updates the top-level documentation files to list Ruby
support.

> Usage information is in the included README.txt. I have not yet tried 
> any real world application of the Ruby bindings, just the smoketest, so 
> the Ruby bindings should be considered beta quality at best.

It'd be good to have Ruby versions of simpleindex and simplesearch
which would provide a more real world test, and serve as good examples
(the other bindings all have versions).

Cheers,
    Olly



More information about the Xapian-devel mailing list