atualização do rgeo para 0.3.20 em rails 4.2.2 -NoMethodError: método indefinido `ponto ‘para

Acabei de atualizar meu aplicativo rails para 4.2.2 e, portanto, também atualizei o gem rgeo para 0.3.20

Corri no seguinte erro:

NoMethodError: undefined method `point' for nil:NilClass
from /Users/dc/.rvm/gems/ruby-2.2.1/gems/rgeo-0.3.20/lib/rgeo/wkrep/wkb_parser.rb:227:in `
_parse_object'
from /Users/dc/.rvm/gems/ruby-2.2.1/gems/rgeo-0.3.20/lib/rgeo/wkrep/wkb_parser.rb:158:in `parse'

from /Users/dc/.rvm/gems/ruby-2.2.1/gems/activerecord-postgis-adapter-3.0.0/lib/active_record/connection_adapters/postgis/oid/spatial.rb:102:in `parse_wkt'
from /Users/dc/.rvm/gems/ruby-2.2.1/gems/activerecord-postgis-adapter-3.0.0/lib/active_record/connection_adapters/postgis/oid/spatial.rb:90:in `
type_cast'
from /Users/dc/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.2/lib/active_record/type/value.rb:23:in `type_cast_from_database'

from /Users/dc/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.2/lib/active_record/attribute.rb:104:in `type_cast'
from /Users/dc/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.2/lib/active_record/attribute.rb:42:in `
original_value'
from /Users/dc/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.2/lib/active_record/attribute.rb:37:in `value'

from /Users/dc/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.2/lib/active_record/attribute_set.rb:31:in `fetch_value'
from /Users/dc/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.2/lib/active_record/attribute_methods/read.rb:93:in `
_read_attribute'
from /Users/dc/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.2/lib/active_record/attribute_methods/read.rb:87:in `read_attribute'

from /Users/dc/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.2/lib/active_record/attribute_methods.rb:305:in `attribute_for_inspect'
from /Users/dc/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.2/lib/active_record/core.rb:444:in `
block in inspect'
from /Users/dc/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.2/lib/active_record/core.rb:442:in `collect'

from /Users/dc/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.2/lib/active_record/core.rb:442:in `inspect'
from (irb):4

Então eu pesquisei na lib rgeo e notei que o gerador de fábrica em rgeo retornou nil em rgeo / geos / interface.rb

Você pode verificar no irb

2.2.1 :001 > require 'rgeo'
=> true
2.2.1 :002 > RGeo::Geos.supported?
=> false

Então você quer ter certeza de que tem o GEOS lib instalado. Eu resolvi isso via brew brew install geos e instalei o rgeo novamente e finalmente funcionou