class AllSeeingEye def self.configuration(location = nil) location ||= 'config' @@configuration ||= if defined?(Rails) YAML::load_file("#{Rails.root}/#{location}/all_seeing_eye.yml") else YAML::load_file("./#{location}/all_seeing_eye.yml") end @@configuration end def self.redis(options = {}) options = {:host => 'localhost', :port => 6379}.merge(options) @@redis ||= Redis.new(:host => options[:host], :port => options[:port]) end end require 'redis' require 'yaml' require 'chronic' require 'rbtree' require 'all_seeing_eye/model' require 'all_seeing_eye/models/request' require 'all_seeing_eye/integrations/rails2' if defined?(Rails)