tweet 0.6

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 (65) hide show
  1. data/bin/ttime +36 -0
  2. data/bin/tweet +30 -0
  3. data/bin/tweetd +126 -0
  4. data/doc/classes/SimplePop.html +125 -0
  5. data/doc/classes/SimplePop.src/M000009.html +59 -0
  6. data/doc/classes/SimplePop.src/M000010.html +43 -0
  7. data/doc/classes/SimplePopWindow.html +126 -0
  8. data/doc/classes/SimplePopWindow.src/M000005.html +77 -0
  9. data/doc/classes/SimplePopWindow.src/M000006.html +36 -0
  10. data/doc/classes/SyslogNotifier.html +113 -0
  11. data/doc/classes/SyslogNotifier.src/M000003.html +34 -0
  12. data/doc/classes/SyslogNotifier.src/M000004.html +39 -0
  13. data/doc/classes/Tweet/Monitor.html +236 -0
  14. data/doc/classes/Tweet/Monitor.src/M000028.html +53 -0
  15. data/doc/classes/Tweet/Monitor.src/M000029.html +38 -0
  16. data/doc/classes/Tweet/Monitor.src/M000030.html +40 -0
  17. data/doc/classes/Tweet/Monitor.src/M000031.html +31 -0
  18. data/doc/classes/Tweet/Monitor.src/M000032.html +32 -0
  19. data/doc/classes/Tweet/Monitor.src/M000033.html +65 -0
  20. data/doc/classes/Tweet/Monitor.src/M000034.html +38 -0
  21. data/doc/classes/Tweet/Note.html +272 -0
  22. data/doc/classes/Tweet/Note.src/M000020.html +32 -0
  23. data/doc/classes/Tweet/Note.src/M000021.html +30 -0
  24. data/doc/classes/Tweet/Note.src/M000022.html +30 -0
  25. data/doc/classes/Tweet/Note.src/M000023.html +30 -0
  26. data/doc/classes/Tweet/Note.src/M000024.html +30 -0
  27. data/doc/classes/Tweet/Note.src/M000025.html +30 -0
  28. data/doc/classes/Tweet/Note.src/M000026.html +30 -0
  29. data/doc/classes/Tweet/Note.src/M000027.html +30 -0
  30. data/doc/classes/Tweet/Notifier.html +147 -0
  31. data/doc/classes/Tweet/Notifier.src/M000018.html +34 -0
  32. data/doc/classes/Tweet/Notifier.src/M000019.html +30 -0
  33. data/doc/classes/Tweet.html +336 -0
  34. data/doc/classes/Tweet.src/M000011.html +42 -0
  35. data/doc/classes/Tweet.src/M000012.html +30 -0
  36. data/doc/classes/Tweet.src/M000013.html +30 -0
  37. data/doc/classes/Tweet.src/M000014.html +30 -0
  38. data/doc/classes/Tweet.src/M000015.html +30 -0
  39. data/doc/classes/Tweet.src/M000016.html +30 -0
  40. data/doc/classes/Tweet.src/M000017.html +30 -0
  41. data/doc/classes/XOSDNotifier.html +113 -0
  42. data/doc/classes/XOSDNotifier.src/M000007.html +36 -0
  43. data/doc/classes/XOSDNotifier.src/M000008.html +38 -0
  44. data/doc/created.rid +1 -0
  45. data/doc/files/README.html +228 -0
  46. data/doc/files/bin/ttime.html +112 -0
  47. data/doc/files/bin/tweet.html +111 -0
  48. data/doc/files/bin/tweetd.html +163 -0
  49. data/doc/files/bin/tweetd.src/M000001.html +51 -0
  50. data/doc/files/bin/tweetd.src/M000002.html +30 -0
  51. data/doc/files/lib/tweet_rb.html +178 -0
  52. data/doc/files/plugins/simplepop_rb.html +97 -0
  53. data/doc/files/plugins/syslog_rb.html +101 -0
  54. data/doc/files/plugins/xosd_rb.html +96 -0
  55. data/doc/fr_class_index.html +53 -0
  56. data/doc/fr_file_index.html +53 -0
  57. data/doc/fr_method_index.html +79 -0
  58. data/doc/index.html +26 -0
  59. data/doc/rdoc-style.css +175 -0
  60. data/images/comments.png +0 -0
  61. data/lib/tweet.rb +437 -0
  62. data/plugins/simplepop.rb +128 -0
  63. data/plugins/syslog.rb +24 -0
  64. data/plugins/xosd.rb +23 -0
  65. metadata +142 -0
