Module: Lookout::Rack

Defined in:
lib/lookout-rack-1.0.rb,
lib/lookout-rack-1.0/version.rb

Overview

[Rack](rack.rubyforge.org/) interface for [Lookout](disu.se/software/lookout/).

Defined Under Namespace

Modules: Methods Classes: Cookie, Cookies, Session

Constant Summary collapse

DefaultHost =

The default host/URI to use for requests and cookies.

'example.org'
Error =

Base class for errors raised from Lookout::Rack.

Class.new(StandardError)
RedirectError =

Error raised when a redirect is tried when none has been specified.

Class.new(Error)
RequestError =

Error raised when a request hasn’t been made yet.

Class.new(Error)
ResponseError =

Error raised when a response hasn’t been received yet.

Class.new(Error)
Version =
Inventory.new(1, 0, 1){
  authors{
    author 'Nikolai Weibull', '[email protected]'
  }

  homepage 'http://disu.se/software/lookout-rack/'

  licenses{
    license 'LGPLv3+',
            'GNU Lesser General Public License, version 3 or later',
            'http://www.gnu.org/licenses/'
  }

  def dependencies
    super + Inventory::Dependencies.new{
      development 'inventory-rake', 1, 6, 0
      development 'inventory-rake-tasks-yard', 1, 4, 0
      development 'lookout-rake', 3, 1, 0
      development 'sinatra', 1, 0, 0
      development 'yard', 0, 8, 0
      development 'yard-heuristics', 1, 2, 0
      runtime 'lookout', 3, 0, 0
      runtime 'rack', 1, 0, 0, :feature => 'rack'
    }
  end

  def requires
    %w[time
       uri]
  end

  def package_libs
    %w[cookie.rb
       cookies.rb
       methods.rb
       session.rb]
  end

  def additional_files
    %w[fixtures/app.rb
       fixtures/config.ru]
  end
}