trackdown 0.2.0
Trackdown is a Ruby gem that easily allows you to geolocate IP addresses. It works out of the box with Cloudflare headers if you're using it, or you can use MaxMind (BYOK). The gem offers a clean API for Rails applications to fetch country, city, and emoji flag information for any IP address. Supports Cloudflare headers (instant, zero overhead) and MaxMind GeoLite2 database (offline capable).
Gemfile:
=
install:
=
Runtime Dependencies (1):
countries
~> 7.0
Development Dependencies (8):
connection_pool
~> 2.4
maxmind-db
~> 1.2
minitest
~> 5.25
mocha
~> 2.0
rake
~> 13.0
rubocop
~> 1.21
simplecov
~> 0.22
webmock
~> 3.0