Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (12 sloc) 370 Bytes

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")