Sha256: 613ca061ef3d0e0b5832b7076305c6028c5a51dca88babd5a57eb043cf8faa39
Contents?: true
Size: 1.53 KB
Versions: 3
Compression:
Stored size: 1.53 KB
Contents
require "tekeya/version" require "tekeya/railtie" require "active_support" module Tekeya extend ActiveSupport::Autoload # Dependencies autoload :Redis, 'redis' autoload :Rebat, 'rebat' autoload :Resque, 'resque' # Modules autoload :Configuration autoload :Entity module Entity extend ActiveSupport::Autoload autoload :Group end module Errors extend ActiveSupport::Autoload autoload :TekeyaError autoload :TekeyaFatal autoload :TekeyaNonEntity autoload :TekeyaNonGroup autoload :TekeyaRelationAlreadyExists autoload :TekeyaRelationNonExistent end module Feed extend ActiveSupport::Autoload autoload :Activity autoload :Attachable autoload :Attachment autoload :Notification module Activity extend ActiveSupport::Autoload autoload :FeedItem autoload :Resque module Resque extend ActiveSupport::Autoload autoload :ActivityFanout autoload :FeedCopy autoload :DeleteActivity autoload :UntrackFeed end end end # Configure Tekeya # # Example:: # # Tekeya.configure do |config| # redis_host = "localhost" # redis_port = 9200 # flockdb_host = 9200 # flockdb_port = 9200 # end def self.configure(&block) yield Tekeya::Configuration.instance Tekeya::Configuration.instance.setup_databases end def self.relations return Tekeya::Configuration.instance.rebat end def self.redis return Tekeya::Configuration.instance.redis end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tekeya-0.0.3 | lib/tekeya.rb |
tekeya-0.0.2 | lib/tekeya.rb |
tekeya-0.0.1 | lib/tekeya.rb |