New module: Net::GeoIP

New module: Net::GeoIP

Usage:

require 'geoip'
g = Net::GeoIP.new()
g.country_code_by_addr('127.0.0.1') >> 'US'
g.country_code_by_name('yahoo.com') >> 'US'
g.country_code3_by_addr('127.0.0.1') >> 'USA'
g.country_code3_by_name('yahoo.com') >> 'USA'
g.country_name_by_addr('127.0.0.1') >> 'United States'
g.country_name_by_name('yahoo.com') >> 'United States'

Please note that this works on other countries, not just the US.

Download:

bzip2: http://www.rubynet.org/modules/net/geoip/ruby-net-geoip-0.01.tar.bz2
bzip2 MD5: http://www.rubynet.org/modules/net/geoip/ruby-net-geoip-0.01.tar.bz2.md5
gzip: http://www.rubynet.org/modules/net/geoip/ruby-net-geoip-0.01.tar.gz
gzip MD5: http://www.rubynet.org/modules/net/geoip/ruby-net-geoip-0.01.tar.gz.md5

--Sean

ยทยทยท

--
All future notices of updates will be sent through announce@rubynet.org

Subscribe to announce@rubynet.org:
http://lists.rubynet.org/lists/listinfo/rubynet-announce