Sha256: 94d64c4d0b1133374c94c87ce23aca0e4aa7ee18e2dea2ff092a4857fbd9079e

Contents?: true

Size: 918 Bytes

Versions: 1

Compression:

Stored size: 918 Bytes

Contents

# -*- encoding: binary -*-

require 'moneta'
require 'upr/status'
module Upr

  # Upr version number
  VERSION = '0.3.0'

  autoload :Monitor, 'upr/monitor'
  autoload :Params, 'upr/params'
  autoload :InputWrapper, 'upr/input_wrapper'
  autoload :JSON, 'upr/json'

  # Initializes a new instance of Upr::InputWrapper.  Usage in config.ru:
  #
  #   use Upr, :path_info => %w(/upload),
  #            :drb => "druby://192.168.0.1:666",
  #            :frequency => 1
  #
  # This middleware MUST be be loaded before any parameter parsers
  # like ActionController::ParamsParser in Rails.
  #
  # For use in RAILS_ROOT/config/environment.rb, the following
  # works insdie the Rails::Initializer.run block:
  #
  #   config.middleware.insert_before('ActionController::ParamsParser',
  #       'Upr', :path_info => '/', :drb => "druby://192.168.0.1:666")
  #
  def self.new(*args)
    InputWrapper.new(*args)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
upr-0.3.0 lib/upr.rb