slave 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +390 -0
- data/doc/classes/Slave.html +765 -790
- data/doc/classes/Slave/LifeLine.html +262 -249
- data/doc/classes/Slave/ThreadSafe.html +184 -176
- data/doc/classes/Slave/ThreadSafeHash.html +85 -78
- data/doc/created.rid +1 -1
- data/doc/dot/f_0.dot +1 -1
- data/doc/dot/f_0.jpg +0 -0
- data/doc/dot/f_1.dot +1 -10
- data/doc/dot/f_1.jpg +0 -0
- data/doc/files/README.html +87 -70
- data/doc/files/lib/slave_rb.html +77 -83
- data/doc/fr_class_index.html +12 -13
- data/doc/fr_file_index.html +10 -10
- data/doc/fr_method_index.html +38 -39
- data/doc/index.html +3 -3
- data/doc/rdoc-style.css +79 -43
- data/install.rb +0 -0
- data/lib/slave.rb +1 -1
- data/rdoc.cmd +0 -0
- metadata +76 -64
- data/slave-1.2.1.gem +0 -0
data/doc/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Fri, 27 Apr 2007 16:38:57 -0600
|
data/doc/dot/f_0.dot
CHANGED
data/doc/dot/f_0.jpg
CHANGED
Binary file
|
data/doc/dot/f_1.dot
CHANGED
@@ -3,7 +3,7 @@ digraph TopLevel {
|
|
3
3
|
bgcolor = lightcyan1
|
4
4
|
fontname = Arial
|
5
5
|
fontsize = 8
|
6
|
-
label = "
|
6
|
+
label = "TopLevel"
|
7
7
|
node [
|
8
8
|
fontname = Arial,
|
9
9
|
fontsize = 8,
|
@@ -14,15 +14,6 @@ digraph TopLevel {
|
|
14
14
|
fontname = Arial
|
15
15
|
color = red
|
16
16
|
label = "lib/slave.rb"
|
17
|
-
o [
|
18
|
-
fontcolor = black,
|
19
|
-
URL = "classes/o.html",
|
20
|
-
shape = ellipse,
|
21
|
-
color = palegoldenrod,
|
22
|
-
style = filled,
|
23
|
-
label = "o"
|
24
|
-
]
|
25
|
-
|
26
17
|
Slave [
|
27
18
|
fontcolor = black,
|
28
19
|
URL = "classes/Slave.html",
|
data/doc/dot/f_1.jpg
CHANGED
Binary file
|
data/doc/files/README.html
CHANGED
@@ -1,79 +1,80 @@
|
|
1
1
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
2
|
<!DOCTYPE html
|
3
3
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"DTD/xhtml1-transitional.dtd">
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
5
|
|
6
6
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
7
|
<head>
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
8
|
+
<title>File: README</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
43
|
|
44
44
|
</head>
|
45
45
|
<body>
|
46
46
|
|
47
47
|
|
48
48
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
49
|
+
<div id="fileHeader">
|
50
|
+
<h1>README</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>README
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Fri, Apr 27 2007 16:38:30 -0600</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
63
|
<!-- banner header -->
|
64
64
|
|
65
|
-
|
65
|
+
<div id="bodyContent">
|
66
66
|
|
67
67
|
|
68
|
-
|
69
|
-
|
70
|
-
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
<div id="diagram">
|
71
|
+
<map id="map" name="map">
|
71
72
|
</map>
|
72
|
-
<img src="../dot/f_0.jpg" usemap="#map" border=0 alt="
|
73
|
-
|
73
|
+
<img src="../dot/f_0.jpg" usemap="#map" border="0" alt="dot/f_0.jpg">
|
74
|
+
</div>
|
74
75
|
|
75
|
-
|
76
|
-
|
76
|
+
<div id="description">
|
77
|
+
<p>
|
77
78
|
SYNOPSIS
|
78
79
|
</p>
|
79
80
|
<pre>
|
@@ -120,6 +121,14 @@ URIS
|
|
120
121
|
HISTORY
|
121
122
|
</p>
|
122
123
|
<pre>
|
124
|
+
1.2.1:
|
125
|
+
- jruby/ThreadSafe patches from skaar and ez. using slave.rb with jruby,
|
126
|
+
how is that!?
|
127
|
+
|
128
|
+
1.2.0:
|
129
|
+
- cleaned up a bunch of warnings. thanks eric kolve <ekolve@gmail.com>
|
130
|
+
for reporting them.
|
131
|
+
|
123
132
|
1.1.0:
|
124
133
|
- replaced HeartBeat class with LifeLine.
|
125
134
|
|
@@ -235,7 +244,9 @@ SAMPLES
|
|
235
244
|
~ > ruby samples/b.rb
|
236
245
|
|
237
246
|
:postgresql
|
238
|
-
|
247
|
+
samples/b.rb:22: undefined method `typo' for #<Server:0xb756ed18> (NoMethodError)
|
248
|
+
from ./lib/slave.rb:369:in `[]'
|
249
|
+
from ./lib/slave.rb:369:in `initialize'
|
239
250
|
from samples/b.rb:22:in `new'
|
240
251
|
from samples/b.rb:22
|
241
252
|
|
@@ -267,9 +278,11 @@ SAMPLES
|
|
267
278
|
|
268
279
|
~ > ruby samples/c.rb
|
269
280
|
|
270
|
-
|
271
|
-
|
272
|
-
|
281
|
+
7971
|
282
|
+
7972
|
283
|
+
samples/c.rb:21: undefined local variable or method `fubar' for main:Object (NameError)
|
284
|
+
from ./lib/slave.rb:361:in `call'
|
285
|
+
from ./lib/slave.rb:361:in `initialize'
|
273
286
|
from samples/c.rb:21:in `new'
|
274
287
|
from samples/c.rb:21
|
275
288
|
|
@@ -360,30 +373,34 @@ SAMPLES
|
|
360
373
|
|
361
374
|
~ > ruby samples/g.rb
|
362
375
|
|
363
|
-
{"that"=>
|
364
|
-
{"that"=>[
|
376
|
+
{"that"=>7990, "this"=>7989}
|
377
|
+
{"that"=>[7991, Fri, Apr 27 2007 16:38:30 -0600], "this"=>[7989, Fri, Apr 27 2007 16:38:28 -0600]}
|
365
378
|
</pre>
|
366
379
|
|
367
|
-
|
380
|
+
</div>
|
381
|
+
|
382
|
+
|
383
|
+
</div>
|
368
384
|
|
369
385
|
|
386
|
+
</div>
|
370
387
|
|
371
388
|
|
389
|
+
<!-- if includes -->
|
372
390
|
|
391
|
+
<div id="section">
|
373
392
|
|
374
|
-
|
375
393
|
|
376
|
-
</div>
|
377
394
|
|
378
395
|
|
379
396
|
|
380
|
-
|
397
|
+
|
381
398
|
|
382
399
|
|
383
|
-
|
400
|
+
<!-- if method_list -->
|
384
401
|
|
385
402
|
|
386
|
-
|
403
|
+
</div>
|
387
404
|
|
388
405
|
|
389
406
|
<div id="validator-badges">
|
data/doc/files/lib/slave_rb.html
CHANGED
@@ -1,121 +1,115 @@
|
|
1
1
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
2
|
<!DOCTYPE html
|
3
3
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"DTD/xhtml1-transitional.dtd">
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
5
|
|
6
6
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
7
|
<head>
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
8
|
+
<title>File: slave.rb</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
43
|
|
44
44
|
</head>
|
45
45
|
<body>
|
46
46
|
|
47
47
|
|
48
48
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
49
|
+
<div id="fileHeader">
|
50
|
+
<h1>slave.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>lib/slave.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Fri, Apr 27 2007 16:37:26 -0600</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
63
|
<!-- banner header -->
|
64
64
|
|
65
|
-
|
65
|
+
<div id="bodyContent">
|
66
66
|
|
67
67
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
<area shape="
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
<div id="diagram">
|
71
|
+
<map id="map" name="map">
|
72
|
+
<area shape="rect" coords="27,50,99,98" href="../../classes/Slave.html" alt="Slave" />
|
73
73
|
</map>
|
74
|
-
<img src="../../dot/f_1.jpg" usemap="#map" border=0 alt="
|
75
|
-
|
74
|
+
<img src="../../dot/f_1.jpg" usemap="#map" border="0" alt="dot/f_1.jpg">
|
75
|
+
</div>
|
76
76
|
|
77
77
|
|
78
|
-
|
79
|
-
|
78
|
+
<div id="requires-list">
|
79
|
+
<h3 class="section-bar">Required files</h3>
|
80
80
|
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
81
|
+
<div class="name-list">
|
82
|
+
drb/drb
|
83
|
+
fileutils
|
84
|
+
tmpdir
|
85
|
+
tempfile
|
86
|
+
fcntl
|
87
|
+
socket
|
88
|
+
sync
|
89
|
+
</div>
|
90
|
+
</div>
|
91
91
|
|
92
|
+
</div>
|
92
93
|
|
93
94
|
|
95
|
+
</div>
|
94
96
|
|
95
97
|
|
96
|
-
|
97
|
-
<div id="class-list">
|
98
|
-
<h2 class="section-bar">Classes and Modules</h2>
|
98
|
+
<!-- if includes -->
|
99
99
|
|
100
|
-
|
101
|
-
::Class <a href="../../classes/Slave/LifeLine.html" class="link">Slave::LifeLine</a><br />
|
102
|
-
::Class <a href="../../classes/Slave/ThreadSafe.html" class="link">Slave::ThreadSafe</a><br />
|
103
|
-
::Class <a href="../../classes/Slave/ThreadSafeHash.html" class="link">Slave::ThreadSafeHash</a><br />
|
104
|
-
Class <a href="../../classes/o.html" class="link">o</a><br />
|
100
|
+
<div id="section">
|
105
101
|
|
106
|
-
</div>
|
107
102
|
|
108
|
-
</div>
|
109
103
|
|
110
104
|
|
111
105
|
|
112
|
-
|
106
|
+
|
113
107
|
|
114
108
|
|
115
|
-
|
109
|
+
<!-- if method_list -->
|
116
110
|
|
117
111
|
|
118
|
-
|
112
|
+
</div>
|
119
113
|
|
120
114
|
|
121
115
|
<div id="validator-badges">
|