mongrel 0.3.13.2 → 0.3.13.3
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +39 -488
- data/LICENSE +39 -488
- data/Rakefile +1 -1
- data/bin/mongrel_rails +8 -0
- data/doc/rdoc/classes/IO.src/M000001.html +5 -5
- data/doc/rdoc/classes/IO.src/M000002.html +5 -5
- data/doc/rdoc/classes/Kernel.src/M000020.html +5 -5
- data/doc/rdoc/classes/Kernel.src/M000021.html +9 -9
- data/doc/rdoc/classes/Mongrel.html +4 -22
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000101.html +10 -10
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000102.html +33 -33
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000103.html +20 -20
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000104.html +13 -13
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000105.html +11 -11
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000106.html +4 -4
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000107.html +4 -4
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000108.html +4 -4
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000109.html +5 -5
- data/doc/rdoc/classes/Mongrel/Camping.src/M000048.html +8 -8
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000049.html +4 -4
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000050.html +36 -36
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000026.html +10 -10
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000027.html +28 -28
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000028.html +4 -4
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000029.html +4 -4
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000030.html +4 -4
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000031.html +4 -4
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000032.html +8 -8
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000033.html +4 -4
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000034.html +4 -4
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000035.html +4 -4
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000036.html +10 -10
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000037.html +10 -10
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000038.html +4 -4
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000039.html +6 -6
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000040.html +11 -11
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000041.html +33 -33
- data/doc/rdoc/classes/Mongrel/Configurator.html +2 -2
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000110.html +13 -13
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000111.html +17 -17
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000112.html +6 -6
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000113.html +6 -6
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000114.html +9 -9
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000115.html +4 -4
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000116.html +23 -23
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000117.html +5 -5
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000118.html +16 -16
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000119.html +18 -18
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000120.html +4 -4
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000121.html +10 -10
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000122.html +5 -5
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000123.html +4 -4
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000124.html +8 -8
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000125.html +11 -11
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000126.html +4 -4
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000127.html +21 -21
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000128.html +4 -4
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000129.html +19 -19
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000130.html +4 -4
- data/doc/rdoc/classes/Mongrel/Const.html +1 -1
- data/doc/rdoc/classes/Mongrel/DeflateFilter.src/M000099.html +5 -5
- data/doc/rdoc/classes/Mongrel/DeflateFilter.src/M000100.html +14 -14
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000058.html +7 -7
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000059.html +29 -29
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000060.html +28 -28
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000061.html +48 -48
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000062.html +25 -25
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000063.html +4 -4
- data/doc/rdoc/classes/Mongrel/Error404Handler.src/M000131.html +4 -4
- data/doc/rdoc/classes/Mongrel/Error404Handler.src/M000132.html +4 -4
- data/doc/rdoc/classes/Mongrel/HeaderOut.src/M000072.html +4 -4
- data/doc/rdoc/classes/Mongrel/HeaderOut.src/M000073.html +4 -4
- data/doc/rdoc/classes/Mongrel/HttpHandler.src/M000078.html +3 -3
- data/doc/rdoc/classes/Mongrel/HttpHandler.src/M000079.html +3 -3
- data/doc/rdoc/classes/Mongrel/HttpHandler.src/M000080.html +3 -3
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000022.html +3 -3
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000023.html +3 -3
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000024.html +5 -5
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000025.html +3 -3
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000138.html +42 -42
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000139.html +6 -6
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000140.html +6 -6
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000141.html +18 -18
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000081.html +11 -11
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000082.html +6 -6
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000083.html +11 -11
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000084.html +8 -8
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000085.html +8 -8
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000086.html +8 -8
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000087.html +17 -17
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000088.html +7 -7
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000089.html +6 -6
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000090.html +6 -6
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000091.html +6 -6
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000092.html +4 -4
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000064.html +11 -11
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000065.html +71 -71
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000066.html +17 -17
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000067.html +7 -7
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000068.html +36 -37
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000069.html +20 -20
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000070.html +4 -4
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000071.html +8 -8
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000042.html +25 -25
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000043.html +11 -11
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000044.html +12 -12
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000045.html +8 -8
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000046.html +36 -36
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000047.html +9 -9
- data/doc/rdoc/classes/Mongrel/RedirectHandler.src/M000136.html +8 -8
- data/doc/rdoc/classes/Mongrel/RedirectHandler.src/M000137.html +13 -13
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/M000133.html +10 -10
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/M000134.html +10 -10
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/M000135.html +4 -4
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000074.html +4 -4
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000075.html +10 -10
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000076.html +28 -28
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000077.html +6 -6
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000093.html +4 -4
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000094.html +4 -4
- data/doc/rdoc/classes/MongrelDbg.src/M000015.html +5 -5
- data/doc/rdoc/classes/MongrelDbg.src/M000016.html +6 -6
- data/doc/rdoc/classes/MongrelDbg.src/M000017.html +8 -8
- data/doc/rdoc/classes/MongrelDbg.src/M000018.html +7 -7
- data/doc/rdoc/classes/MongrelDbg.src/M000019.html +4 -4
- data/doc/rdoc/classes/ObjectTracker.src/M000013.html +13 -13
- data/doc/rdoc/classes/ObjectTracker.src/M000014.html +30 -30
- data/doc/rdoc/classes/RequestLog/Access.src/M000142.html +5 -5
- data/doc/rdoc/classes/RequestLog/Files.src/M000143.html +5 -5
- data/doc/rdoc/classes/RequestLog/Objects.src/M000145.html +5 -5
- data/doc/rdoc/classes/RequestLog/Params.src/M000146.html +5 -5
- data/doc/rdoc/classes/RequestLog/Threads.src/M000144.html +20 -20
- data/doc/rdoc/classes/Stats.src/M000005.html +5 -5
- data/doc/rdoc/classes/Stats.src/M000006.html +9 -9
- data/doc/rdoc/classes/Stats.src/M000007.html +12 -12
- data/doc/rdoc/classes/Stats.src/M000008.html +4 -4
- data/doc/rdoc/classes/Stats.src/M000009.html +4 -4
- data/doc/rdoc/classes/Stats.src/M000010.html +4 -4
- data/doc/rdoc/classes/Stats.src/M000011.html +9 -9
- data/doc/rdoc/classes/Stats.src/M000012.html +6 -6
- data/doc/rdoc/classes/TCPServer.src/M000003.html +5 -5
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/COPYING.html +51 -639
- data/doc/rdoc/files/LICENSE.html +51 -639
- data/doc/rdoc/files/ext/http11/http11_c.html +1 -1
- data/doc/rdoc/files/lib/mongrel/camping_rb.html +6 -21
- data/doc/rdoc/files/lib/mongrel/cgi_rb.html +6 -21
- data/doc/rdoc/files/lib/mongrel/command_rb.html +6 -21
- data/doc/rdoc/files/lib/mongrel/debug_rb.html +6 -21
- data/doc/rdoc/files/lib/mongrel/handlers_rb.html +13 -1
- data/doc/rdoc/files/lib/mongrel/init_rb.html +6 -21
- data/doc/rdoc/files/lib/mongrel/rails_rb.html +6 -21
- data/doc/rdoc/files/lib/mongrel/stats_rb.html +6 -21
- data/doc/rdoc/files/lib/mongrel/tcphack_rb.html +6 -21
- data/doc/rdoc/files/lib/mongrel_rb.html +6 -21
- data/ext/http11/http11.c +4 -19
- data/ext/http11/http11_parser.c +48 -63
- data/ext/http11/http11_parser.h +3 -17
- data/lib/http11.so +0 -0
- data/lib/mongrel.rb +10 -23
- data/lib/mongrel/camping.rb +4 -16
- data/lib/mongrel/cgi.rb +4 -16
- data/lib/mongrel/command.rb +4 -16
- data/lib/mongrel/debug.rb +4 -16
- data/lib/mongrel/handlers.rb +6 -17
- data/lib/mongrel/init.rb +4 -16
- data/lib/mongrel/rails.rb +4 -16
- data/lib/mongrel/stats.rb +4 -16
- data/lib/mongrel/tcphack.rb +4 -16
- data/test/test_command.rb +4 -16
- data/test/test_conditional.rb +4 -16
- data/test/test_configurator.rb +4 -16
- data/test/test_debug.rb +4 -16
- data/test/test_handlers.rb +4 -16
- data/test/test_http11.rb +4 -16
- data/test/test_redirect_handler.rb +6 -0
- data/test/test_request_progress.rb +58 -0
- data/test/test_response.rb +4 -16
- data/test/test_stats.rb +4 -16
- data/test/test_uriclassifier.rb +4 -16
- data/test/test_ws.rb +4 -16
- data/test/testhelp.rb +6 -0
- metadata +5 -2
@@ -10,10 +10,10 @@
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/mongrel/stats.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/mongrel/stats.rb, line 18</span>
|
14
|
+
18: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>)
|
15
|
+
19: <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>
|
16
|
+
20: <span class="ruby-identifier">reset</span>
|
17
|
+
21: <span class="ruby-keyword kw">end</span></pre>
|
18
18
|
</body>
|
19
19
|
</html>
|
@@ -10,14 +10,14 @@
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/mongrel/stats.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/mongrel/stats.rb, line 24</span>
|
14
|
+
24: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reset</span>
|
15
|
+
25: <span class="ruby-ivar">@sum</span> = <span class="ruby-value">0</span><span class="ruby-value">.0</span>
|
16
|
+
26: <span class="ruby-ivar">@sumsq</span> = <span class="ruby-value">0</span><span class="ruby-value">.0</span>
|
17
|
+
27: <span class="ruby-ivar">@last_time</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">new</span>
|
18
|
+
28: <span class="ruby-ivar">@n</span> = <span class="ruby-value">0</span><span class="ruby-value">.0</span>
|
19
|
+
29: <span class="ruby-ivar">@min</span> = <span class="ruby-value">0</span><span class="ruby-value">.0</span>
|
20
|
+
30: <span class="ruby-ivar">@max</span> = <span class="ruby-value">0</span><span class="ruby-value">.0</span>
|
21
|
+
31: <span class="ruby-keyword kw">end</span></pre>
|
22
22
|
</body>
|
23
23
|
</html>
|
@@ -10,17 +10,17 @@
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/mongrel/stats.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/mongrel/stats.rb, line 34</span>
|
14
|
+
34: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sample</span>(<span class="ruby-identifier">s</span>)
|
15
|
+
35: <span class="ruby-ivar">@sum</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">s</span>
|
16
|
+
36: <span class="ruby-ivar">@sumsq</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">s</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">s</span>
|
17
|
+
37: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@n</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
18
|
+
38: <span class="ruby-ivar">@min</span> = <span class="ruby-ivar">@max</span> = <span class="ruby-identifier">s</span>
|
19
|
+
39: <span class="ruby-keyword kw">else</span>
|
20
|
+
40: <span class="ruby-ivar">@min</span> = <span class="ruby-identifier">s</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@min</span> <span class="ruby-operator">></span> <span class="ruby-identifier">s</span>
|
21
|
+
41: <span class="ruby-ivar">@max</span> = <span class="ruby-identifier">s</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@max</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">s</span>
|
22
|
+
42: <span class="ruby-keyword kw">end</span>
|
23
|
+
43: <span class="ruby-ivar">@n</span><span class="ruby-operator">+=</span><span class="ruby-value">1</span>
|
24
|
+
44: <span class="ruby-keyword kw">end</span></pre>
|
25
25
|
</body>
|
26
26
|
</html>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/mongrel/stats.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/mongrel/stats.rb, line 47</span>
|
14
|
+
47: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dump</span>(<span class="ruby-identifier">msg</span> = <span class="ruby-value str">""</span>, <span class="ruby-identifier">out</span>=<span class="ruby-constant">STDERR</span>)
|
15
|
+
48: <span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"#{msg}: #{self.to_s}"</span>
|
16
|
+
49: <span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/mongrel/stats.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/mongrel/stats.rb, line 52</span>
|
14
|
+
52: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
15
|
+
53: <span class="ruby-node">"[#{@name}]: SUM=%0.4f, SUMSQ=%0.4f, N=%0.4f, MEAN=%0.4f, SD=%0.4f, MIN=%0.4f, MAX=%0.4f"</span> <span class="ruby-operator">%</span> [<span class="ruby-ivar">@sum</span>, <span class="ruby-ivar">@sumsq</span>, <span class="ruby-ivar">@n</span>, <span class="ruby-identifier">mean</span>, <span class="ruby-identifier">sd</span>, <span class="ruby-ivar">@min</span>, <span class="ruby-ivar">@max</span>]
|
16
|
+
54: <span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/mongrel/stats.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/mongrel/stats.rb, line 58</span>
|
14
|
+
58: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mean</span>
|
15
|
+
59: <span class="ruby-ivar">@sum</span> <span class="ruby-operator">/</span> <span class="ruby-ivar">@n</span>
|
16
|
+
60: <span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -10,14 +10,14 @@
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/mongrel/stats.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/mongrel/stats.rb, line 63</span>
|
14
|
+
63: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sd</span>
|
15
|
+
64: <span class="ruby-comment cmt"># (sqrt( ((s).sumsq - ( (s).sum * (s).sum / (s).n)) / ((s).n-1) ))</span>
|
16
|
+
65: <span class="ruby-keyword kw">begin</span>
|
17
|
+
66: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Math</span>.<span class="ruby-identifier">sqrt</span>( (<span class="ruby-ivar">@sumsq</span> <span class="ruby-operator">-</span> ( <span class="ruby-ivar">@sum</span> <span class="ruby-operator">*</span> <span class="ruby-ivar">@sum</span> <span class="ruby-operator">/</span> <span class="ruby-ivar">@n</span>)) <span class="ruby-operator">/</span> (<span class="ruby-ivar">@n</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>) )
|
18
|
+
67: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">EDOM</span>
|
19
|
+
68: <span class="ruby-keyword kw">return</span> <span class="ruby-value">0</span><span class="ruby-value">.0</span>
|
20
|
+
69: <span class="ruby-keyword kw">end</span>
|
21
|
+
70: <span class="ruby-keyword kw">end</span></pre>
|
22
22
|
</body>
|
23
23
|
</html>
|
@@ -10,11 +10,11 @@
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/mongrel/stats.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/mongrel/stats.rb, line 82</span>
|
14
|
+
82: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tick</span>
|
15
|
+
83: <span class="ruby-identifier">now</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>
|
16
|
+
84: <span class="ruby-identifier">sample</span>(<span class="ruby-identifier">now</span> <span class="ruby-operator">-</span> <span class="ruby-ivar">@last_time</span>)
|
17
|
+
85: <span class="ruby-ivar">@last_time</span> = <span class="ruby-identifier">now</span>
|
18
|
+
86: <span class="ruby-keyword kw">end</span></pre>
|
19
19
|
</body>
|
20
20
|
</html>
|
@@ -10,10 +10,10 @@
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/mongrel/tcphack.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/mongrel/tcphack.rb, line 11</span>
|
14
|
+
11: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize_with_backlog</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
15
|
+
12: <span class="ruby-identifier">initialize_without_backlog</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
16
|
+
13: <span class="ruby-identifier">listen</span>(<span class="ruby-value">1024</span>)
|
17
|
+
14: <span class="ruby-keyword kw">end</span></pre>
|
18
18
|
</body>
|
19
19
|
</html>
|
data/doc/rdoc/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Fri Jun 30 17:30:21 GMT-5:00 2006
|
data/doc/rdoc/files/COPYING.html
CHANGED
@@ -56,7 +56,7 @@
|
|
56
56
|
</tr>
|
57
57
|
<tr class="top-aligned-row">
|
58
58
|
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>
|
59
|
+
<td>Fri Jun 30 17:27:16 GMT-5:00 2006</td>
|
60
60
|
</tr>
|
61
61
|
</table>
|
62
62
|
</div>
|
@@ -69,658 +69,70 @@
|
|
69
69
|
<div id="contextContent">
|
70
70
|
|
71
71
|
<div id="description">
|
72
|
-
<
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
78
|
-
Everyone is permitted to copy and distribute verbatim copies
|
79
|
-
of this license document, but changing it is not allowed.
|
80
|
-
</pre>
|
81
|
-
<p>
|
82
|
-
[This is the first released version of the Lesser GPL. It also counts
|
72
|
+
<p>
|
73
|
+
<a href="../classes/Mongrel.html">Mongrel</a> Web Server (<a
|
74
|
+
href="../classes/Mongrel.html">Mongrel</a>) is copyrighted free software by
|
75
|
+
Zed A. Shaw <zedshaw at zedshaw dot com> You can redistribute it
|
76
|
+
and/or modify it under either the terms of the GPL or the conditions below:
|
83
77
|
</p>
|
84
|
-
<
|
85
|
-
|
86
|
-
|
78
|
+
<ol>
|
79
|
+
<li>You may make and give away verbatim copies of the source form of the
|
80
|
+
software without restriction, provided that you duplicate all of the
|
81
|
+
original copyright notices and associated disclaimers.
|
87
82
|
|
88
|
-
|
83
|
+
</li>
|
84
|
+
<li>You may modify your copy of the software in any way, provided that you do
|
85
|
+
at least ONE of the following:
|
89
86
|
|
90
|
-
The licenses for most software are designed to take away your
|
91
|
-
</pre>
|
92
|
-
<p>
|
93
|
-
freedom to share and change it. By contrast, the GNU General Public
|
94
|
-
Licenses are intended to guarantee your freedom to share and change free
|
95
|
-
software—to make sure the software is free for all its users.
|
96
|
-
</p>
|
97
|
-
<pre>
|
98
|
-
This license, the Lesser General Public License, applies to some
|
99
|
-
</pre>
|
100
|
-
<p>
|
101
|
-
specially designated software packages—typically libraries—of
|
102
|
-
the Free Software Foundation and other authors who decide to use it. You
|
103
|
-
can use it too, but we suggest you first think carefully about whether this
|
104
|
-
license or the ordinary General Public License is the better strategy to
|
105
|
-
use in any particular case, based on the explanations below.
|
106
|
-
</p>
|
107
|
-
<pre>
|
108
|
-
When we speak of free software, we are referring to freedom of use,
|
109
|
-
</pre>
|
110
|
-
<p>
|
111
|
-
not price. Our General Public Licenses are designed to make sure that you
|
112
|
-
have the freedom to distribute copies of free software (and charge for this
|
113
|
-
service if you wish); that you receive source code or can get it if you
|
114
|
-
want it; that you can change the software and use pieces of it in new free
|
115
|
-
programs; and that you are informed that you can do these things.
|
116
|
-
</p>
|
117
|
-
<pre>
|
118
|
-
To protect your rights, we need to make restrictions that forbid
|
119
|
-
</pre>
|
120
|
-
<p>
|
121
|
-
distributors to deny you these rights or to ask you to surrender these
|
122
|
-
rights. These restrictions translate to certain responsibilities for you if
|
123
|
-
you distribute copies of the library or if you modify it.
|
124
|
-
</p>
|
125
|
-
<pre>
|
126
|
-
For example, if you distribute copies of the library, whether gratis
|
127
|
-
</pre>
|
128
|
-
<p>
|
129
|
-
or for a fee, you must give the recipients all the rights that we gave you.
|
130
|
-
You must make sure that they, too, receive or can get the source code. If
|
131
|
-
you link other code with the library, you must provide complete object
|
132
|
-
files to the recipients, so that they can relink them with the library
|
133
|
-
after making changes to the library and recompiling it. And you must show
|
134
|
-
them these terms so they know their rights.
|
135
|
-
</p>
|
136
|
-
<pre>
|
137
|
-
We protect your rights with a two-step method: (1) we copyright the
|
138
|
-
</pre>
|
139
|
-
<p>
|
140
|
-
library, and (2) we offer you this license, which gives you legal
|
141
|
-
permission to copy, distribute and/or modify the library.
|
142
|
-
</p>
|
143
|
-
<pre>
|
144
|
-
To protect each distributor, we want to make it very clear that
|
145
|
-
</pre>
|
146
|
-
<p>
|
147
|
-
there is no warranty for the free library. Also, if the library is modified
|
148
|
-
by someone else and passed on, the recipients should know that what they
|
149
|
-
have is not the original version, so that the original author’s
|
150
|
-
reputation will not be affected by problems that might be introduced by
|
151
|
-
others.
|
152
|
-
</p>
|
153
|
-
<pre>
|
154
|
-
Finally, software patents pose a constant threat to the existence of
|
155
|
-
</pre>
|
156
|
-
<p>
|
157
|
-
any free program. We wish to make sure that a company cannot effectively
|
158
|
-
restrict the users of a free program by obtaining a restrictive license
|
159
|
-
from a patent holder. Therefore, we insist that any patent license obtained
|
160
|
-
for a version of the library must be consistent with the full freedom of
|
161
|
-
use specified in this license.
|
162
|
-
</p>
|
163
|
-
<pre>
|
164
|
-
Most GNU software, including some libraries, is covered by the
|
165
|
-
</pre>
|
166
|
-
<p>
|
167
|
-
ordinary GNU General Public License. This license, the GNU Lesser General
|
168
|
-
Public License, applies to certain designated libraries, and is quite
|
169
|
-
different from the ordinary General Public License. We use this license for
|
170
|
-
certain libraries in order to permit linking those libraries into non-free
|
171
|
-
programs.
|
172
|
-
</p>
|
173
|
-
<pre>
|
174
|
-
When a program is linked with a library, whether statically or using
|
175
|
-
</pre>
|
176
|
-
<p>
|
177
|
-
a shared library, the combination of the two is legally speaking a combined
|
178
|
-
work, a derivative of the original library. The ordinary General Public
|
179
|
-
License therefore permits such linking only if the entire combination fits
|
180
|
-
its criteria of freedom. The Lesser General Public License permits more lax
|
181
|
-
criteria for linking other code with the library.
|
182
|
-
</p>
|
183
|
-
<pre>
|
184
|
-
We call this license the "Lesser" General Public License because it
|
185
|
-
</pre>
|
186
|
-
<p>
|
187
|
-
does Less to protect the user’s freedom than the ordinary General
|
188
|
-
Public License. It also provides other free software developers Less of an
|
189
|
-
advantage over competing non-free programs. These disadvantages are the
|
190
|
-
reason we use the ordinary General Public License for many libraries.
|
191
|
-
However, the Lesser license provides advantages in certain special
|
192
|
-
circumstances.
|
193
|
-
</p>
|
194
|
-
<pre>
|
195
|
-
For example, on rare occasions, there may be a special need to
|
196
|
-
</pre>
|
197
|
-
<p>
|
198
|
-
encourage the widest possible use of a certain library, so that it becomes
|
199
|
-
a de-facto standard. To achieve this, non-free programs must be allowed to
|
200
|
-
use the library. A more frequent case is that a free library does the same
|
201
|
-
job as widely used non-free libraries. In this case, there is little to
|
202
|
-
gain by limiting the free library to free software only, so we use the
|
203
|
-
Lesser General Public License.
|
204
|
-
</p>
|
205
|
-
<pre>
|
206
|
-
In other cases, permission to use a particular library in non-free
|
207
|
-
</pre>
|
208
|
-
<p>
|
209
|
-
programs enables a greater number of people to use a large body of free
|
210
|
-
software. For example, permission to use the GNU C Library in non-free
|
211
|
-
programs enables many more people to use the whole GNU operating system, as
|
212
|
-
well as its variant, the GNU/Linux operating system.
|
213
|
-
</p>
|
214
|
-
<pre>
|
215
|
-
Although the Lesser General Public License is Less protective of the
|
216
|
-
</pre>
|
217
|
-
<p>
|
218
|
-
users’ freedom, it does ensure that the user of a program that is
|
219
|
-
linked with the Library has the freedom and the wherewithal to run that
|
220
|
-
program using a modified version of the Library.
|
221
|
-
</p>
|
222
|
-
<pre>
|
223
|
-
The precise terms and conditions for copying, distribution and
|
224
|
-
</pre>
|
225
|
-
<p>
|
226
|
-
modification follow. Pay close attention to the difference between a
|
227
|
-
"work based on the library" and a "work that uses the
|
228
|
-
library". The former contains code derived from the library, whereas
|
229
|
-
the latter must be combined with the library in order to run.
|
230
|
-
</p>
|
231
87
|
<pre>
|
232
|
-
|
233
|
-
|
88
|
+
a) place your modifications in the Public Domain or otherwise make them
|
89
|
+
Freely Available, such as by posting said modifications to Usenet or an
|
90
|
+
equivalent medium, or by allowing the author to include your
|
91
|
+
modifications in the software.
|
234
92
|
|
235
|
-
|
236
|
-
|
237
|
-
<p>
|
238
|
-
program which contains a notice placed by the copyright holder or other
|
239
|
-
authorized party saying it may be distributed under the terms of this
|
240
|
-
Lesser General Public License (also called "this License"). Each
|
241
|
-
licensee is addressed as "you".
|
242
|
-
</p>
|
243
|
-
<pre>
|
244
|
-
A "library" means a collection of software functions and/or data
|
245
|
-
</pre>
|
246
|
-
<p>
|
247
|
-
prepared so as to be conveniently linked with application programs (which
|
248
|
-
use some of those functions and data) to form executables.
|
249
|
-
</p>
|
250
|
-
<pre>
|
251
|
-
The "Library", below, refers to any such software library or work
|
252
|
-
</pre>
|
253
|
-
<p>
|
254
|
-
which has been distributed under these terms. A "work based on the
|
255
|
-
Library" means either the Library or any derivative work under
|
256
|
-
copyright law: that is to say, a work containing the Library or a portion
|
257
|
-
of it, either verbatim or with modifications and/or translated
|
258
|
-
straightforwardly into another language. (Hereinafter, translation is
|
259
|
-
included without limitation in the term "modification".)
|
260
|
-
</p>
|
261
|
-
<pre>
|
262
|
-
"Source code" for a work means the preferred form of the work for
|
263
|
-
</pre>
|
264
|
-
<p>
|
265
|
-
making modifications to it. For a library, complete source code means all
|
266
|
-
the source code for all modules it contains, plus any associated interface
|
267
|
-
definition files, plus the scripts used to control compilation and
|
268
|
-
installation of the library.
|
269
|
-
</p>
|
270
|
-
<pre>
|
271
|
-
Activities other than copying, distribution and modification are not
|
272
|
-
</pre>
|
273
|
-
<p>
|
274
|
-
covered by this License; they are outside its scope. The act of running a
|
275
|
-
program using the Library is not restricted, and output from such a program
|
276
|
-
is covered only if its contents constitute a work based on the Library
|
277
|
-
(independent of the use of the Library in a tool for writing it). Whether
|
278
|
-
that is true depends on what the Library does and what the program that
|
279
|
-
uses the Library does.
|
280
|
-
</p>
|
281
|
-
<pre>
|
282
|
-
1. You may copy and distribute verbatim copies of the Library's
|
283
|
-
</pre>
|
284
|
-
<p>
|
285
|
-
complete source code as you receive it, in any medium, provided that you
|
286
|
-
conspicuously and appropriately publish on each copy an appropriate
|
287
|
-
copyright notice and disclaimer of warranty; keep intact all the notices
|
288
|
-
that refer to this License and to the absence of any warranty; and
|
289
|
-
distribute a copy of this License along with the Library.
|
290
|
-
</p>
|
291
|
-
<pre>
|
292
|
-
You may charge a fee for the physical act of transferring a copy,
|
293
|
-
</pre>
|
294
|
-
<p>
|
295
|
-
and you may at your option offer warranty protection in exchange for a fee.
|
296
|
-
</p>
|
297
|
-
<pre>
|
298
|
-
2. You may modify your copy or copies of the Library or any portion
|
299
|
-
</pre>
|
300
|
-
<p>
|
301
|
-
of it, thus forming a work based on the Library, and copy and distribute
|
302
|
-
such modifications or work under the terms of Section 1 above, provided
|
303
|
-
that you also meet all of these conditions:
|
304
|
-
</p>
|
305
|
-
<pre>
|
306
|
-
a) The modified work must itself be a software library.
|
307
|
-
|
308
|
-
b) You must cause the files modified to carry prominent notices
|
309
|
-
stating that you changed the files and the date of any change.
|
310
|
-
|
311
|
-
c) You must cause the whole of the work to be licensed at no
|
312
|
-
charge to all third parties under the terms of this License.
|
313
|
-
|
314
|
-
d) If a facility in the modified Library refers to a function or a
|
315
|
-
table of data to be supplied by an application program that uses
|
316
|
-
the facility, other than as an argument passed when the facility
|
317
|
-
is invoked, then you must make a good faith effort to ensure that,
|
318
|
-
in the event an application does not supply such function or
|
319
|
-
table, the facility still operates, and performs whatever part of
|
320
|
-
its purpose remains meaningful.
|
321
|
-
|
322
|
-
(For example, a function in a library to compute square roots has
|
323
|
-
a purpose that is entirely well-defined independent of the
|
324
|
-
application. Therefore, Subsection 2d requires that any
|
325
|
-
application-supplied function or table used by this function must
|
326
|
-
be optional: if the application does not supply it, the square
|
327
|
-
root function must still compute square roots.)
|
328
|
-
</pre>
|
329
|
-
<p>
|
330
|
-
These requirements apply to the modified work as a whole. If identifiable
|
331
|
-
sections of that work are not derived from the Library, and can be
|
332
|
-
reasonably considered independent and separate works in themselves, then
|
333
|
-
this License, and its terms, do not apply to those sections when you
|
334
|
-
distribute them as separate works. But when you distribute the same
|
335
|
-
sections as part of a whole which is a work based on the Library, the
|
336
|
-
distribution of the whole must be on the terms of this License, whose
|
337
|
-
permissions for other licensees extend to the entire whole, and thus to
|
338
|
-
each and every part regardless of who wrote it.
|
339
|
-
</p>
|
340
|
-
<p>
|
341
|
-
Thus, it is not the intent of this section to claim rights or contest your
|
342
|
-
rights to work written entirely by you; rather, the intent is to exercise
|
343
|
-
the right to control the distribution of derivative or collective works
|
344
|
-
based on the Library.
|
345
|
-
</p>
|
346
|
-
<p>
|
347
|
-
In addition, mere aggregation of another work not based on the Library with
|
348
|
-
the Library (or with a work based on the Library) on a volume of a storage
|
349
|
-
or distribution medium does not bring the other work under the scope of
|
350
|
-
this License.
|
351
|
-
</p>
|
352
|
-
<pre>
|
353
|
-
3. You may opt to apply the terms of the ordinary GNU General Public
|
354
|
-
</pre>
|
355
|
-
<p>
|
356
|
-
License instead of this License to a given copy of the Library. To do this,
|
357
|
-
you must alter all the notices that refer to this License, so that they
|
358
|
-
refer to the ordinary GNU General Public License, version 2, instead of to
|
359
|
-
this License. (If a newer version than version 2 of the ordinary GNU
|
360
|
-
General Public License has appeared, then you can specify that version
|
361
|
-
instead if you wish.) Do not make any other change in these notices.
|
362
|
-
</p>
|
363
|
-
<pre>
|
364
|
-
Once this change is made in a given copy, it is irreversible for
|
365
|
-
</pre>
|
366
|
-
<p>
|
367
|
-
that copy, so the ordinary GNU General Public License applies to all
|
368
|
-
subsequent copies and derivative works made from that copy.
|
369
|
-
</p>
|
370
|
-
<pre>
|
371
|
-
This option is useful when you wish to copy part of the code of
|
372
|
-
</pre>
|
373
|
-
<p>
|
374
|
-
the Library into a program that is not a library.
|
375
|
-
</p>
|
376
|
-
<pre>
|
377
|
-
4. You may copy and distribute the Library (or a portion or
|
378
|
-
</pre>
|
379
|
-
<p>
|
380
|
-
derivative of it, under Section 2) in object code or executable form under
|
381
|
-
the terms of Sections 1 and 2 above provided that you accompany it with the
|
382
|
-
complete corresponding machine-readable source code, which must be
|
383
|
-
distributed under the terms of Sections 1 and 2 above on a medium
|
384
|
-
customarily used for software interchange.
|
385
|
-
</p>
|
386
|
-
<pre>
|
387
|
-
If distribution of object code is made by offering access to copy
|
388
|
-
</pre>
|
389
|
-
<p>
|
390
|
-
from a designated place, then offering equivalent access to copy the source
|
391
|
-
code from the same place satisfies the requirement to distribute the source
|
392
|
-
code, even though third parties are not compelled to copy the source along
|
393
|
-
with the object code.
|
394
|
-
</p>
|
395
|
-
<pre>
|
396
|
-
5. A program that contains no derivative of any portion of the
|
397
|
-
</pre>
|
398
|
-
<p>
|
399
|
-
Library, but is designed to work with the Library by being compiled or
|
400
|
-
linked with it, is called a "work that uses the Library". Such a
|
401
|
-
work, in isolation, is not a derivative work of the Library, and therefore
|
402
|
-
falls outside the scope of this License.
|
403
|
-
</p>
|
404
|
-
<pre>
|
405
|
-
However, linking a "work that uses the Library" with the Library
|
406
|
-
</pre>
|
407
|
-
<p>
|
408
|
-
creates an executable that is a derivative of the Library (because it
|
409
|
-
contains portions of the Library), rather than a "work that uses the
|
410
|
-
library". The executable is therefore covered by this License. Section
|
411
|
-
6 states terms for distribution of such executables.
|
412
|
-
</p>
|
413
|
-
<pre>
|
414
|
-
When a "work that uses the Library" uses material from a header file
|
415
|
-
</pre>
|
416
|
-
<p>
|
417
|
-
that is part of the Library, the object code for the work may be a
|
418
|
-
derivative work of the Library even though the source code is not. Whether
|
419
|
-
this is true is especially significant if the work can be linked without
|
420
|
-
the Library, or if the work is itself a library. The threshold for this to
|
421
|
-
be true is not precisely defined by law.
|
422
|
-
</p>
|
423
|
-
<pre>
|
424
|
-
If such an object file uses only numerical parameters, data
|
425
|
-
</pre>
|
426
|
-
<p>
|
427
|
-
structure layouts and accessors, and small macros and small inline
|
428
|
-
functions (ten lines or less in length), then the use of the object file is
|
429
|
-
unrestricted, regardless of whether it is legally a derivative work.
|
430
|
-
(Executables containing this object code plus portions of the Library will
|
431
|
-
still fall under Section 6.)
|
432
|
-
</p>
|
433
|
-
<pre>
|
434
|
-
Otherwise, if the work is a derivative of the Library, you may
|
435
|
-
</pre>
|
436
|
-
<p>
|
437
|
-
distribute the object code for the work under the terms of Section 6. Any
|
438
|
-
executables containing that work also fall under Section 6, whether or not
|
439
|
-
they are linked directly with the Library itself.
|
440
|
-
</p>
|
441
|
-
<pre>
|
442
|
-
6. As an exception to the Sections above, you may also combine or
|
443
|
-
</pre>
|
444
|
-
<p>
|
445
|
-
link a "work that uses the Library" with the Library to produce a
|
446
|
-
work containing portions of the Library, and distribute that work under
|
447
|
-
terms of your choice, provided that the terms permit modification of the
|
448
|
-
work for the customer’s own use and reverse engineering for debugging
|
449
|
-
such modifications.
|
450
|
-
</p>
|
451
|
-
<pre>
|
452
|
-
You must give prominent notice with each copy of the work that the
|
453
|
-
</pre>
|
454
|
-
<p>
|
455
|
-
Library is used in it and that the Library and its use are covered by this
|
456
|
-
License. You must supply a copy of this License. If the work during
|
457
|
-
execution displays copyright notices, you must include the copyright notice
|
458
|
-
for the Library among them, as well as a reference directing the user to
|
459
|
-
the copy of this License. Also, you must do one of these things:
|
460
|
-
</p>
|
461
|
-
<pre>
|
462
|
-
a) Accompany the work with the complete corresponding
|
463
|
-
machine-readable source code for the Library including whatever
|
464
|
-
changes were used in the work (which must be distributed under
|
465
|
-
Sections 1 and 2 above); and, if the work is an executable linked
|
466
|
-
with the Library, with the complete machine-readable "work that
|
467
|
-
uses the Library", as object code and/or source code, so that the
|
468
|
-
user can modify the Library and then relink to produce a modified
|
469
|
-
executable containing the modified Library. (It is understood
|
470
|
-
that the user who changes the contents of definitions files in the
|
471
|
-
Library will not necessarily be able to recompile the application
|
472
|
-
to use the modified definitions.)
|
473
|
-
|
474
|
-
b) Use a suitable shared library mechanism for linking with the
|
475
|
-
Library. A suitable mechanism is one that (1) uses at run time a
|
476
|
-
copy of the library already present on the user's computer system,
|
477
|
-
rather than copying library functions into the executable, and (2)
|
478
|
-
will operate properly with a modified version of the library, if
|
479
|
-
the user installs one, as long as the modified version is
|
480
|
-
interface-compatible with the version that the work was made with.
|
481
|
-
|
482
|
-
c) Accompany the work with a written offer, valid for at
|
483
|
-
least three years, to give the same user the materials
|
484
|
-
specified in Subsection 6a, above, for a charge no more
|
485
|
-
than the cost of performing this distribution.
|
486
|
-
|
487
|
-
d) If distribution of the work is made by offering access to copy
|
488
|
-
from a designated place, offer equivalent access to copy the above
|
489
|
-
specified materials from the same place.
|
490
|
-
|
491
|
-
e) Verify that the user has already received a copy of these
|
492
|
-
materials or that you have already sent this user a copy.
|
493
|
-
|
494
|
-
For an executable, the required form of the "work that uses the
|
495
|
-
</pre>
|
496
|
-
<p>
|
497
|
-
Library" must include any data and utility programs needed for
|
498
|
-
reproducing the executable from it. However, as a special exception, the
|
499
|
-
materials to be distributed need not include anything that is normally
|
500
|
-
distributed (in either source or binary form) with the major components
|
501
|
-
(compiler, kernel, and so on) of the operating system on which the
|
502
|
-
executable runs, unless that component itself accompanies the executable.
|
503
|
-
</p>
|
504
|
-
<pre>
|
505
|
-
It may happen that this requirement contradicts the license
|
506
|
-
</pre>
|
507
|
-
<p>
|
508
|
-
restrictions of other proprietary libraries that do not normally accompany
|
509
|
-
the operating system. Such a contradiction means you cannot use both them
|
510
|
-
and the Library together in an executable that you distribute.
|
511
|
-
</p>
|
512
|
-
<pre>
|
513
|
-
7. You may place library facilities that are a work based on the
|
514
|
-
</pre>
|
515
|
-
<p>
|
516
|
-
Library side-by-side in a single library together with other library
|
517
|
-
facilities not covered by this License, and distribute such a combined
|
518
|
-
library, provided that the separate distribution of the work based on the
|
519
|
-
Library and of the other library facilities is otherwise permitted, and
|
520
|
-
provided that you do these two things:
|
521
|
-
</p>
|
522
|
-
<pre>
|
523
|
-
a) Accompany the combined library with a copy of the same work
|
524
|
-
based on the Library, uncombined with any other library
|
525
|
-
facilities. This must be distributed under the terms of the
|
526
|
-
Sections above.
|
93
|
+
b) use the modified software only within your corporation or
|
94
|
+
organization.
|
527
95
|
|
528
|
-
|
529
|
-
|
530
|
-
where to find the accompanying uncombined form of the same work.
|
96
|
+
c) rename any non-standard executables so the names do not conflict with
|
97
|
+
standard executables, which must also be provided.
|
531
98
|
|
532
|
-
|
533
|
-
</pre>
|
534
|
-
<p>
|
535
|
-
the Library except as expressly provided under this License. Any attempt
|
536
|
-
otherwise to copy, modify, sublicense, link with, or distribute the Library
|
537
|
-
is void, and will automatically terminate your rights under this License.
|
538
|
-
However, parties who have received copies, or rights, from you under this
|
539
|
-
License will not have their licenses terminated so long as such parties
|
540
|
-
remain in full compliance.
|
541
|
-
</p>
|
542
|
-
<pre>
|
543
|
-
9. You are not required to accept this License, since you have not
|
99
|
+
d) make other distribution arrangements with the author.
|
544
100
|
</pre>
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
prohibited by law if you do not accept this License. Therefore, by
|
549
|
-
modifying or distributing the Library (or any work based on the Library),
|
550
|
-
you indicate your acceptance of this License to do so, and all its terms
|
551
|
-
and conditions for copying, distributing or modifying the Library or works
|
552
|
-
based on it.
|
553
|
-
</p>
|
554
|
-
<pre>
|
555
|
-
10. Each time you redistribute the Library (or any work based on the
|
556
|
-
</pre>
|
557
|
-
<p>
|
558
|
-
Library), the recipient automatically receives a license from the original
|
559
|
-
licensor to copy, distribute, link with or modify the Library subject to
|
560
|
-
these terms and conditions. You may not impose any further restrictions on
|
561
|
-
the recipients’ exercise of the rights granted herein. You are not
|
562
|
-
responsible for enforcing compliance by third parties with this License.
|
563
|
-
</p>
|
564
|
-
<pre>
|
565
|
-
11. If, as a consequence of a court judgment or allegation of patent
|
566
|
-
</pre>
|
567
|
-
<p>
|
568
|
-
infringement or for any other reason (not limited to patent issues),
|
569
|
-
conditions are imposed on you (whether by court order, agreement or
|
570
|
-
otherwise) that contradict the conditions of this License, they do not
|
571
|
-
excuse you from the conditions of this License. If you cannot distribute so
|
572
|
-
as to satisfy simultaneously your obligations under this License and any
|
573
|
-
other pertinent obligations, then as a consequence you may not distribute
|
574
|
-
the Library at all. For example, if a patent license would not permit
|
575
|
-
royalty-free redistribution of the Library by all those who receive copies
|
576
|
-
directly or indirectly through you, then the only way you could satisfy
|
577
|
-
both it and this License would be to refrain entirely from distribution of
|
578
|
-
the Library.
|
579
|
-
</p>
|
580
|
-
<p>
|
581
|
-
If any portion of this section is held invalid or unenforceable under any
|
582
|
-
particular circumstance, the balance of the section is intended to apply,
|
583
|
-
and the section as a whole is intended to apply in other circumstances.
|
584
|
-
</p>
|
585
|
-
<p>
|
586
|
-
It is not the purpose of this section to induce you to infringe any patents
|
587
|
-
or other property right claims or to contest validity of any such claims;
|
588
|
-
this section has the sole purpose of protecting the integrity of the free
|
589
|
-
software distribution system which is implemented by public license
|
590
|
-
practices. Many people have made generous contributions to the wide range
|
591
|
-
of software distributed through that system in reliance on consistent
|
592
|
-
application of that system; it is up to the author/donor to decide if he or
|
593
|
-
she is willing to distribute software through any other system and a
|
594
|
-
licensee cannot impose that choice.
|
595
|
-
</p>
|
596
|
-
<p>
|
597
|
-
This section is intended to make thoroughly clear what is believed to be a
|
598
|
-
consequence of the rest of this License.
|
599
|
-
</p>
|
600
|
-
<pre>
|
601
|
-
12. If the distribution and/or use of the Library is restricted in
|
602
|
-
</pre>
|
603
|
-
<p>
|
604
|
-
certain countries either by patents or by copyrighted interfaces, the
|
605
|
-
original copyright holder who places the Library under this License may add
|
606
|
-
an explicit geographical distribution limitation excluding those countries,
|
607
|
-
so that distribution is permitted only in or among countries not thus
|
608
|
-
excluded. In such case, this License incorporates the limitation as if
|
609
|
-
written in the body of this License.
|
610
|
-
</p>
|
611
|
-
<pre>
|
612
|
-
13. The Free Software Foundation may publish revised and/or new
|
613
|
-
</pre>
|
614
|
-
<p>
|
615
|
-
versions of the Lesser General Public License from time to time. Such new
|
616
|
-
versions will be similar in spirit to the present version, but may differ
|
617
|
-
in detail to address new problems or concerns.
|
618
|
-
</p>
|
619
|
-
<p>
|
620
|
-
Each version is given a distinguishing version number. If the Library
|
621
|
-
specifies a version number of this License which applies to it and
|
622
|
-
"any later version", you have the option of following the terms
|
623
|
-
and conditions either of that version or of any later version published by
|
624
|
-
the Free Software Foundation. If the Library does not specify a license
|
625
|
-
version number, you may choose any version ever published by the Free
|
626
|
-
Software Foundation.
|
627
|
-
</p>
|
628
|
-
<pre>
|
629
|
-
14. If you wish to incorporate parts of the Library into other free
|
630
|
-
</pre>
|
631
|
-
<p>
|
632
|
-
programs whose distribution conditions are incompatible with these, write
|
633
|
-
to the author to ask for permission. For software which is copyrighted by
|
634
|
-
the Free Software Foundation, write to the Free Software Foundation; we
|
635
|
-
sometimes make exceptions for this. Our decision will be guided by the two
|
636
|
-
goals of preserving the free status of all derivatives of our free software
|
637
|
-
and of promoting the sharing and reuse of software generally.
|
638
|
-
</p>
|
639
|
-
<pre>
|
640
|
-
NO WARRANTY
|
101
|
+
</li>
|
102
|
+
<li>You may distribute the software in object code or executable form, provided
|
103
|
+
that you do at least ONE of the following:
|
641
104
|
|
642
|
-
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
643
|
-
</pre>
|
644
|
-
<p>
|
645
|
-
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT
|
646
|
-
WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
647
|
-
PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
|
648
|
-
EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
649
|
-
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
650
|
-
TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE
|
651
|
-
LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
652
|
-
REPAIR OR CORRECTION.
|
653
|
-
</p>
|
654
|
-
<pre>
|
655
|
-
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
656
|
-
</pre>
|
657
|
-
<p>
|
658
|
-
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
659
|
-
REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
660
|
-
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
661
|
-
OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED
|
662
|
-
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
663
|
-
YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER
|
664
|
-
SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
665
|
-
POSSIBILITY OF SUCH DAMAGES.
|
666
|
-
</p>
|
667
105
|
<pre>
|
668
|
-
|
106
|
+
a) distribute the executables and library files of the software,
|
107
|
+
together with instructions (in the manual page or equivalent) on where
|
108
|
+
to get the original distribution.
|
669
109
|
|
670
|
-
|
110
|
+
b) accompany the distribution with the machine-readable source of the
|
111
|
+
software.
|
671
112
|
|
672
|
-
|
673
|
-
|
674
|
-
<p>
|
675
|
-
possible use to the public, we recommend making it free software that
|
676
|
-
everyone can redistribute and change. You can do so by permitting
|
677
|
-
redistribution under these terms (or, alternatively, under the terms of the
|
678
|
-
ordinary General Public License).
|
679
|
-
</p>
|
680
|
-
<pre>
|
681
|
-
To apply these terms, attach the following notices to the library. It is
|
682
|
-
</pre>
|
683
|
-
<p>
|
684
|
-
safest to attach them to the start of each source file to most effectively
|
685
|
-
convey the exclusion of warranty; and each file should have at least the
|
686
|
-
"copyright" line and a pointer to where the full notice is found.
|
687
|
-
</p>
|
688
|
-
<pre>
|
689
|
-
<one line to give the library's name and a brief idea of what it does.>
|
690
|
-
Copyright (C) <year> <name of author>
|
691
|
-
|
692
|
-
This library is free software; you can redistribute it and/or
|
693
|
-
modify it under the terms of the GNU Lesser General Public
|
694
|
-
License as published by the Free Software Foundation; either
|
695
|
-
version 2.1 of the License, or (at your option) any later version.
|
696
|
-
|
697
|
-
This library is distributed in the hope that it will be useful,
|
698
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
699
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
700
|
-
Lesser General Public License for more details.
|
701
|
-
|
702
|
-
You should have received a copy of the GNU Lesser General Public
|
703
|
-
License along with this library; if not, write to the Free Software
|
704
|
-
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
705
|
-
</pre>
|
706
|
-
<p>
|
707
|
-
Also add information on how to contact you by electronic and paper mail.
|
708
|
-
</p>
|
709
|
-
<p>
|
710
|
-
You should also get your employer (if you work as a programmer) or your
|
711
|
-
school, if any, to sign a "copyright disclaimer" for the library,
|
712
|
-
if necessary. Here is a sample; alter the names:
|
713
|
-
</p>
|
714
|
-
<pre>
|
715
|
-
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
716
|
-
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
113
|
+
c) give non-standard executables non-standard names, with
|
114
|
+
instructions on where to get the original software distribution.
|
717
115
|
|
718
|
-
|
719
|
-
Ty Coon, President of Vice
|
116
|
+
d) make other distribution arrangements with the author.
|
720
117
|
</pre>
|
721
|
-
|
722
|
-
|
723
|
-
|
118
|
+
</li>
|
119
|
+
<li>You may modify and include the part of the software into any other software
|
120
|
+
(possibly commercial). But some files in the distribution are not written
|
121
|
+
by the author, so that they are not under this terms.
|
122
|
+
|
123
|
+
</li>
|
124
|
+
<li>The scripts and library files supplied as input to or produced as output
|
125
|
+
from the software do not automatically fall under the copyright of the
|
126
|
+
software, but belong to whomever generated them, and may be sold
|
127
|
+
commercially, and may be aggregated with this software.
|
128
|
+
|
129
|
+
</li>
|
130
|
+
<li>THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
|
131
|
+
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES
|
132
|
+
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
133
|
+
|
134
|
+
</li>
|
135
|
+
</ol>
|
724
136
|
|
725
137
|
</div>
|
726
138
|
|