[Mapserver-users] ANN: MapScript for Ruby

Sean Gillies sgillies at frii.com
Mon Feb 2 18:48:11 EST 2004


On Feb 2, 2004, at 3:33 PM, Pirmin Kalberer wrote:

> Am Montag, 2. Februar 2004 22.30 schrieb Sean Gillies:
>> I just looked at the patch to mapscript.i.  It won't work with the
>> next release due to my recent work on the styleObj shadow class
>>
>>    http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=548
>>
>
> For this styleObj API only one of the examples has to be changed.
>
>> But there's no reason why we can't work together to bring the Ruby
>> bindings into the fold for the next release.
>
> If you add the Ruby bindings (without patch) to the CVS we would fix 
> the
> example.
>
> Regards
> Pirmin
>

Hi all,

I have checked the Ruby files into CVS (HEAD) under mapscript/ruby.  At 
Steve's
suggestion I have created two stub interface files: rbmodule.i is for
Ruby-specific typemaps and such, rbextend.i is for Ruby-specific 
extensions
to the shadow classes defined in mapscript.  Each of these files are
automatically included with mapscript.i for Ruby (look for the #ifdef
SWIGRUBY directives in mapscript.i).

The mapscript.i file remains the place where code common to all 
languages
will be.

All that remains to be done is to get CVS access for the Ruby MapScript
developers and to add the Ruby module to the code which runs SWIG
nightly.  One note about this is that swig -ruby generates a lot of
noise as all the MapScript classes are capitalized.  I wish swig -python
did this!

Welcome to the neighborhood, Ruby!

cheers,
Sean

--
Sean Gillies
sgillies at frii dot com
http://users.frii.com/sgillies




More information about the mapserver-users mailing list