This gem is an extension to spree and allows for zoning based on zip codes.
Start by adding the gem to your existing Rails 3.x application's Gemfile
gem 'spree_zones_by_zip_code'
Update your bundle
bundle install
Install all of the necessary migrations, assets, etc.
rake spree_zones_by_zip_code:install
Migrate
rake db:migrate