jegolize 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. data/VERSION +1 -1
  2. data/app/controllers/jegol_controller.rb +43 -0
  3. data/app/views/_jegol.html.erb +49 -0
  4. data/app/views/jebol_demo.html.erb +3 -0
  5. data/config/initializers/jegol.rb +3 -0
  6. data/config/jegol.yml +31 -0
  7. data/jegolize.gemspec +31 -1
  8. data/lib/jegolize.rb +31 -0
  9. data/lib/ruby_bosh.rb +161 -0
  10. data/public/javascripts/jegol.js +571 -0
  11. data/public/javascripts/jegol.plugin/jegol.plugin.update.subject_docs/images/doc_background.gif +0 -0
  12. data/public/javascripts/jegol.plugin/jegol.plugin.update.subject_docs/images/shared.css +360 -0
  13. data/public/javascripts/jegol.plugin/jegol.plugin.update.subject_docs/index.html +1 -0
  14. data/public/javascripts/jegol.plugin/jegol.plugin.update.subject_docs/index.html.xml +2 -0
  15. data/public/javascripts/jegol.plugin/jegol.plugin.update.tag_docs/images/doc_background.gif +0 -0
  16. data/public/javascripts/jegol.plugin/jegol.plugin.update.tag_docs/images/shared.css +360 -0
  17. data/public/javascripts/jegol.plugin/jegol.plugin.update.tag_docs/index.html +1 -0
  18. data/public/javascripts/jegol.plugin/jegol.plugin.update.tag_docs/index.html.xml +2 -0
  19. data/public/javascripts/jegol.plugin/update.notify.js +53 -0
  20. data/public/javascripts/jegol.plugin/update.subject.js +17 -0
  21. data/public/javascripts/jegol.plugin/update.tag.js +84 -0
  22. data/public/javascripts/jegol.plugin/viewer.default.js +17 -0
  23. data/public/javascripts/jegol.plugin/viewer.image.js +7 -0
  24. data/public/javascripts/jegol.plugin/viewer.poll.js +6 -0
  25. data/public/javascripts/jegol.plugin/viewer.youtube.js +7 -0
  26. data/public/javascripts/jegol.tag.js +102 -0
  27. data/public/javascripts/jegol_docs/images/doc_background.gif +0 -0
  28. data/public/javascripts/jegol_docs/images/shared.css +360 -0
  29. data/public/javascripts/jegol_docs/index.html +1 -0
  30. data/public/javascripts/jegol_docs/index.html.xml +200 -0
  31. data/public/javascripts/strophe.js +3543 -0
  32. data/public/stylesheets/.gitkeep +0 -0
  33. data/public/stylesheets/jegol.css +181 -0
  34. metadata +32 -2
