trackdown 0.3.0
Trackdown is a Ruby gem that allows you to geolocate IP addresses easily. It works out of the box with Cloudflare headers if your Rails app is behind it; or you can also use MaxMind databases (BYOK). The gem offers a clean API for Rails applications to fetch country, city, emoji flag, region, continent, postal code, latitude, longitude and other GeoIP information for any IP address. Supports Cloudflare headers, and MaxMind GeoLite2 databases (offline capable).
Gemfile:
=
安裝:
=
Runtime 相依性套件 (1):
countries
~> 7.0