dazuma/activerecord-postgis-adapter — pull request #39 by GUI (2012-12-09 21:13:11+00:00)
Title: Enable CI with Travis (and a couple of fixes for older activerecord versions)

Thanks for merging the JDBC stuff! As a delayed followup to our other discussions at Rubyconf, I thought I'd take a stab at getting Travis CI setup with PostGIS.

I think I've got this all working and testing against all of the following combinations:

- CRuby, JRuby, and Rubinius (all in 1.8 and 1.9)
- ActiveRecord 3.0, 3.1, 3.2
- PostGIS 1.5 and 2.0

Here are the current results: https://travis-ci.org/GUI/activerecord-postgis-adapter

In the process of setting this up, I actually discovered a couple of issues in the current code:

- a540689: The adapter wasn't loading properly in CRuby and Rubinius under ActiveRecord 3.0.x. This may not have been as much of an issue in real Rails apps (where Bundler would probably require `pg` if it was in the Gemfile), but it was causing the tests to fail.
- 08e7304: The adapter was broken in JRuby and under ActiveRecord 3.1.x due to some 3.1.x specific parts of the loading process.

Sorry to tie those issues up in this messier pull request, but let me know if I can do anything to make this request easier. Thanks again!