@@ -0,0 +1,200 @@
1
+ <?xml-stylesheet type="text/xsl" href="docs.xsl"?><javascript fileName="jegol.js">
2
+ <property name="BOSH_SERVICE" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="String">
3
+ </property>
4
+ <object_literal name="JeGol" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
5
+ <property name="connection" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="null">
6
+ </property>
7
+ <property name="room" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="null">
8
+ </property>
9
+ <property name="nickname" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="null">
10
+ </property>
11
+ <property name="joined" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="null">
12
+ </property>
13
+ <property name="participants" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="null">
14
+ </property>
15
+ <property name="lastmessagefrom" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="null">
16
+ </property>
17
+ <property name="autoReconnect" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Boolean">
18
+ </property>
19
+ <object_literal name="viewerPlugins" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
20
+ </object_literal>
21
+ <object_literal name="updatePlugins" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
22
+ </object_literal>
23
+ <function name="addViewerPlugins" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
24
+ <description>Registers viewer plugins</description>
25
+ </function>
26
+ <function name="addUpdatePlugins" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
27
+ <description>Registers update plugin&apos;s</description>
28
+ </function>
29
+ <function name="init" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
30
+ <description>Initialize components</description>
31
+ </function>
32
+ <function name="execCommand" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
33
+ <description>Send message based on type (&apos;chat&apos; or &apos;groupchat&apos;)</description>
34
+ <property name="commandExists" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
35
+ </property>
36
+ <property name="body" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
37
+ </property>
38
+ <property name="commandName" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
39
+ </property>
40
+ <property name="parameter" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
41
+ </property>
42
+ </function>
43
+ <function name="sendStanza" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
44
+ <description>Sends stanza of XMPP-type groupchat. The inner body tag is added for the purpose of graceful degradation for other unaware XMPP clients who look for the &lt;body&gt; tag. If the command passed is already &apos;body&apos; type, it will not be duplicated. &lt;body ...&gt; &lt; { command } &gt; { message } &lt;/ { command } &gt; &lt;body&gt;/ { command } { message } &lt;/body&gt; &lt;id&gt; { psudo -GUID}&lt;/id&gt; &lt;/body&gt;</description>
45
+ <property name="msg" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
46
+ </property>
47
+ </function>
48
+ <function name="getFullHistory" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
49
+ <description>Reconnect to chat room requesting full chat history</description>
50
+ </function>
51
+ <function name="loginSIDOnPage" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
52
+ <description>Establish connection option 1 - from hidden fields with authenticated SID from server side</description>
53
+ <property name="JeGol" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
54
+ <property name="room" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
55
+ </property>
56
+ <property name="nickname" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
57
+ </property>
58
+ </property>
59
+ </function>
60
+ <function name="loginSIDFromServer" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
61
+ <description>Establish connection option 2- from server side json store request for SID</description>
62
+ </function>
63
+ <function name="loginUsernamePassword" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
64
+ <description>Establish connection option 3 - from hidden fields with username/password</description>
65
+ <property name="JeGol" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
66
+ <property name="room" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
67
+ </property>
68
+ <property name="nickname" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
69
+ </property>
70
+ </property>
71
+ </function>
72
+ <function name="logout" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
73
+ <description>Sends &apos;unavailable&apos; XMPP-presnce stanza and disconnect.</description>
74
+ </function>
75
+ <function name="refreshconnection" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
76
+ <description>Re-login</description>
77
+ </function>
78
+ <function name="changeNickname" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
79
+ <description>Changes nickname by sending XMPP-presence type stanza</description>
80
+ <property name="msg" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
81
+ </property>
82
+ <property name="x" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
83
+ </property>
84
+ </function>
85
+ <function name="onConnect" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
86
+ <description>Listener for connection status change. On Connected: Join chat room On Disconnect: auto reconnect if so configured</description>
87
+ <property name="onConnect" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Boolean">
88
+ <description>Listener for connection status change. On Connected: Join chat room On Disconnect: auto reconnect if so configured</description>
89
+ </property>
90
+ </function>
91
+ <function name="onPresence" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
92
+ <description>Listener for presence. Updates roster on UI</description>
93
+ <property name="onPresence" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Object">
94
+ <description>Listener for presence. Updates roster on UI</description>
95
+ </property>
96
+ <property name="room" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
97
+ </property>
98
+ <property name="nickname" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
99
+ </property>
100
+ <property name="nickname_cleaned" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
101
+ </property>
102
+ <property name="user_jid" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
103
+ </property>
104
+ <property name="JeGol" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
105
+ <property name="nickname" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
106
+ </property>
107
+ </property>
108
+ </function>
109
+ <function name="onPublicMessage" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
110
+ <description>Listener for in-bound messages.</description>
111
+ <property name="onPublicMessage" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Object">
112
+ <description>Listener for in-bound messages.</description>
113
+ </property>
114
+ <property name="room" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
115
+ </property>
116
+ <property name="nickname" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
117
+ </property>
118
+ <property name="notice" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
119
+ </property>
120
+ <property name="body" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
121
+ </property>
122
+ <property name="msgID" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
123
+ </property>
124
+ <property name="delayed" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
125
+ </property>
126
+ <property name="timestamp" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
127
+ </property>
128
+ <property name="subject" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
129
+ </property>
130
+ <property name="commandIsNotHandledYet" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Boolean">
131
+ </property>
132
+ <property name="logmsg" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
133
+ </property>
134
+ </function>
135
+ <function name="addMessage" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
136
+ <description>Append to message log to UI</description>
137
+ <property name="addMessage" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Object">
138
+ <description>Append to message log to UI</description>
139
+ <property name="scrollTop" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
140
+ </property>
141
+ </property>
142
+ <property name="isAtBottom" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
143
+ </property>
144
+ </function>
145
+ <function name="_htmlEncode" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
146
+ <description>Helper: HTML encode</description>
147
+ </function>
148
+ <function name="_htmlDecode" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
149
+ <description>Helper: HTML dencode</description>
150
+ </function>
151
+ <function name="_isNullOrEmpty" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
152
+ <description>Helper: True if string is null or empty or line break</description>
153
+ </function>
154
+ <function name="_stripTimeStampFromNickname" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
155
+ <description>To support multiple browser/client with same nickname, a time stampe is added after a &quot;:~:&quot; pattern. This helper strips the nickname to bare name. e.g. Guest1324:~:1278889735, alem:~:1278889735</description>
156
+ </function>
157
+ <function name="_logNickname" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
158
+ <description>If the same JID/nickname sends multiple messages, do not display it repeatedly. The first message will have the nickname, subsequent messages will not until the sequence is broken by someone else sending a message in between.</description>
159
+ <property name="tempName" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
160
+ </property>
161
+ <property name="JeGol" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
162
+ <property name="lastmessagefrom" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
163
+ </property>
164
+ </property>
165
+ </function>
166
+ <function name="psudoGuid" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
167
+ <description>Helper: Generate psudo GUID</description>
168
+ </function>
169
+ <function name="S4" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Function">
170
+ </function>
171
+ <function name="setCookie" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
172
+ <description>Helper: Set value in cookie</description>
173
+ <property name="exdate" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
174
+ </property>
175
+ <property name="document" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
176
+ <property name="cookie" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
177
+ </property>
178
+ </property>
179
+ </function>
180
+ <function name="getCookie" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
181
+ <description>Helper: Get value from cookie</description>
182
+ <property name="c_start" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
183
+ </property>
184
+ <property name="c_end" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
185
+ </property>
186
+ </function>
187
+ </object_literal>
188
+ <property name="window" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
189
+ <function name="onload" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
190
+ <description>Start connection on HTML page load</description>
191
+ </function>
192
+ <function name="onbeforeunload" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="false" internal="false" type="Function">
193
+ <description>Close connection on HTML page unload</description>
194
+ <property name="JeGol" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
195
+ <property name="autoReconnect" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Boolean">
196
+ </property>
197
+ </property>
198
+ </function>
199
+ </property>
200
+ </javascript>