The Ruby GEM for GeoIP has been updated (now v0.2.0) to support the
GeoIPCity database. In the process, an incorrect translation from the
C language original has been repaired, so the new Gem correctly
identifies the database version.
Note: this is a pure Ruby GeoIP, unrelated to Sean Chittendon's
wrapper around the official C api.
The Ruby GEM for GeoIP has been updated (now v0.2.0) to support the
GeoIPCity database. In the process, an incorrect translation from the
C language original has been repaired, so the new Gem correctly
identifies the database version.
Note: this is a pure Ruby GeoIP, unrelated to Sean Chittendon's
wrapper around the official C api.
Usage:
require 'rubygems'
require_gem 'geoip'
p GeoIP.new('GeoIPCity.dat').city('lazaridis.com')