Sha256: d510e9b921c7c9b61a345d4d8a107264fd85b3e71359252c0757e653192909fd
Contents?: true
Size: 829 Bytes
Versions: 3
Compression:
Stored size: 829 Bytes
Contents
require 'rack' module Rack #:nodoc: # = Rack Middleware for GEOIP Lookups # # Rack::Geoip is intended to be a rack interface into a GeoIP database # provided by MaxMind (http://www.maxmind.com). See the README for # installation # # == Usage # # === Basic Usage # # require 'rack/geoip' # use Rack::Geoip # run app # # === Using with Rails # # Add this to your config/environment.rb # # config.gem 'rack-geoip' # # And then in an initializer block # # config.middleware.use "Rack::Geoip", # :db => 'data/GeoLiteCity.dat', # :path => '/geoip/info', # :db_lookup => :memory # module Geoip autoload :Lookup, 'rack/geoip/lookup' def self.new(backend, options = {}) Lookup.new(backend,options) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rack-geoip-2.0.2 | lib/rack/geoip.rb |
rack-geoip-2.0.1 | lib/rack/geoip.rb |
rack-geoip-0.1.2 | lib/rack/geoip.rb |