pdeffendol / spatial_adapter

Spatial Adapter for ActiveRecord and Rails 2.x and 3.0.x - no longer in active development (try RGeo for Rails 3.1+)
MIT License
198 stars 99 forks source link

gemspec disallows ActiveRecord v3.1.0 #29

Open prezently opened 12 years ago

prezently commented 12 years ago

The docs say that spatial_adapter supports ActiveRecord v2.2 and higher, but the spatial_adapter.gemspec also prohibits 3.1.0 and higher ('activerecord', '>= 2.2.2', '< 3.1.0'). I'll clone and modify the version to see if anything breaks under 3.1. Just wanted to first ask if this might be as simple as updating the gemspec or if there's known issues with the spatial_adapter and AR 3.1.0?

Thanks, Andrew

wrkrb33 commented 12 years ago

@prezently, what have you found? Is it working alright for you under 3.1.x?

mprk commented 12 years ago

Under rails 3.1.1, it will only install spatial_adapter 1.2.0.

I tried to force it to install 1.3.1, using the following gemfile settings:

gem 'rails', '3.1.1' gem 'spatial_adapter','1.3.1'

I got the following error while running bundle install:

Fetching source index for http://rubygems.org/ Bundler could not find compatible versions for gem "activerecord": In snapshot (Gemfile.lock): activerecord (3.1.1)

In Gemfile: spatial_adapter (= 1.3.1) x86-mingw32 depends on activerecord (< 3.1.0, >= 2.2.2) x86-mingw32

Running bundle update will rebuild your snapshot from scratch, using only the gems in your Gemfile, which may resolve the conflict.