Sha256: 6f05747dae890e76a250a56c8295bc77f77c4d42bdd40b341cf42600b3bc86e0

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

# -*- encoding: binary -*-
require 'uri'
require 'rack'
require 'thread'
require 'sequel'
require 'http_spew'
require 'rpatricia'

# The Regurgitator main module, serving as a namespace for all
# modules and classes.
#
# All modules meant for use in applications are autoload-ed,
# so just "require 'regurgitator'" in your code.
module Regurgitator

  autoload :ServerSettings, 'regurgitator/server_settings'
  autoload :Domain, 'regurgitator/domain'
  autoload :Device, 'regurgitator/device'
  autoload :FileInfo, 'regurgitator/file_info'
  autoload :Endpoint, 'regurgitator/endpoint'
  autoload :FileRequest, 'regurgitator/file_request'
  autoload :Local, 'regurgitator/local'
  autoload :LocalFile, 'regurgitator/local_file'
  autoload :ListKeys, 'regurgitator/list_keys'
  # Rack middlewares/apps
  autoload :DomainPath, 'regurgitator/domain_path'
  autoload :DomainHost, 'regurgitator/domain_host'
  autoload :OneDomain, 'regurgitator/one_domain'

  # used to wrap up all Regurgitator-specific extensions
  Error = Class.new(StandardError) # :nodoc:

  # raised when there are no readable devices
  NoDevices = Class.new(Error) # :nodoc:

  # raised by FileRequest when the HTTP status code
  # is outside of (200-299, 304)
  BadResponse = Class.new(Error) # :nodoc:
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
regurgitator-0.7.0 lib/regurgitator.rb