Sha256: 522f9fd5ad38c99932fa33e70218c340414374ae65a11f48ce8d9ced6f8a4019

Contents?: true

Size: 1.69 KB

Versions: 9

Compression:

Stored size: 1.69 KB

Contents

require 'fileutils'
require 'timeout'
require 'stringio'
require 'time'
require 'forwardable'
require 'openssl'
require 'eventmachine'
require 'rack'

module Thin
  ROOT = File.expand_path(File.dirname(__FILE__))
  
  autoload :Command,            "#{ROOT}/thin/command"
  autoload :Connection,         "#{ROOT}/thin/connection"
  autoload :Daemonizable,       "#{ROOT}/thin/daemonizing"
  autoload :Logging,            "#{ROOT}/thin/logging"
  autoload :Headers,            "#{ROOT}/thin/headers"
  autoload :Request,            "#{ROOT}/thin/request"
  autoload :Response,           "#{ROOT}/thin/response"
  autoload :Runner,             "#{ROOT}/thin/runner"
  autoload :Server,             "#{ROOT}/thin/server"
  autoload :Stats,              "#{ROOT}/thin/stats"
  
  module Backends
    autoload :Base,             "#{ROOT}/thin/backends/base"
    autoload :SwiftiplyClient,  "#{ROOT}/thin/backends/swiftiply_client"
    autoload :TcpServer,        "#{ROOT}/thin/backends/tcp_server"
    autoload :UnixServer,       "#{ROOT}/thin/backends/unix_server"
  end
  
  module Controllers
    autoload :Cluster,          "#{ROOT}/thin/controllers/cluster"
    autoload :Controller,       "#{ROOT}/thin/controllers/controller"
    autoload :Service,          "#{ROOT}/thin/controllers/service"
  end
end

require "#{Thin::ROOT}/thin/version"
require "#{Thin::ROOT}/thin/statuses"
require "#{Thin::ROOT}/rack/adapter/loader"

if Thin.win?
  # Select proper binary under Windows
  major_ruby_version = RUBY_VERSION[/^(\d+\.\d+)/]
  require "#{Thin::ROOT}/#{major_ruby_version}/thin_parser"
else
  require "#{Thin::ROOT}/thin_parser"
end

module Rack
  module Adapter
    autoload :Rails, "#{Thin::ROOT}/rack/adapter/rails"
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
thin-1.2.11 lib/thin.rb
thin-1.2.11-x86-mswin32 lib/thin.rb
thin-1.2.11-x86-mingw32 lib/thin.rb
thin-1.2.10 lib/thin.rb
thin-1.2.10-x86-mswin32 lib/thin.rb
thin-1.2.10-x86-mingw32 lib/thin.rb
thin-1.2.9 lib/thin.rb
thin-1.2.9-x86-mswin32 lib/thin.rb
thin-1.2.9-x86-mingw32 lib/thin.rb