tweet 0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/ttime +36 -0
- data/bin/tweet +30 -0
- data/bin/tweetd +126 -0
- data/doc/classes/SimplePop.html +125 -0
- data/doc/classes/SimplePop.src/M000009.html +59 -0
- data/doc/classes/SimplePop.src/M000010.html +43 -0
- data/doc/classes/SimplePopWindow.html +126 -0
- data/doc/classes/SimplePopWindow.src/M000005.html +77 -0
- data/doc/classes/SimplePopWindow.src/M000006.html +36 -0
- data/doc/classes/SyslogNotifier.html +113 -0
- data/doc/classes/SyslogNotifier.src/M000003.html +34 -0
- data/doc/classes/SyslogNotifier.src/M000004.html +39 -0
- data/doc/classes/Tweet/Monitor.html +236 -0
- data/doc/classes/Tweet/Monitor.src/M000028.html +53 -0
- data/doc/classes/Tweet/Monitor.src/M000029.html +38 -0
- data/doc/classes/Tweet/Monitor.src/M000030.html +40 -0
- data/doc/classes/Tweet/Monitor.src/M000031.html +31 -0
- data/doc/classes/Tweet/Monitor.src/M000032.html +32 -0
- data/doc/classes/Tweet/Monitor.src/M000033.html +65 -0
- data/doc/classes/Tweet/Monitor.src/M000034.html +38 -0
- data/doc/classes/Tweet/Note.html +272 -0
- data/doc/classes/Tweet/Note.src/M000020.html +32 -0
- data/doc/classes/Tweet/Note.src/M000021.html +30 -0
- data/doc/classes/Tweet/Note.src/M000022.html +30 -0
- data/doc/classes/Tweet/Note.src/M000023.html +30 -0
- data/doc/classes/Tweet/Note.src/M000024.html +30 -0
- data/doc/classes/Tweet/Note.src/M000025.html +30 -0
- data/doc/classes/Tweet/Note.src/M000026.html +30 -0
- data/doc/classes/Tweet/Note.src/M000027.html +30 -0
- data/doc/classes/Tweet/Notifier.html +147 -0
- data/doc/classes/Tweet/Notifier.src/M000018.html +34 -0
- data/doc/classes/Tweet/Notifier.src/M000019.html +30 -0
- data/doc/classes/Tweet.html +336 -0
- data/doc/classes/Tweet.src/M000011.html +42 -0
- data/doc/classes/Tweet.src/M000012.html +30 -0
- data/doc/classes/Tweet.src/M000013.html +30 -0
- data/doc/classes/Tweet.src/M000014.html +30 -0
- data/doc/classes/Tweet.src/M000015.html +30 -0
- data/doc/classes/Tweet.src/M000016.html +30 -0
- data/doc/classes/Tweet.src/M000017.html +30 -0
- data/doc/classes/XOSDNotifier.html +113 -0
- data/doc/classes/XOSDNotifier.src/M000007.html +36 -0
- data/doc/classes/XOSDNotifier.src/M000008.html +38 -0
- data/doc/created.rid +1 -0
- data/doc/files/README.html +228 -0
- data/doc/files/bin/ttime.html +112 -0
- data/doc/files/bin/tweet.html +111 -0
- data/doc/files/bin/tweetd.html +163 -0
- data/doc/files/bin/tweetd.src/M000001.html +51 -0
- data/doc/files/bin/tweetd.src/M000002.html +30 -0
- data/doc/files/lib/tweet_rb.html +178 -0
- data/doc/files/plugins/simplepop_rb.html +97 -0
- data/doc/files/plugins/syslog_rb.html +101 -0
- data/doc/files/plugins/xosd_rb.html +96 -0
- data/doc/fr_class_index.html +53 -0
- data/doc/fr_file_index.html +53 -0
- data/doc/fr_method_index.html +79 -0
- data/doc/index.html +26 -0
- data/doc/rdoc-style.css +175 -0
- data/images/comments.png +0 -0
- data/lib/tweet.rb +437 -0
- data/plugins/simplepop.rb +128 -0
- data/plugins/syslog.rb +24 -0
- data/plugins/xosd.rb +23 -0
- metadata +142 -0
@@ -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>message_with_notifiers (Tweet)</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 128</span>
|
26
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">message_with_notifiers</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">notifiers</span>=[], <span class="ruby-identifier">duration</span>=<span class="ruby-value">0</span>)
|
27
|
+
<span class="ruby-identifier">notify</span>(<span class="ruby-constant">Note</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">message</span>, <span class="ruby-identifier">duration</span>, <span class="ruby-constant">Tweet</span><span class="ruby-operator">::</span><span class="ruby-constant">PRI</span>[<span class="ruby-value str">'INFO'</span>], <span class="ruby-identifier">$0</span>, <span class="ruby-identifier">notifiers</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>where_am_i? (Tweet)</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 133</span>
|
26
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">where_am_i?</span>
|
27
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-keyword kw">__FILE__</span>)<span class="ruby-operator">+</span><span class="ruby-value str">'/..'</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>running? (Tweet)</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 139</span>
|
26
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">running?</span>
|
27
|
+
<span class="ruby-constant">Pidify</span>.<span class="ruby-identifier">running?</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>stop (Tweet)</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 144</span>
|
26
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stop</span>
|
27
|
+
<span class="ruby-constant">Pidify</span>.<span class="ruby-identifier">stop</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>start (Tweet)</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 148</span>
|
26
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start</span>
|
27
|
+
<span class="ruby-constant">Pidify</span>.<span class="ruby-identifier">start</span>
|
28
|
+
<span class="ruby-keyword kw">end</span></pre>
|
29
|
+
</body>
|
30
|
+
</html>
|
@@ -0,0 +1,113 @@
|
|
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: XOSDNotifier</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 />XOSDNotifier</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/plugins/xosd_rb.html">plugins/xosd.rb</a>
|
61
|
+
</td>
|
62
|
+
</tr>
|
63
|
+
<tr>
|
64
|
+
<td>Parent:</td>
|
65
|
+
<td>
|
66
|
+
<a href="Tweet/Notifier.html">
|
67
|
+
Tweet::Notifier
|
68
|
+
</a>
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</td>
|
73
|
+
</tr>
|
74
|
+
</table>
|
75
|
+
<!-- banner header -->
|
76
|
+
|
77
|
+
<div id="bodyContent">
|
78
|
+
<div id="content">
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
<div class="sectiontitle">Methods</div>
|
84
|
+
<ul>
|
85
|
+
<li><a href="#M000007">new</a></li>
|
86
|
+
<li><a href="#M000008">show</a></li>
|
87
|
+
</ul>
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
<div class="sectiontitle">Public Class methods</div>
|
95
|
+
<div class="method">
|
96
|
+
<div class="title">
|
97
|
+
<a name="M000007"></a><b>new</b>()
|
98
|
+
[ <a href="javascript:openCode('XOSDNotifier.src/M000007.html')">source</a> ]
|
99
|
+
</div>
|
100
|
+
</div>
|
101
|
+
<div class="sectiontitle">Public Instance methods</div>
|
102
|
+
<div class="method">
|
103
|
+
<div class="title">
|
104
|
+
<a name="M000008"></a><b>show</b>(note)
|
105
|
+
[ <a href="javascript:openCode('XOSDNotifier.src/M000008.html')">source</a> ]
|
106
|
+
</div>
|
107
|
+
</div>
|
108
|
+
</div>
|
109
|
+
|
110
|
+
</div>
|
111
|
+
|
112
|
+
</body>
|
113
|
+
</html>
|
@@ -0,0 +1,36 @@
|
|
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 (XOSDNotifier)</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 plugins/xosd.rb, line 2</span>
|
26
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
27
|
+
<span class="ruby-identifier">require</span> <span class="ruby-value str">'xosd'</span>
|
28
|
+
<span class="ruby-ivar">@display_secs</span> = <span class="ruby-value">1</span>
|
29
|
+
<span class="ruby-keyword kw">begin</span>
|
30
|
+
<span class="ruby-ivar">@log</span> = <span class="ruby-constant">Syslog</span>.<span class="ruby-identifier">open</span>(<span class="ruby-value str">"tweetd"</span>);
|
31
|
+
<span class="ruby-keyword kw">rescue</span>
|
32
|
+
<span class="ruby-ivar">@log</span> = <span class="ruby-constant">Syslog</span>
|
33
|
+
<span class="ruby-keyword kw">end</span>
|
34
|
+
<span class="ruby-keyword kw">end</span></pre>
|
35
|
+
</body>
|
36
|
+
</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>show (XOSDNotifier)</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 plugins/xosd.rb, line 12</span>
|
26
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">show</span>(<span class="ruby-identifier">note</span>)
|
27
|
+
<span class="ruby-identifier">osd</span> = <span class="ruby-constant">XOSD</span><span class="ruby-operator">::</span><span class="ruby-constant">Xosd</span>.<span class="ruby-identifier">new</span> <span class="ruby-value">3</span>
|
28
|
+
<span class="ruby-identifier">osd</span>.<span class="ruby-identifier">position</span> = <span class="ruby-constant">XOSD</span><span class="ruby-operator">::</span><span class="ruby-constant">MIDDLE</span>
|
29
|
+
<span class="ruby-identifier">osd</span>.<span class="ruby-identifier">align</span> = <span class="ruby-constant">XOSD</span><span class="ruby-operator">::</span><span class="ruby-constant">CENTER</span>
|
30
|
+
<span class="ruby-identifier">osd</span>.<span class="ruby-identifier">color</span> = <span class="ruby-value str">"#00f0f0"</span>
|
31
|
+
<span class="ruby-identifier">osd</span>.<span class="ruby-identifier">outline_offset</span> = <span class="ruby-value">2</span>
|
32
|
+
<span class="ruby-identifier">osd</span>.<span class="ruby-identifier">shadow_offset</span> = <span class="ruby-value">6</span>
|
33
|
+
<span class="ruby-identifier">osd</span>.<span class="ruby-identifier">font</span> = <span class="ruby-value str">"-adobe-helvetica-*-r-*-*-34"</span>
|
34
|
+
<span class="ruby-identifier">osd</span>.<span class="ruby-identifier">display_message</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">note</span>.<span class="ruby-identifier">to_s</span>)
|
35
|
+
<span class="ruby-identifier">osd</span>.<span class="ruby-identifier">wait</span> <span class="ruby-ivar">@display_secs</span>.<span class="ruby-identifier">to_i</span>
|
36
|
+
<span class="ruby-keyword kw">end</span></pre>
|
37
|
+
</body>
|
38
|
+
</html>
|
data/doc/created.rid
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Fri Oct 13 15:04:06 EDT 2006
|
@@ -0,0 +1,228 @@
|
|
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>File: README</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 border='0' cellpadding='0' cellspacing='0' width="100%" class='banner'>
|
54
|
+
<tr><td>
|
55
|
+
<table width="100%" border='0' cellpadding='0' cellspacing='0'><tr>
|
56
|
+
<td class="file-title" colspan="2"><span class="file-title-prefix">File</span><br />README</td>
|
57
|
+
<td align="right">
|
58
|
+
<table border='0' cellspacing="0" cellpadding="2">
|
59
|
+
<tr>
|
60
|
+
<td>Path:</td>
|
61
|
+
<td>README
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
<tr>
|
65
|
+
<td>Modified:</td>
|
66
|
+
<td>Fri Oct 13 15:02:59 EDT 2006</td>
|
67
|
+
</tr>
|
68
|
+
</table>
|
69
|
+
</td></tr>
|
70
|
+
</table>
|
71
|
+
</td></tr>
|
72
|
+
</table><br>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
<div id="content">
|
77
|
+
|
78
|
+
<div class="description"><h1><a href="../classes/Tweet.html">Tweet</a></h1>
|
79
|
+
<h2>Synopsis</h2>
|
80
|
+
<p>
|
81
|
+
A generalized notification daemon. Can be petitioned by an arbitrary
|
82
|
+
application to activate a notification. Notifications can be customized by
|
83
|
+
the user via a plugin architecture. Examples include a GTK2 popup dialog, a
|
84
|
+
syslog entry, or an email alert.
|
85
|
+
</p>
|
86
|
+
<p>
|
87
|
+
Can also be required in a ruby script to access a running <a
|
88
|
+
href="../classes/Tweet.html">Tweet</a> daemon (see <a
|
89
|
+
href="../classes/Tweet.html#M000011">Tweet.notify</a>, <a
|
90
|
+
href="../classes/Tweet.html#M000012">Tweet.message</a>, Tweet.running?, <a
|
91
|
+
href="../classes/Tweet.html#M000016">Tweet.stop</a>).
|
92
|
+
</p>
|
93
|
+
<p>
|
94
|
+
The website is here: <a
|
95
|
+
href="http://tweet.rubyforge.org">tweet.rubyforge.org</a>/
|
96
|
+
</p>
|
97
|
+
<h2>Installation</h2>
|
98
|
+
<ul>
|
99
|
+
<li>Install rubygems and rake. This varies by OS.
|
100
|
+
|
101
|
+
</li>
|
102
|
+
<li>Become root (if necessary to have correct write permissions).
|
103
|
+
|
104
|
+
</li>
|
105
|
+
<li>Install dependencies (eg: gem install daemons pidify)
|
106
|
+
|
107
|
+
</li>
|
108
|
+
<li>Install tweet (eg: gem install tweet)
|
109
|
+
|
110
|
+
</li>
|
111
|
+
<li>For the <a href="../classes/SimplePop.html">SimplePop</a> plugin to
|
112
|
+
function, install ruby-gtk2.
|
113
|
+
|
114
|
+
</li>
|
115
|
+
</ul>
|
116
|
+
<h2>Usage</h2>
|
117
|
+
<p>
|
118
|
+
To start the daemon:
|
119
|
+
</p>
|
120
|
+
<pre>
|
121
|
+
tweetd [options]
|
122
|
+
</pre>
|
123
|
+
<p>
|
124
|
+
To contact the daemon from the shell:
|
125
|
+
</p>
|
126
|
+
<pre>
|
127
|
+
tweet "hello world"
|
128
|
+
</pre>
|
129
|
+
<p>
|
130
|
+
To contact the daemon from ruby:
|
131
|
+
</p>
|
132
|
+
<pre>
|
133
|
+
require 'tweet'
|
134
|
+
Tweet.message("hello world")
|
135
|
+
</pre>
|
136
|
+
<h2>Requirements</h2>
|
137
|
+
<ul>
|
138
|
+
<li>Ruby 1.8
|
139
|
+
|
140
|
+
</li>
|
141
|
+
<li>Rubygems
|
142
|
+
|
143
|
+
</li>
|
144
|
+
<li>Rake
|
145
|
+
|
146
|
+
</li>
|
147
|
+
<li>daemons library
|
148
|
+
|
149
|
+
</li>
|
150
|
+
<li>pidify library
|
151
|
+
|
152
|
+
</li>
|
153
|
+
<li>Certain plugins require other dependencies, such as:
|
154
|
+
|
155
|
+
</li>
|
156
|
+
<li>ruby-gtk2
|
157
|
+
|
158
|
+
</li>
|
159
|
+
</ul>
|
160
|
+
<h2>Author</h2>
|
161
|
+
<p>
|
162
|
+
Payton Swick, 2006
|
163
|
+
</p>
|
164
|
+
<p>
|
165
|
+
Image from Stock GTK and the Silk collection (<a
|
166
|
+
href="http://www.famfamfam.com/lab/icons/silk">www.famfamfam.com/lab/icons/silk</a>/).
|
167
|
+
</p>
|
168
|
+
<h2>License Creative Commons Attribution license.</h2>
|
169
|
+
<p>
|
170
|
+
<a
|
171
|
+
href="http://creativecommons.org/licenses/by/2.5">creativecommons.org/licenses/by/2.5</a>/
|
172
|
+
</p>
|
173
|
+
<h2>Troubleshooting</h2>
|
174
|
+
<ul>
|
175
|
+
<li>If you get an error like this: /usr/local/bin/tweetd:346:in
|
176
|
+
`initialize’: Permission denied - /var/run/tweet.pid (Errno::EACCES)
|
177
|
+
|
178
|
+
</li>
|
179
|
+
</ul>
|
180
|
+
<p>
|
181
|
+
Run the following (under gentoo, anyway):
|
182
|
+
</p>
|
183
|
+
<pre>
|
184
|
+
su
|
185
|
+
chgrp wheel /var/run
|
186
|
+
chmod 775 /var/run/
|
187
|
+
</pre>
|
188
|
+
<p>
|
189
|
+
And then try again.
|
190
|
+
</p>
|
191
|
+
<ul>
|
192
|
+
<li>If tweetd runs without a problem but certain plugins don’t work, make
|
193
|
+
sure
|
194
|
+
|
195
|
+
</li>
|
196
|
+
</ul>
|
197
|
+
<p>
|
198
|
+
the user which you used to run tweetd has access to the device it is
|
199
|
+
supposed to be using for reporting. In other words, if you have trouble
|
200
|
+
with the gtk2 plugin "<a
|
201
|
+
href="../classes/SimplePop.html">SimplePop</a>", make sure you
|
202
|
+
didn’t run it as root and make sure xwindows is running.
|
203
|
+
</p>
|
204
|
+
<ul>
|
205
|
+
<li>If tweetd fails silently as a daemon, run it as a non-daemon to see if
|
206
|
+
there
|
207
|
+
|
208
|
+
</li>
|
209
|
+
</ul>
|
210
|
+
<p>
|
211
|
+
is an error message.
|
212
|
+
</p>
|
213
|
+
</div>
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
</div>
|
224
|
+
|
225
|
+
</div>
|
226
|
+
|
227
|
+
</body>
|
228
|
+
</html>
|