GeoIP is a pure-Ruby replacement for some of the functionality in the wrapped C library by Sean Chittenden. Given an IP address or hostname, it looks up the country where that IP address is allocated.
Clifford Heath
gem "geoip", "~> 0.4.0"