Sha256: ff1dece10cb68f40a22019579e7964012bb696483b9f669fec9af6d9e8fdaf76
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
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/message_history' require 'mad_chatter/markdown_renderer' 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 redcarpet_config = { :autolink => true, :no_intra_emphasis => true } renderer_config = { :filter_html => true, :hard_wrap => true } @markdown ||= Redcarpet::Markdown.new(MadChatter::MarkdownRenderer.new(renderer_config), redcarpet_config) end def self.start config = MadChatter::Config.init server = MadChatter::Server.new(config) server.start end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mad_chatter-0.2.9 | lib/mad_chatter.rb |