geoip2_compat

Lookup IPv4 and IPv6 addresses in Maxmind GeoIP2 database files


License
MIT
Install
gem install geoip2_compat -v 0.0.3

Documentation

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