README.md in authtrail-0.4.3 vs README.md in authtrail-0.5.0
- old
+ new
@@ -1,11 +1,9 @@
# AuthTrail
Track Devise login activity
-**AuthTrail 0.4.0 was recently released** - see [how to upgrade](#upgrading)
-
:tangerine: Battle-tested at [Instacart](https://www.instacart.com/opensource)
[![Build Status](https://github.com/ankane/authtrail/workflows/build/badge.svg?branch=master)](https://github.com/ankane/authtrail/actions)
## Installation
@@ -133,17 +131,21 @@
AuthTrail.job_queue = :low_priority
```
### Local Geocoding
-For privacy and performance, we recommend geocoding locally. Add this line to your application’s Gemfile:
+For privacy and performance, we recommend geocoding locally.
+For city-level geocoding, download the [GeoLite2 City database](https://dev.maxmind.com/geoip/geoip2/geolite2/).
+
+Add this line to your application’s Gemfile:
+
```ruby
gem "maxminddb"
```
-For city-level geocoding, download the [GeoLite2 City database](https://dev.maxmind.com/geoip/geoip2/geolite2/) and create `config/initializers/geocoder.rb` with:
+And create `config/initializers/geocoder.rb` with:
```ruby
Geocoder.configure(
ip_lookup: :geoip2,
geoip2: {
@@ -154,9 +156,15 @@
For country-level geocoding, install the `geoip-database` package. It’s preinstalled on Heroku. For Ubuntu, use:
```sh
sudo apt-get install geoip-database
+```
+
+Add this line to your application’s Gemfile:
+
+```ruby
+gem "geoip"
```
And create `config/initializers/geocoder.rb` with:
```ruby