Project

geoip-db

0.0
No commit activity in last 3 years
No release in over 3 years
Combining the geoip gem and the database from MaxMind, this gem offers IP Geolocation in an easy to deploy package. This product includes GeoLite data created by MaxMind, available from http://www.maxmind.com.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

GeoIP::DB

Combining the geoip gem and the database from MaxMind, this gem offers IP Geolocation in an easy to deploy package.

Usage

require 'geoip-db'

geoip = GeoIP::DB.instance
geoip.city('github.com')
#=> ["github.com", "207.97.227.239", "US", "USA", "United States", "NA", "CA", "San Francisco", "94110", 37.7484, -122.4156, 807, 415, "America/Los_Angeles"]

GeoIP::DB.instance returns an instance of GeoIP initialized with a copy of the city database. See geoip for further usage.

Packaging

  1. rake update_database
  2. Update gemspec
  3. gem build geoip-db.gemspec

Versioning

The version represents the year and month that the database was updated. Maxmind updates the database on the first Tuesday of each month.


This product includes GeoLite data created by MaxMind, available from http://www.maxmind.com.