@@ -0,0 +1,32 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html>
6
+ <head><title>stop (Tweet::Monitor)</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
8
+ <style>
9
+ .ruby-comment { color: green; font-style: italic }
10
+ .ruby-constant { color: #4433aa; font-weight: bold; }
11
+ .ruby-identifier { color: #222222; }
12
+ .ruby-ivar { color: #2233dd; }
13
+ .ruby-keyword { color: #3333FF; font-weight: bold }
14
+ .ruby-node { color: #777777; }
15
+ .ruby-operator { color: #111111; }
16
+ .ruby-regexp { color: #662222; }
17
+ .ruby-value { color: #662222; font-style: italic }
18
+ .kw { color: #3333FF; font-weight: bold }
19
+ .cmt { color: green; font-style: italic }
20
+ .str { color: #662222; font-style: italic }
21
+ .re { color: #662222; }
22
+ </style>
23
+ </head>
24
+ <body bgcolor="white">
25
+ <pre><span class="ruby-comment cmt"># File lib/tweet.rb, line 343</span>
26
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stop</span>
27
+ <span class="ruby-ivar">@syslog</span>.<span class="ruby-identifier">info</span>(<span class="ruby-value str">'tweetd stopping.'</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@syslog</span>
28
+ <span class="ruby-constant">Pidify</span>.<span class="ruby-identifier">stop</span>
29
+ <span class="ruby-identifier">old_stop</span>
30
+ <span class="ruby-keyword kw">end</span></pre>
31
+ </body>
32
+ </html>
@@ -0,0 +1,65 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html>
6
+ <head><title>serve (Tweet::Monitor)</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
8
+ <style>
9
+ .ruby-comment { color: green; font-style: italic }
10
+ .ruby-constant { color: #4433aa; font-weight: bold; }
11
+ .ruby-identifier { color: #222222; }
12
+ .ruby-ivar { color: #2233dd; }
13
+ .ruby-keyword { color: #3333FF; font-weight: bold }
14
+ .ruby-node { color: #777777; }
15
+ .ruby-operator { color: #111111; }
16
+ .ruby-regexp { color: #662222; }
17
+ .ruby-value { color: #662222; font-style: italic }
18
+ .kw { color: #3333FF; font-weight: bold }
19
+ .cmt { color: green; font-style: italic }
20
+ .str { color: #662222; font-style: italic }
21
+ .re { color: #662222; }
22
+ </style>
23
+ </head>
24
+ <body bgcolor="white">
25
+ <pre><span class="ruby-comment cmt"># File lib/tweet.rb, line 350</span>
26
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">serve</span>(<span class="ruby-identifier">client</span>)
27
+ <span class="ruby-identifier">client</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;200 Tweet #{VERSION} ready.&quot;</span>
28
+
29
+ <span class="ruby-identifier">data</span> = <span class="ruby-identifier">client</span>.<span class="ruby-identifier">gets</span>.<span class="ruby-identifier">chomp</span>
30
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">data</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/app &quot;([^&quot;]*)&quot;/</span>
31
+ <span class="ruby-identifier">client</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;500 I don't know who you are.&quot;</span>
32
+ <span class="ruby-keyword kw">return</span>
33
+ <span class="ruby-keyword kw">end</span>
34
+ <span class="ruby-identifier">app</span> = <span class="ruby-identifier">$1</span>
35
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">data</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/title &quot;([^&quot;]*)&quot;/</span>
36
+ <span class="ruby-identifier">client</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;500 Title required.&quot;</span>
37
+ <span class="ruby-keyword kw">return</span>
38
+ <span class="ruby-keyword kw">end</span>
39
+ <span class="ruby-identifier">title</span> = <span class="ruby-identifier">$1</span>
40
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">data</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/message &quot;([^&quot;]*)&quot;/</span>
41
+ <span class="ruby-identifier">client</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;500 Message required.&quot;</span>
42
+ <span class="ruby-keyword kw">return</span>
43
+ <span class="ruby-keyword kw">end</span>
44
+ <span class="ruby-identifier">message</span> = <span class="ruby-identifier">$1</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">'\n'</span>, <span class="ruby-value str">&quot;\n&quot;</span>)
45
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">data</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/duration &quot;([^&quot;]*)&quot;/</span>
46
+ <span class="ruby-identifier">client</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;500 Duration required.&quot;</span>
47
+ <span class="ruby-keyword kw">return</span>
48
+ <span class="ruby-keyword kw">end</span>
49
+ <span class="ruby-identifier">duration</span> = <span class="ruby-identifier">$1</span>
50
+ <span class="ruby-identifier">notifier</span> = <span class="ruby-value str">''</span>
51
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">data</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/notifier &quot;([^&quot;]*)&quot;/</span>
52
+ <span class="ruby-identifier">notifier</span> = <span class="ruby-identifier">$1</span>
53
+ <span class="ruby-keyword kw">end</span>
54
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">data</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/priority &quot;([^&quot;]*)&quot;/</span>
55
+ <span class="ruby-identifier">client</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;500 Priority required.&quot;</span>
56
+ <span class="ruby-keyword kw">return</span>
57
+ <span class="ruby-keyword kw">end</span>
58
+ <span class="ruby-identifier">priority</span> = <span class="ruby-identifier">$1</span>.<span class="ruby-identifier">to_i</span>
59
+ <span class="ruby-identifier">client</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;200 Request accepted.&quot;</span>
60
+
61
+ <span class="ruby-identifier">note</span> = <span class="ruby-constant">Note</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">title</span>, <span class="ruby-identifier">message</span>, <span class="ruby-identifier">duration</span>, <span class="ruby-identifier">priority</span>, <span class="ruby-identifier">app</span>, <span class="ruby-identifier">notifier</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">' '</span>), <span class="ruby-identifier">:tcp</span>)
62
+ <span class="ruby-identifier">notify</span>(<span class="ruby-identifier">note</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">priority</span> <span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@allow_priority</span>
63
+ <span class="ruby-keyword kw">end</span></pre>
64
+ </body>
65
+ </html>
@@ -0,0 +1,38 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html>
6
+ <head><title>notify (Tweet::Monitor)</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
8
+ <style>
9
+ .ruby-comment { color: green; font-style: italic }
10
+ .ruby-constant { color: #4433aa; font-weight: bold; }
11
+ .ruby-identifier { color: #222222; }
12
+ .ruby-ivar { color: #2233dd; }
13
+ .ruby-keyword { color: #3333FF; font-weight: bold }
14
+ .ruby-node { color: #777777; }
15
+ .ruby-operator { color: #111111; }
16
+ .ruby-regexp { color: #662222; }
17
+ .ruby-value { color: #662222; font-style: italic }
18
+ .kw { color: #3333FF; font-weight: bold }
19
+ .cmt { color: green; font-style: italic }
20
+ .str { color: #662222; font-style: italic }
21
+ .re { color: #662222; }
22
+ </style>
23
+ </head>
24
+ <body bgcolor="white">
25
+ <pre><span class="ruby-comment cmt"># File lib/tweet.rb, line 390</span>
26
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">notify</span>(<span class="ruby-identifier">note</span>)
27
+ <span class="ruby-identifier">notifiers_to_use</span> = []
28
+ <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@allow_requested_notifiers</span>
29
+ <span class="ruby-identifier">notifiers_to_use</span> = <span class="ruby-identifier">note</span>.<span class="ruby-identifier">requested_notifiers</span>.<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">n</span><span class="ruby-operator">|</span> <span class="ruby-identifier">get_notifier</span>(<span class="ruby-identifier">n</span>) }
30
+ <span class="ruby-keyword kw">end</span>
31
+ <span class="ruby-identifier">notifiers_to_use</span> = <span class="ruby-ivar">@active_notifiers</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">notifiers_to_use</span>.<span class="ruby-identifier">empty?</span>
32
+ <span class="ruby-identifier">notifiers_to_use</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">n</span><span class="ruby-operator">|</span>
33
+ <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">n</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">n</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:show</span>
34
+ <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">new</span> { <span class="ruby-identifier">n</span>.<span class="ruby-identifier">show</span>(<span class="ruby-identifier">note</span>) }
35
+ <span class="ruby-keyword kw">end</span>
36
+ <span class="ruby-keyword kw">end</span></pre>
37
+ </body>
38
+ </html>
@@ -0,0 +1,272 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html>
6
+ <head>
7
+ <title>Class: Tweet::Note</title>
8
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
10
+
11
+ <script language="JavaScript" type="text/javascript">
12
+ // <![CDATA[
13
+
14
+ function toggleSource( id )
15
+ {
16
+ var elem
17
+ var link
18
+
19
+ if( document.getElementById )
20
+ {
21
+ elem = document.getElementById( id )
22
+ link = document.getElementById( "l_" + id )
23
+ }
24
+ else if ( document.all )
25
+ {
26
+ elem = eval( "document.all." + id )
27
+ link = eval( "document.all.l_" + id )
28
+ }
29
+ else
30
+ return false;
31
+
32
+ if( elem.style.display == "block" )
33
+ {
34
+ elem.style.display = "none"
35
+ link.innerHTML = "show source"
36
+ }
37
+ else
38
+ {
39
+ elem.style.display = "block"
40
+ link.innerHTML = "hide source"
41
+ }
42
+ }
43
+
44
+ function openCode( url )
45
+ {
46
+ window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
47
+ }
48
+ // ]]>
49
+ </script>
50
+ </head>
51
+
52
+ <body>
53
+ <table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
54
+ <td class="file-title"><span class="file-title-prefix">Class</span><br />Tweet::Note</td>
55
+ <td align="right">
56
+ <table cellspacing=0 cellpadding=2>
57
+ <tr valign="top">
58
+ <td>In:</td>
59
+ <td>
60
+ <a href="../../files/lib/tweet_rb.html">lib/tweet.rb</a>
61
+ </td>
62
+ </tr>
63
+ <tr>
64
+ <td>Parent:</td>
65
+ <td>
66
+ Object
67
+ </td>
68
+ </tr>
69
+ </table>
70
+ </td>
71
+ </tr>
72
+ </table>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+ <div id="content">
77
+
78
+ <div class="description"><p>
79
+ Represents a unique notification message. One of these objects is passed to
80
+ the show() method of the <a href="Notifier.html">Notifier</a>.
81
+ </p>
82
+ <p>
83
+ The message can be printed by simply printing the <a
84
+ href="Note.html">Note</a> or by accessing note.message. The <a
85
+ href="Note.html">Note</a> also contains a title, a duration, a priority,
86
+ the application (program) that activated it, the connection method that it
87
+ used, and the timestamp of when the message was requested. All of these
88
+ parameters (except for the method and time) rely on the application being
89
+ honest, and have no built-in effects. Any interpretation is done by the <a
90
+ href="Notifier.html">Notifier</a>.
91
+ </p>
92
+ <p>
93
+ A <a href="Note.html">Note</a> may also include an array of requested
94
+ notifiers (see <a href="Monitor.html">Monitor</a>).
95
+ </p>
96
+ </div>
97
+
98
+
99
+
100
+ <div class="sectiontitle">Methods</div>
101
+ <ul>
102
+ <li><a href="#M000025">critical</a></li>
103
+ <li><a href="#M000026">debug</a></li>
104
+ <li><a href="#M000022">info</a></li>
105
+ <li><a href="#M000024">low</a></li>
106
+ <li><a href="#M000020">new</a></li>
107
+ <li><a href="#M000021">simple</a></li>
108
+ <li><a href="#M000027">to_s</a></li>
109
+ <li><a href="#M000023">warning</a></li>
110
+ </ul>
111
+
112
+
113
+
114
+
115
+
116
+ <div class="sectiontitle">Attributes</div>
117
+ <table border='0' cellpadding='5'>
118
+ <tr valign='top'>
119
+ <td class='attr-rw'>
120
+ [R]
121
+ </td>
122
+ <td class='attr-name'>application</td>
123
+ <td class='attr-desc'></td>
124
+ </tr>
125
+ <tr valign='top'>
126
+ <td class='attr-rw'>
127
+ [R]
128
+ </td>
129
+ <td class='attr-name'>duration</td>
130
+ <td class='attr-desc'></td>
131
+ </tr>
132
+ <tr valign='top'>
133
+ <td class='attr-rw'>
134
+ [R]
135
+ </td>
136
+ <td class='attr-name'>message</td>
137
+ <td class='attr-desc'></td>
138
+ </tr>
139
+ <tr valign='top'>
140
+ <td class='attr-rw'>
141
+ [R]
142
+ </td>
143
+ <td class='attr-name'>method_received</td>
144
+ <td class='attr-desc'></td>
145
+ </tr>
146
+ <tr valign='top'>
147
+ <td class='attr-rw'>
148
+ [R]
149
+ </td>
150
+ <td class='attr-name'>priority</td>
151
+ <td class='attr-desc'></td>
152
+ </tr>
153
+ <tr valign='top'>
154
+ <td class='attr-rw'>
155
+ [R]
156
+ </td>
157
+ <td class='attr-name'>requested_notifiers</td>
158
+ <td class='attr-desc'></td>
159
+ </tr>
160
+ <tr valign='top'>
161
+ <td class='attr-rw'>
162
+ [R]
163
+ </td>
164
+ <td class='attr-name'>time</td>
165
+ <td class='attr-desc'></td>
166
+ </tr>
167
+ <tr valign='top'>
168
+ <td class='attr-rw'>
169
+ [R]
170
+ </td>
171
+ <td class='attr-name'>title</td>
172
+ <td class='attr-desc'></td>
173
+ </tr>
174
+ </table>
175
+
176
+ <div class="sectiontitle">Public Class methods</div>
177
+ <div class="method">
178
+ <div class="title">
179
+ <a name="M000025"></a><b>critical</b>(title, message, duration, application, method_received=:built_in)
180
+ [ <a href="javascript:openCode('Note.src/M000025.html')">source</a> ]
181
+ </div>
182
+ <div class="description">
183
+ <p>
184
+ Shortcut for making a new note with the CRITICAL priority.
185
+ </p>
186
+ </div>
187
+ </div>
188
+ <div class="method">
189
+ <div class="title">
190
+ <a name="M000026"></a><b>debug</b>(title, message, duration, application, method_received=:built_in)
191
+ [ <a href="javascript:openCode('Note.src/M000026.html')">source</a> ]
192
+ </div>
193
+ <div class="description">
194
+ <p>
195
+ Shortcut for making a new note with the DEBUG priority.
196
+ </p>
197
+ </div>
198
+ </div>
199
+ <div class="method">
200
+ <div class="title">
201
+ <a name="M000022"></a><b>info</b>(title, message, duration, application, method_received=:built_in)
202
+ [ <a href="javascript:openCode('Note.src/M000022.html')">source</a> ]
203
+ </div>
204
+ <div class="description">
205
+ <p>
206
+ Shortcut for making a new note with the INFO priority.
207
+ </p>
208
+ </div>
209
+ </div>
210
+ <div class="method">
211
+ <div class="title">
212
+ <a name="M000024"></a><b>low</b>(title, message, duration, application, method_received=:built_in)
213
+ [ <a href="javascript:openCode('Note.src/M000024.html')">source</a> ]
214
+ </div>
215
+ <div class="description">
216
+ <p>
217
+ Shortcut for making a new note with the LOW priority.
218
+ </p>
219
+ </div>
220
+ </div>
221
+ <div class="method">
222
+ <div class="title">
223
+ <a name="M000020"></a><b>new</b>(title, message, duration, priority, application, notifiers=[], method_received=:built_in)
224
+ [ <a href="javascript:openCode('Note.src/M000020.html')">source</a> ]
225
+ </div>
226
+ <div class="description">
227
+ <p>
228
+ Creates a new <a href="Note.html">Note</a>.
229
+ </p>
230
+ </div>
231
+ </div>
232
+ <div class="method">
233
+ <div class="title">
234
+ <a name="M000021"></a><b>simple</b>(message)
235
+ [ <a href="javascript:openCode('Note.src/M000021.html')">source</a> ]
236
+ </div>
237
+ <div class="description">
238
+ <p>
239
+ Shortcut for calling <a href="Note.html#M000022">Note.info</a> with a
240
+ duration of 0.
241
+ </p>
242
+ </div>
243
+ </div>
244
+ <div class="method">
245
+ <div class="title">
246
+ <a name="M000023"></a><b>warning</b>(title, message, duration, application, method_received=:built_in)
247
+ [ <a href="javascript:openCode('Note.src/M000023.html')">source</a> ]
248
+ </div>
249
+ <div class="description">
250
+ <p>
251
+ Shortcut for making a new note with the WARNING priority.
252
+ </p>
253
+ </div>
254
+ </div>
255
+ <div class="sectiontitle">Public Instance methods</div>
256
+ <div class="method">
257
+ <div class="title">
258
+ <a name="M000027"></a><b>to_s</b>()
259
+ [ <a href="javascript:openCode('Note.src/M000027.html')">source</a> ]
260
+ </div>
261
+ <div class="description">
262
+ <p>
263
+ Printing the <a href="Note.html">Note</a> prints the message.
264
+ </p>
265
+ </div>
266
+ </div>
267
+ </div>
268
+
269
+ </div>
270
+
271
+ </body>
272
+ </html>
@@ -0,0 +1,32 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html>
6
+ <head><title>new (Tweet::Note)</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
8
+ <style>
9
+ .ruby-comment { color: green; font-style: italic }
10
+ .ruby-constant { color: #4433aa; font-weight: bold; }
11
+ .ruby-identifier { color: #222222; }
12
+ .ruby-ivar { color: #2233dd; }
13
+ .ruby-keyword { color: #3333FF; font-weight: bold }
14
+ .ruby-node { color: #777777; }
15
+ .ruby-operator { color: #111111; }
16
+ .ruby-regexp { color: #662222; }
17
+ .ruby-value { color: #662222; font-style: italic }
18
+ .kw { color: #3333FF; font-weight: bold }
19
+ .cmt { color: green; font-style: italic }
20
+ .str { color: #662222; font-style: italic }
21
+ .re { color: #662222; }
22
+ </style>
23
+ </head>
24
+ <body bgcolor="white">
25
+ <pre><span class="ruby-comment cmt"># File lib/tweet.rb, line 170</span>
26
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">title</span>, <span class="ruby-identifier">message</span>, <span class="ruby-identifier">duration</span>, <span class="ruby-identifier">priority</span>, <span class="ruby-identifier">application</span>, <span class="ruby-identifier">notifiers</span>=[], <span class="ruby-identifier">method_received</span>=<span class="ruby-identifier">:built_in</span>)
27
+ <span class="ruby-ivar">@title</span>, <span class="ruby-ivar">@message</span>, <span class="ruby-ivar">@duration</span>, <span class="ruby-ivar">@priority</span>, <span class="ruby-ivar">@application</span>, <span class="ruby-ivar">@method_received</span> = <span class="ruby-identifier">title</span>, <span class="ruby-identifier">message</span>, <span class="ruby-identifier">duration</span>.<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">priority</span>.<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">application</span>, <span class="ruby-identifier">method_received</span>
28
+ <span class="ruby-ivar">@requested_notifiers</span> = <span class="ruby-identifier">notifiers</span>
29
+ <span class="ruby-identifier">time</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>
30
+ <span class="ruby-keyword kw">end</span></pre>
31
+ </body>
32
+ </html>
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html>
6
+ <head><title>simple (Tweet::Note)</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
8
+ <style>
9
+ .ruby-comment { color: green; font-style: italic }
10
+ .ruby-constant { color: #4433aa; font-weight: bold; }
11
+ .ruby-identifier { color: #222222; }
12
+ .ruby-ivar { color: #2233dd; }
13
+ .ruby-keyword { color: #3333FF; font-weight: bold }
14
+ .ruby-node { color: #777777; }
15
+ .ruby-operator { color: #111111; }
16
+ .ruby-regexp { color: #662222; }
17
+ .ruby-value { color: #662222; font-style: italic }
18
+ .kw { color: #3333FF; font-weight: bold }
19
+ .cmt { color: green; font-style: italic }
20
+ .str { color: #662222; font-style: italic }
21
+ .re { color: #662222; }
22
+ </style>
23
+ </head>
24
+ <body bgcolor="white">
25
+ <pre><span class="ruby-comment cmt"># File lib/tweet.rb, line 177</span>
26
+ <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Note</span>.<span class="ruby-identifier">simple</span>(<span class="ruby-identifier">message</span>)
27
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">info</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">message</span>, <span class="ruby-value">0</span>, <span class="ruby-identifier">$0</span>)
28
+ <span class="ruby-keyword kw">end</span></pre>
29
+ </body>
30
+ </html>
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html>
6
+ <head><title>info (Tweet::Note)</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
8
+ <style>
9
+ .ruby-comment { color: green; font-style: italic }
10
+ .ruby-constant { color: #4433aa; font-weight: bold; }
11
+ .ruby-identifier { color: #222222; }
12
+ .ruby-ivar { color: #2233dd; }
13
+ .ruby-keyword { color: #3333FF; font-weight: bold }
14
+ .ruby-node { color: #777777; }
15
+ .ruby-operator { color: #111111; }
16
+ .ruby-regexp { color: #662222; }
17
+ .ruby-value { color: #662222; font-style: italic }
18
+ .kw { color: #3333FF; font-weight: bold }
19
+ .cmt { color: green; font-style: italic }
20
+ .str { color: #662222; font-style: italic }
21
+ .re { color: #662222; }
22
+ </style>
23
+ </head>
24
+ <body bgcolor="white">
25
+ <pre><span class="ruby-comment cmt"># File lib/tweet.rb, line 182</span>
26
+ <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Note</span>.<span class="ruby-identifier">info</span>(<span class="ruby-identifier">title</span>, <span class="ruby-identifier">message</span>, <span class="ruby-identifier">duration</span>, <span class="ruby-identifier">application</span>, <span class="ruby-identifier">method_received</span>=<span class="ruby-identifier">:built_in</span>)
27
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">title</span>, <span class="ruby-identifier">message</span>, <span class="ruby-identifier">duration</span>, <span class="ruby-constant">PRI</span>[<span class="ruby-value str">'INFO'</span>], <span class="ruby-identifier">application</span>, [], <span class="ruby-identifier">method_received</span>)
28
+ <span class="ruby-keyword kw">end</span></pre>
29
+ </body>
30
+ </html>
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html>
6
+ <head><title>warning (Tweet::Note)</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
8
+ <style>
9
+ .ruby-comment { color: green; font-style: italic }
10
+ .ruby-constant { color: #4433aa; font-weight: bold; }
11
+ .ruby-identifier { color: #222222; }
12
+ .ruby-ivar { color: #2233dd; }
13
+ .ruby-keyword { color: #3333FF; font-weight: bold }
14
+ .ruby-node { color: #777777; }
15
+ .ruby-operator { color: #111111; }
16
+ .ruby-regexp { color: #662222; }
17
+ .ruby-value { color: #662222; font-style: italic }
18
+ .kw { color: #3333FF; font-weight: bold }
19
+ .cmt { color: green; font-style: italic }
20
+ .str { color: #662222; font-style: italic }
21
+ .re { color: #662222; }
22
+ </style>
23
+ </head>
24
+ <body bgcolor="white">
25
+ <pre><span class="ruby-comment cmt"># File lib/tweet.rb, line 187</span>
26
+ <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Note</span>.<span class="ruby-identifier">warning</span>(<span class="ruby-identifier">title</span>, <span class="ruby-identifier">message</span>, <span class="ruby-identifier">duration</span>, <span class="ruby-identifier">application</span>, <span class="ruby-identifier">method_received</span>=<span class="ruby-identifier">:built_in</span>)
27
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">title</span>, <span class="ruby-identifier">message</span>, <span class="ruby-identifier">duration</span>, <span class="ruby-constant">PRI</span>[<span class="ruby-value str">'WARNING'</span>], <span class="ruby-identifier">application</span>, [], <span class="ruby-identifier">method_received</span>)
28
+ <span class="ruby-keyword kw">end</span></pre>
29
+ </body>
30
+ </html>
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html>
6
+ <head><title>low (Tweet::Note)</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
8
+ <style>
9
+ .ruby-comment { color: green; font-style: italic }
10
+ .ruby-constant { color: #4433aa; font-weight: bold; }
11
+ .ruby-identifier { color: #222222; }
12
+ .ruby-ivar { color: #2233dd; }
13
+ .ruby-keyword { color: #3333FF; font-weight: bold }
14
+ .ruby-node { color: #777777; }
15
+ .ruby-operator { color: #111111; }
16
+ .ruby-regexp { color: #662222; }
17
+ .ruby-value { color: #662222; font-style: italic }
18
+ .kw { color: #3333FF; font-weight: bold }
19
+ .cmt { color: green; font-style: italic }
20
+ .str { color: #662222; font-style: italic }
21
+ .re { color: #662222; }
22
+ </style>
23
+ </head>
24
+ <body bgcolor="white">
25
+ <pre><span class="ruby-comment cmt"># File lib/tweet.rb, line 192</span>
26
+ <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Note</span>.<span class="ruby-identifier">low</span>(<span class="ruby-identifier">title</span>, <span class="ruby-identifier">message</span>, <span class="ruby-identifier">duration</span>, <span class="ruby-identifier">application</span>, <span class="ruby-identifier">method_received</span>=<span class="ruby-identifier">:built_in</span>)
27
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">title</span>, <span class="ruby-identifier">message</span>, <span class="ruby-identifier">duration</span>, <span class="ruby-constant">PRI</span>[<span class="ruby-value str">'LOW'</span>], <span class="ruby-identifier">application</span>, [], <span class="ruby-identifier">method_received</span>)
28
+ <span class="ruby-keyword kw">end</span></pre>
29
+ </body>
30
+ </html>
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html>
6
+ <head><title>critical (Tweet::Note)</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
8
+ <style>
9
+ .ruby-comment { color: green; font-style: italic }
10
+ .ruby-constant { color: #4433aa; font-weight: bold; }
11
+ .ruby-identifier { color: #222222; }
12
+ .ruby-ivar { color: #2233dd; }
13
+ .ruby-keyword { color: #3333FF; font-weight: bold }
14
+ .ruby-node { color: #777777; }
15
+ .ruby-operator { color: #111111; }
16
+ .ruby-regexp { color: #662222; }
17
+ .ruby-value { color: #662222; font-style: italic }
18
+ .kw { color: #3333FF; font-weight: bold }
19
+ .cmt { color: green; font-style: italic }
20
+ .str { color: #662222; font-style: italic }
21
+ .re { color: #662222; }
22
+ </style>
23
+ </head>
24
+ <body bgcolor="white">
25
+ <pre><span class="ruby-comment cmt"># File lib/tweet.rb, line 197</span>
26
+ <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Note</span>.<span class="ruby-identifier">critical</span>(<span class="ruby-identifier">title</span>, <span class="ruby-identifier">message</span>, <span class="ruby-identifier">duration</span>, <span class="ruby-identifier">application</span>, <span class="ruby-identifier">method_received</span>=<span class="ruby-identifier">:built_in</span>)
27
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">title</span>, <span class="ruby-identifier">message</span>, <span class="ruby-identifier">duration</span>, <span class="ruby-constant">PRI</span>[<span class="ruby-value str">'CRITICAL'</span>], <span class="ruby-identifier">application</span>, [], <span class="ruby-identifier">method_received</span>)
28
+ <span class="ruby-keyword kw">end</span></pre>
29
+ </body>
30
+ </html>
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html>
6
+ <head><title>debug (Tweet::Note)</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
8
+ <style>
9
+ .ruby-comment { color: green; font-style: italic }
10
+ .ruby-constant { color: #4433aa; font-weight: bold; }
11
+ .ruby-identifier { color: #222222; }
12
+ .ruby-ivar { color: #2233dd; }
13
+ .ruby-keyword { color: #3333FF; font-weight: bold }
14
+ .ruby-node { color: #777777; }
15
+ .ruby-operator { color: #111111; }
16
+ .ruby-regexp { color: #662222; }
17
+ .ruby-value { color: #662222; font-style: italic }
18
+ .kw { color: #3333FF; font-weight: bold }
19
+ .cmt { color: green; font-style: italic }
20
+ .str { color: #662222; font-style: italic }
21
+ .re { color: #662222; }
22
+ </style>
23
+ </head>
24
+ <body bgcolor="white">
25
+ <pre><span class="ruby-comment cmt"># File lib/tweet.rb, line 202</span>
26
+ <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Note</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-identifier">title</span>, <span class="ruby-identifier">message</span>, <span class="ruby-identifier">duration</span>, <span class="ruby-identifier">application</span>, <span class="ruby-identifier">method_received</span>=<span class="ruby-identifier">:built_in</span>)
27
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">title</span>, <span class="ruby-identifier">message</span>, <span class="ruby-identifier">duration</span>, <span class="ruby-constant">PRI</span>[<span class="ruby-value str">'DEBUG'</span>], <span class="ruby-identifier">application</span>, [], <span class="ruby-identifier">method_received</span>)
28
+ <span class="ruby-keyword kw">end</span></pre>
29
+ </body>
30
+ </html>