Open prezently opened 13 years ago
@prezently, what have you found? Is it working alright for you under 3.1.x?
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.
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