Opened 13 years ago

Closed 13 years ago

#3999 closed defect (fixed)

Fix Ruby Bindings for Ruby 1.9.2

Reported by: jimk Owned by: jimk
Priority: normal Milestone:
Component: RubyBindings Version: svn-trunk
Severity: normal Keywords:
Cc: cfis

Description

Update the ruby bindings so they compile with Ruby 1.9.2 and 1.8.7.

Attachments (1)

ruby-tests.patch (3.0 KB ) - added by jimk 13 years ago.
Fixes some of the ruby tests. Mostly fixes names of methods and constants. It can be applied with patch -p0 in ./autotest

Download all attachments as: .zip

Change History (4)

comment:1 by jimk, 13 years ago

Status: newassigned

Note: Ruby 1.9 bindings don't work with SWIG 1.3.x, Use SWIG 2 instead. (With SWIG 1.3 and Ruby 1.9 there is a compile error about missing STR2CSTR).

comment:2 by warmerdam, 13 years ago

Jim,

I have applied your patch in trunk (r21964). I have also removed the old generated bindings from svn for now (r21965). I would be happy to backport to 1.8 branch once there is a bit of other testing. Perhaps you could drop a notice to the gdal-dev mailing list and update http://trac.osgeo.org/gdal/wiki/GdalOgrInRuby with any special information on swig versions needed and such.

I have also made you the default assignee for ruby bugs.

Thanks!

comment:3 by warmerdam, 13 years ago

Resolution: fixed
Status: assignedclosed

Improve mac build support (r21967).

by jimk, 13 years ago

Attachment: ruby-tests.patch added

Fixes some of the ruby tests. Mostly fixes names of methods and constants. It can be applied with patch -p0 in ./autotest

Note: See TracTickets for help on using tickets.