mokevnin/ipgeobase — pull request #12 by PlugIN73 (2013-12-05 18:45:56+00:00)
Title: add autoredirect support

Fixes issue #10

Example:

2.0.0-p247 :013 > a = Ipgeobase.lookup "46.8.114.116"
Fatal error: Space required after the Public Identifier at :1.
Fatal error: SystemLiteral " or ' expected at :1.
Fatal error: SYSTEM or PUBLIC, the URI is missing at :1.
LibXML::XML::Error: Fatal error: SYSTEM or PUBLIC, the URI is missing at :1.
from /home/vagrant/.rvm/gems/ruby-2.0.0-p247/gems/happymapper-0.4.1/lib/happymapper.rb:91:in `parse'
from /home/vagrant/.rvm/gems/ruby-2.0.0-p247/gems/happymapper-0.4.1/lib/happymapper.rb:91:in `parse'
from /home/vagrant/.rvm/gems/ruby-2.0.0-p247/gems/ipgeobase-0.1.0/lib/ipgeobase.rb:12:in `lookup'
from (irb):13
from /home/vagrant/.rvm/rubies/ruby-2.0.0-p247/bin/irb:16:in `

'

2.0.0-p247 :014 > a = Ipgeobase.lookup "46.8.114.116"
=> #

This was due to wrong response from server. It's try redirect you.