Sha256: 3347af61d1cda7c01edaa258fe4ec31a022319ade150b6f7e0e9d87af9b1a4fd

Contents?: true

Size: 1.11 KB

Versions: 9

Compression:

Stored size: 1.11 KB

Contents

ENV['RACK_ENV'] ||= 'development' # TODO - Lets not rock out envs like its 1999.

require 'firehose/version'
require 'em-hiredis' # TODO Move this into a Redis module so that we can auto-load it. Lots of the CLI tools don't need this.
require 'firehose/logging'

# TODO - Figure if we need to have an if/else for Rails::Engine loading and Firehose::Assets::Sprockets.auto_detect
require 'firehose/rails' if defined?(::Rails::Engine)

module Firehose
  autoload :Subscriber,   'firehose/subscriber'
  autoload :Publisher,    'firehose/publisher'
  autoload :Producer,     'firehose/producer' # TODO Move this into the Firehose::Client namespace.
  autoload :Default,      'firehose/default'
  autoload :Assets,       'firehose/assets'
  autoload :Rack,         'firehose/rack'
  autoload :CLI,          'firehose/cli'
  autoload :Client,       'firehose/client'
  autoload :Server,       'firehose/server'
  autoload :Channel,      'firehose/channel'
  autoload :SwfPolicyRequest, 'firehose/swf_policy_request'
end

# Detect if Sprockets is loaded. If it is, lets configure Firehose to use it!
Firehose::Assets::Sprockets.auto_detect

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
firehose-1.1.1 lib/firehose.rb
firehose-1.1.0 lib/firehose.rb
firehose-1.0.0 lib/firehose.rb
firehose-0.2.alpha.10 lib/firehose.rb
firehose-0.2.alpha.9 lib/firehose.rb
firehose-0.2.alpha.8 lib/firehose.rb
firehose-0.2.alpha.7 lib/firehose.rb
firehose-0.2.alpha.6 lib/firehose.rb
firehose-0.2.alpha.5 lib/firehose.rb