mad_chatter 0.2.9 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/.rvmrc +1 -0
- data/Gemfile.lock +1 -3
- data/README.md +25 -20
- data/lib/mad_chatter/actions/dsl.rb +4 -10
- data/lib/mad_chatter/actions.rb +29 -0
- data/lib/mad_chatter/channel.rb +56 -0
- data/lib/mad_chatter/config.rb +22 -5
- data/lib/mad_chatter/connection.rb +29 -0
- data/lib/mad_chatter/extensions.rb +12 -0
- data/lib/mad_chatter/markdown_renderer.rb +6 -0
- data/lib/mad_chatter/message.rb +39 -12
- data/lib/mad_chatter/message_history.rb +8 -5
- data/lib/mad_chatter/message_listener.rb +17 -0
- data/lib/mad_chatter/message_listeners/code.rb +30 -0
- data/lib/mad_chatter/message_listeners/image.rb +27 -0
- data/lib/mad_chatter/message_listeners/join.rb +30 -0
- data/lib/mad_chatter/message_listeners/markdown.rb +45 -0
- data/lib/mad_chatter/message_listeners/nick.rb +26 -0
- data/lib/mad_chatter/server.rb +0 -55
- data/lib/mad_chatter/servers/em_websocket.rb +5 -14
- data/lib/mad_chatter/user.rb +78 -0
- data/lib/mad_chatter/users.rb +32 -24
- data/lib/mad_chatter/version.rb +1 -1
- data/lib/mad_chatter.rb +98 -34
- data/mad_chatter.gemspec +1 -1
- data/screenshot.png +0 -0
- data/spec/actions_spec.rb +7 -0
- data/spec/message_history_spec.rb +12 -10
- data/spec/message_listeners/code_spec.rb +37 -0
- data/spec/message_listeners/join_spec.rb +34 -0
- data/spec/message_listeners/markdown_spec.rb +47 -0
- data/spec/message_spec.rb +28 -16
- data/spec/server_spec.rb +43 -0
- data/spec/users_spec.rb +23 -0
- data/templates/extensions/example.rb +1 -1
- data/templates/extensions.rb +16 -14
- data/templates/web/css/bootstrap.css +3363 -0
- data/templates/web/css/bootstrap.min.css +610 -0
- data/templates/web/css/bootstrap.min.responsive.css +3 -0
- data/templates/web/css/bootstrap.responsive.css +567 -0
- data/templates/web/css/mad_chatter.css +59 -0
- data/templates/web/{styles.css → css/styles.css} +26 -20
- data/templates/web/img/glyphicons-halflings-white.png +0 -0
- data/templates/web/img/glyphicons-halflings.png +0 -0
- data/templates/web/index.html +173 -40
- data/templates/web/js/bootstrap.js +1722 -0
- data/templates/web/js/bootstrap.min.js +1 -0
- data/templates/web/js/mad_chatter.js +292 -0
- data/templates/web/{mad_chatter_actions.js → js/mad_chatter_actions.js} +0 -0
- data/templates/web/js/mad_chatter_config.js +3 -0
- data/templates/web/js/swfobject.js +4 -0
- data/templates/web/js/web_socket.js +389 -0
- data/templates/web/swf/WebSocketMain.swf +0 -0
- metadata +65 -62
- data/TODO.txt +0 -10
- data/templates/web/mad_chatter.js +0 -161
- data/templates/web/mad_chatter_config.js +0 -1
- data/templates/web/markitup/jquery.markitup.js +0 -593
- data/templates/web/markitup/sets/markdown/images/bold.png +0 -0
- data/templates/web/markitup/sets/markdown/images/code.png +0 -0
- data/templates/web/markitup/sets/markdown/images/h1.png +0 -0
- data/templates/web/markitup/sets/markdown/images/h2.png +0 -0
- data/templates/web/markitup/sets/markdown/images/h3.png +0 -0
- data/templates/web/markitup/sets/markdown/images/h4.png +0 -0
- data/templates/web/markitup/sets/markdown/images/h5.png +0 -0
- data/templates/web/markitup/sets/markdown/images/h6.png +0 -0
- data/templates/web/markitup/sets/markdown/images/italic.png +0 -0
- data/templates/web/markitup/sets/markdown/images/link.png +0 -0
- data/templates/web/markitup/sets/markdown/images/list-bullet.png +0 -0
- data/templates/web/markitup/sets/markdown/images/list-numeric.png +0 -0
- data/templates/web/markitup/sets/markdown/images/picture.png +0 -0
- data/templates/web/markitup/sets/markdown/images/preview.png +0 -0
- data/templates/web/markitup/sets/markdown/images/quotes.png +0 -0
- data/templates/web/markitup/sets/markdown/readme.txt +0 -11
- data/templates/web/markitup/sets/markdown/style.css +0 -6
- data/templates/web/markitup/skins/mad_chatter/images/handle.png +0 -0
- data/templates/web/markitup/skins/mad_chatter/images/menu.png +0 -0
- data/templates/web/markitup/skins/mad_chatter/images/submenu.png +0 -0
- data/templates/web/markitup/skins/mad_chatter/style.css +0 -121
@@ -1,121 +0,0 @@
|
|
1
|
-
/* -------------------------------------------------------------------
|
2
|
-
// markItUp! Universal MarkUp Engine, JQuery plugin
|
3
|
-
// By Jay Salvat - http://markitup.jaysalvat.com/
|
4
|
-
// ------------------------------------------------------------------*/
|
5
|
-
.markItUp * {
|
6
|
-
margin:0px; padding:0px;
|
7
|
-
outline:none;
|
8
|
-
}
|
9
|
-
.markItUp a:link,
|
10
|
-
.markItUp a:visited {
|
11
|
-
color:#000;
|
12
|
-
text-decoration:none;
|
13
|
-
}
|
14
|
-
.markItUp {
|
15
|
-
width: 100%;
|
16
|
-
min-width: 700px;
|
17
|
-
margin:5px 0 5px 0;
|
18
|
-
}
|
19
|
-
.markItUpContainer {
|
20
|
-
font:11px Verdana, Arial, Helvetica, sans-serif;
|
21
|
-
}
|
22
|
-
.markItUpEditor {
|
23
|
-
float:left;
|
24
|
-
font:12px Verdana, Geneva, Arial, Helvetica, sans-serif;
|
25
|
-
padding:5px;
|
26
|
-
width: 70%;
|
27
|
-
clear:both;
|
28
|
-
line-height:18px;
|
29
|
-
overflow:auto;
|
30
|
-
border: none;
|
31
|
-
resize: none;
|
32
|
-
}
|
33
|
-
.markItUpPreviewFrame {
|
34
|
-
overflow:auto;
|
35
|
-
background-color:#FFF;
|
36
|
-
width:99.9%;
|
37
|
-
height:300px;
|
38
|
-
margin:5px 0;
|
39
|
-
}
|
40
|
-
.markItUpFooter {
|
41
|
-
width:100%;
|
42
|
-
}
|
43
|
-
.markItUpResizeHandle {
|
44
|
-
overflow:hidden;
|
45
|
-
width:22px; height:5px;
|
46
|
-
margin-left:auto;
|
47
|
-
margin-right:auto;
|
48
|
-
background-image:url(images/handle.png);
|
49
|
-
cursor:n-resize;
|
50
|
-
}
|
51
|
-
/***************************************************************************************/
|
52
|
-
/* first row of buttons */
|
53
|
-
.markItUpHeader ul li {
|
54
|
-
list-style:none;
|
55
|
-
float:left;
|
56
|
-
position:relative;
|
57
|
-
}
|
58
|
-
.markItUpHeader ul li:hover > ul{
|
59
|
-
display:block;
|
60
|
-
}
|
61
|
-
.markItUpHeader ul .markItUpDropMenu {
|
62
|
-
background:transparent url(images/menu.png) no-repeat 115% 50%;
|
63
|
-
margin-right:5px;
|
64
|
-
}
|
65
|
-
.markItUpHeader ul .markItUpDropMenu li {
|
66
|
-
margin-right:0px;
|
67
|
-
}
|
68
|
-
/* next rows of buttons */
|
69
|
-
.markItUpHeader ul ul {
|
70
|
-
display:none;
|
71
|
-
position:absolute;
|
72
|
-
top:18px; left:0px;
|
73
|
-
background:#FFF;
|
74
|
-
border:1px solid #000;
|
75
|
-
}
|
76
|
-
.markItUpHeader ul ul li {
|
77
|
-
float:none;
|
78
|
-
border-bottom:1px solid #000;
|
79
|
-
}
|
80
|
-
.markItUpHeader ul ul .markItUpDropMenu {
|
81
|
-
background:#FFF url(images/submenu.png) no-repeat 100% 50%;
|
82
|
-
}
|
83
|
-
.markItUpHeader ul .markItUpSeparator {
|
84
|
-
margin:0 10px;
|
85
|
-
width:1px;
|
86
|
-
height:16px;
|
87
|
-
overflow:hidden;
|
88
|
-
background-color:#CCC;
|
89
|
-
}
|
90
|
-
.markItUpHeader ul ul .markItUpSeparator {
|
91
|
-
width:auto; height:1px;
|
92
|
-
margin:0px;
|
93
|
-
}
|
94
|
-
/* next rows of buttons */
|
95
|
-
.markItUpHeader ul ul ul {
|
96
|
-
position:absolute;
|
97
|
-
top:-1px; left:150px;
|
98
|
-
}
|
99
|
-
.markItUpHeader ul ul ul li {
|
100
|
-
float:none;
|
101
|
-
}
|
102
|
-
.markItUpHeader ul a {
|
103
|
-
display:block;
|
104
|
-
width:16px; height:16px;
|
105
|
-
text-indent:-10000px;
|
106
|
-
background-repeat:no-repeat;
|
107
|
-
padding:3px;
|
108
|
-
margin:0px;
|
109
|
-
}
|
110
|
-
.markItUpHeader ul ul a {
|
111
|
-
display:block;
|
112
|
-
padding-left:0px;
|
113
|
-
text-indent:0;
|
114
|
-
width:120px;
|
115
|
-
padding:5px 5px 5px 25px;
|
116
|
-
background-position:2px 50%;
|
117
|
-
}
|
118
|
-
.markItUpHeader ul ul a:hover {
|
119
|
-
color:#FFF;
|
120
|
-
background-color:#000;
|
121
|
-
}
|