Sha256: 3ca51e99c7468cbe89cfdb870899054639a3c89b1ac56e336c5dcca668f0a55a
Contents?: true
Size: 1001 Bytes
Versions: 5
Compression:
Stored size: 1001 Bytes
Contents
lib_dir = File.expand_path('..', __FILE__) $:.unshift( lib_dir ) unless $:.include?( lib_dir ) require 'eventmachine' require 'redcarpet' require 'yaml' require 'json' require 'digest/sha1' module MadChatter def self.message_listeners @@message_listeners ||= [] end require 'mad_chatter/config' require 'mad_chatter/message' require 'mad_chatter/server' require 'mad_chatter/users' require 'mad_chatter/version' require 'mad_chatter/actions/dsl' require 'mad_chatter/actions/base' require 'mad_chatter/actions/join' require 'mad_chatter/actions/rename' require 'mad_chatter/servers/em_websocket' def self.markdown @markdown ||= Redcarpet::Markdown.new( Redcarpet::Render::HTML.new( :filter_html => true, :hard_wrap => true ), :autolink => true, :no_intra_emphasis => true ) end def self.start config = MadChatter::Config.init server = MadChatter::Server.new(config) server.start end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
mad_chatter-0.2.7 | lib/mad_chatter.rb |
mad_chatter-0.2.6 | lib/mad_chatter.rb |
mad_chatter-0.2.5 | lib/mad_chatter.rb |
mad_chatter-0.2.4 | lib/mad_chatter.rb |
mad_chatter-0.2.3 | lib/mad_chatter.rb |