GeoIP2 library with compatibility interface for https://github.com/mtodd/geoip
C Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ext/geoip2_compat
lib
test
.gitignore
.travis.yml
Gemfile
LICENSE
README.md Initial gem version Oct 15, 2014
Rakefile
geoip2_compat.gemspec

README.md

Ruby GeoIP2 compatibility bindings

Implements the new Maxmind database format while keeping the output complatible with https://github.com/mtodd/geoip

Dependencies

This depends on libmaxminddb

Installation

gem install geoip2_compat

Usage

geoip = GeoIP2Compat.new(dbfile)
geoip.lookup("24.24.24.24")