Sha256: 0d32c53a18d13b22922b4afe15731ea0ebdd12648c6952be7e439003d9f6467c

Contents?: true

Size: 356 Bytes

Versions: 6

Compression:

Stored size: 356 Bytes

Contents

require "rack/simple_user_agent/version"
require "rack/simple_user_agent/detectors"
require 'rack/simple_user_agent/railtie' if defined?(Rails)

module Rack
  class SimpleUserAgent
    def initialize(app)
      @app = app
    end

    def call(env)
      @app.call(env)
    end
  end

  class Request
    include Rack::SimpleUserAgent::Detectors
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rack-simple_user_agent-0.4.0 lib/rack/simple_user_agent.rb
rack-simple_user_agent-0.3.0 lib/rack/simple_user_agent.rb
rack-simple_user_agent-0.3.0.rc lib/rack/simple_user_agent.rb
rack-simple_user_agent-0.2.2 lib/rack/simple_user_agent.rb
rack-simple_user_agent-0.2.1 lib/rack/simple_user_agent.rb
rack-simple_user_agent-0.2.0 lib/rack/simple_user_agent.rb