From 340da225afa7473426e3bfed34840a8a30455b5d Mon Sep 17 00:00:00 2001
From: Alex Reisner <alex@alexreisner.com>
Date: Sat, 8 Nov 2014 10:00:35 -0500
Subject: [PATCH] Rename config setting from :maxminddb_gem to :lib.

---
 README.md                      | 2 +-
 lib/geocoder/lookups/geoip2.rb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index bd13575b..d17e855e 100644
--- a/README.md
+++ b/README.md
@@ -735,7 +735,7 @@ You must add either the *[hive_geoip2](https://rubygems.org/gems/hive_geoip2)* g
     Geocoder.configure(
       ip_lookup: :geoip2, 
       geoip2: {
-        maxminddb_gem: 'hive_geoip2',
+        lib: 'hive_geoip2',
         file: File.join('folder', 'GeoLite2-City.mmdb')
       }
     )
diff --git a/lib/geocoder/lookups/geoip2.rb b/lib/geocoder/lookups/geoip2.rb
index acfdfe40..894dabcc 100644
--- a/lib/geocoder/lookups/geoip2.rb
+++ b/lib/geocoder/lookups/geoip2.rb
@@ -7,7 +7,7 @@ module Geocoder
       def initialize
         unless configuration[:file].nil?
           begin
-            @gem_name = configuration[:maxminddb_gem] || 'maxminddb'
+            @gem_name = configuration[:lib] || 'maxminddb'
             require @gem_name
           rescue LoadError
             raise "Could not load Maxmind DB dependency. To use the GeoIP2 lookup you must add the #{@gem_name} gem to your Gemfile or have it installed in your system."
-- 
GitLab