Skip to content
Snippets Groups Projects
Commit 01e96c10 authored by Alex Reisner's avatar Alex Reisner
Browse files

Merge branch 'master' of github.com:alexreisner/geocoder

parents 632f744c a977760e
No related branches found
Tags 1.0.4
No related merge requests found
......@@ -2,11 +2,16 @@
Per-release changes to Geocoder.
== 1.0.4 (2011 Sep 18)
* Remove klass method from rake task, which could conflict with app methods (thanks github.com/mguterl).
== 1.0.3 (2011 Sep 17)
* Fix: rake assets:precompile (Rails 3.1) not working in some situations.
* Add support for Google Premier geocoding service (thanks github.com/steveh).
* Update Google API URL (thanks github.com/soorajb).
* Allow rescue from timeout with FreeGeoIP (thanks github.com/lukeledet).
* Fix: rake assets:precompile (Rails 3.1) not working in some situations.
* Fix: stop double-adjusting units when using kilometers (thanks github.com/hairyheron).
== 1.0.2 (2011 June 25)
......
module Geocoder
VERSION = "1.0.3"
VERSION = "1.0.4"
end
def klass
class_name = ENV['CLASS'] || ENV['class']
raise "Please specify a CLASS (model)" unless class_name
Object.const_get(class_name)
end
namespace :geocode do
desc "Geocode all objects without coordinates."
task :all => :environment do
class_name = ENV['CLASS'] || ENV['class']
raise "Please specify a CLASS (model)" unless class_name
klass = Object.const_get(class_name)
klass.not_geocoded.each do |obj|
obj.geocode; obj.save
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment