imajes/geokit — pull request #69 by ssorallen (2012-07-20 02:51:08+00:00)
Title: Support Ruby 1.8 and 1.9 in mappable.rb

This preserves backwards compatibility with Ruby 1.8 since [`Math::DomainError`](http://www.ruby-doc.org/core-1.9.3/Math/DomainError.html) was added in 1.9. If the rescue block is run in 1.8, it raises `NameError: uninitialized constant Math::DomainError`.

The commit that started rescuing the 1.9-only error class: https://github.com/imajes/geokit/commit/952f2966090261322105687a80ad75426a03d852