Sha256: ce4caa01c939f37645f6782d05efc60fbc513a2ffd085378ae4ede2d1be79b5c
Contents?: true
Size: 795 Bytes
Versions: 1
Compression:
Stored size: 795 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' # module Geoip autoload :Lookup, 'rack/geoip/lookup' def self.new(backend, options = {}) Lookup.new(backend,options) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-geoip-0.1.1 | lib/rack/geoip.rb |