nitro 0.23.0 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +350 -0
- data/INSTALL +2 -2
- data/ProjectInfo +61 -0
- data/README +5 -4
- data/Rakefile +5 -4
- data/bin/nitrogen +3 -1
- data/doc/AUTHORS +27 -3
- data/doc/RELEASES +193 -0
- data/doc/lhttpd.txt +4 -0
- data/lib/nitro.rb +1 -1
- data/lib/nitro/adapter/cgi.rb +6 -321
- data/lib/nitro/adapter/fastcgi.rb +2 -14
- data/lib/nitro/adapter/scgi.rb +237 -71
- data/lib/nitro/adapter/webrick.rb +25 -7
- data/lib/nitro/caching.rb +1 -0
- data/lib/nitro/cgi.rb +296 -0
- data/lib/nitro/{cookie.rb → cgi/cookie.rb} +0 -0
- data/lib/nitro/cgi/http.rb +62 -0
- data/lib/nitro/{request.rb → cgi/request.rb} +4 -1
- data/lib/nitro/{response.rb → cgi/response.rb} +0 -0
- data/lib/nitro/cgi/stream.rb +43 -0
- data/lib/nitro/cgi/utils.rb +38 -0
- data/lib/nitro/compiler.rb +23 -11
- data/lib/nitro/compiler/css.rb +8 -0
- data/lib/nitro/compiler/morphing.rb +66 -0
- data/lib/nitro/context.rb +21 -30
- data/lib/nitro/controller.rb +23 -100
- data/lib/nitro/dispatcher.rb +18 -8
- data/lib/nitro/element.rb +6 -2
- data/lib/nitro/flash.rb +2 -2
- data/lib/nitro/mixin/buffer.rb +2 -2
- data/lib/nitro/mixin/form.rb +204 -93
- data/lib/nitro/mixin/javascript.rb +170 -11
- data/lib/nitro/mixin/markup.rb +1 -0
- data/lib/nitro/mixin/pager.rb +7 -4
- data/lib/nitro/mixin/rss.rb +2 -0
- data/lib/nitro/mixin/table.rb +23 -6
- data/lib/nitro/mixin/xhtml.rb +2 -2
- data/lib/nitro/render.rb +19 -5
- data/lib/nitro/scaffold.rb +12 -6
- data/lib/nitro/server.rb +4 -6
- data/lib/nitro/server/runner.rb +2 -2
- data/lib/nitro/session.rb +8 -1
- data/lib/nitro/session/file.rb +40 -0
- data/lib/part/admin.rb +2 -0
- data/lib/part/admin/controller.rb +7 -3
- data/lib/part/admin/skin.rb +8 -1
- data/lib/part/admin/template/index.xhtml +39 -1
- data/proto/public/error.xhtml +5 -3
- data/proto/public/js/behaviour.js +254 -254
- data/proto/public/js/controls.js +427 -165
- data/proto/public/js/dragdrop.js +255 -276
- data/proto/public/js/effects.js +476 -277
- data/proto/public/js/prototype.js +561 -127
- data/proto/public/js/scaffold.js +74 -0
- data/proto/public/js/scriptaculous.js +44 -0
- data/proto/public/js/util.js +548 -0
- data/proto/public/scaffold/list.xhtml +4 -1
- data/proto/scgi.rb +333 -0
- data/script/scgi_ctl +221 -0
- data/script/scgi_service +120 -0
- data/test/nitro/adapter/raw_post1.bin +0 -0
- data/test/nitro/{tc_cookie.rb → cgi/tc_cookie.rb} +1 -1
- data/test/nitro/{tc_request.rb → cgi/tc_request.rb} +1 -1
- data/test/nitro/mixin/tc_xhtml.rb +1 -1
- data/test/nitro/{adapter/tc_cgi.rb → tc_cgi.rb} +12 -12
- data/test/nitro/tc_controller.rb +9 -5
- metadata +159 -169
- data/benchmark/bench.rb +0 -5
- data/benchmark/simple-webrick-n-200.txt +0 -44
- data/benchmark/static-webrick-n-200.txt +0 -43
- data/benchmark/tiny-lhttpd-n-200-c-5.txt +0 -43
- data/benchmark/tiny-webrick-n-200-c-5.txt +0 -44
- data/benchmark/tiny-webrick-n-200.txt +0 -44
- data/benchmark/tiny2-webrick-n-200.txt +0 -44
- data/examples/README +0 -7
data/benchmark/bench.rb
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.141 $> apache-2.0
|
2
|
-
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
|
3
|
-
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
|
4
|
-
|
5
|
-
Benchmarking localhost (be patient)
|
6
|
-
|
7
|
-
|
8
|
-
Server Software: WEBrick/1.3.1
|
9
|
-
Server Hostname: localhost
|
10
|
-
Server Port: 8080
|
11
|
-
|
12
|
-
Document Path: /index2
|
13
|
-
Document Length: 42 bytes
|
14
|
-
|
15
|
-
Concurrency Level: 1
|
16
|
-
Time taken for tests: 4.644158 seconds
|
17
|
-
Complete requests: 200
|
18
|
-
Failed requests: 0
|
19
|
-
Write errors: 0
|
20
|
-
Non-2xx responses: 200
|
21
|
-
Total transferred: 51200 bytes
|
22
|
-
HTML transferred: 8400 bytes
|
23
|
-
Requests per second: 43.06 [#/sec] (mean)
|
24
|
-
Time per request: 23.221 [ms] (mean)
|
25
|
-
Time per request: 23.221 [ms] (mean, across all concurrent requests)
|
26
|
-
Transfer rate: 10.77 [Kbytes/sec] received
|
27
|
-
|
28
|
-
Connection Times (ms)
|
29
|
-
min mean[+/-sd] median max
|
30
|
-
Connect: 1 1 2.2 1 31
|
31
|
-
Processing: 15 20 11.2 18 89
|
32
|
-
Waiting: 0 0 0.0 0 0
|
33
|
-
Total: 16 22 11.3 19 90
|
34
|
-
|
35
|
-
Percentage of the requests served within a certain time (ms)
|
36
|
-
50% 19
|
37
|
-
66% 19
|
38
|
-
75% 19
|
39
|
-
80% 20
|
40
|
-
90% 48
|
41
|
-
95% 52
|
42
|
-
98% 55
|
43
|
-
99% 56
|
44
|
-
100% 90 (longest request)
|
@@ -1,43 +0,0 @@
|
|
1
|
-
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.141 $> apache-2.0
|
2
|
-
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
|
3
|
-
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
|
4
|
-
|
5
|
-
Benchmarking localhost (be patient)
|
6
|
-
|
7
|
-
|
8
|
-
Server Software: WEBrick/1.3.1
|
9
|
-
Server Hostname: localhost
|
10
|
-
Server Port: 8080
|
11
|
-
|
12
|
-
Document Path: /test.html
|
13
|
-
Document Length: 18 bytes
|
14
|
-
|
15
|
-
Concurrency Level: 1
|
16
|
-
Time taken for tests: 4.108503 seconds
|
17
|
-
Complete requests: 200
|
18
|
-
Failed requests: 0
|
19
|
-
Write errors: 0
|
20
|
-
Total transferred: 51400 bytes
|
21
|
-
HTML transferred: 3600 bytes
|
22
|
-
Requests per second: 48.68 [#/sec] (mean)
|
23
|
-
Time per request: 20.543 [ms] (mean)
|
24
|
-
Time per request: 20.543 [ms] (mean, across all concurrent requests)
|
25
|
-
Transfer rate: 12.17 [Kbytes/sec] received
|
26
|
-
|
27
|
-
Connection Times (ms)
|
28
|
-
min mean[+/-sd] median max
|
29
|
-
Connect: 0 0 2.2 0 30
|
30
|
-
Processing: 14 19 10.2 16 59
|
31
|
-
Waiting: 0 11 12.2 13 58
|
32
|
-
Total: 14 19 10.4 16 59
|
33
|
-
|
34
|
-
Percentage of the requests served within a certain time (ms)
|
35
|
-
50% 16
|
36
|
-
66% 17
|
37
|
-
75% 17
|
38
|
-
80% 18
|
39
|
-
90% 44
|
40
|
-
95% 48
|
41
|
-
98% 50
|
42
|
-
99% 50
|
43
|
-
100% 59 (longest request)
|
@@ -1,43 +0,0 @@
|
|
1
|
-
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.141 $> apache-2.0
|
2
|
-
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
|
3
|
-
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
|
4
|
-
|
5
|
-
Benchmarking localhost (be patient)
|
6
|
-
|
7
|
-
|
8
|
-
Server Software:
|
9
|
-
Server Hostname: localhost
|
10
|
-
Server Port: 8080
|
11
|
-
|
12
|
-
Document Path: /index
|
13
|
-
Document Length: 892 bytes
|
14
|
-
|
15
|
-
Concurrency Level: 5
|
16
|
-
Time taken for tests: 0.887273 seconds
|
17
|
-
Complete requests: 200
|
18
|
-
Failed requests: 0
|
19
|
-
Write errors: 0
|
20
|
-
Total transferred: 201200 bytes
|
21
|
-
HTML transferred: 178400 bytes
|
22
|
-
Requests per second: 225.41 [#/sec] (mean)
|
23
|
-
Time per request: 22.182 [ms] (mean)
|
24
|
-
Time per request: 4.436 [ms] (mean, across all concurrent requests)
|
25
|
-
Transfer rate: 220.90 [Kbytes/sec] received
|
26
|
-
|
27
|
-
Connection Times (ms)
|
28
|
-
min mean[+/-sd] median max
|
29
|
-
Connect: 0 0 1.0 0 8
|
30
|
-
Processing: 5 21 16.0 14 88
|
31
|
-
Waiting: 1 20 16.1 14 87
|
32
|
-
Total: 6 21 16.1 14 88
|
33
|
-
|
34
|
-
Percentage of the requests served within a certain time (ms)
|
35
|
-
50% 14
|
36
|
-
66% 15
|
37
|
-
75% 16
|
38
|
-
80% 32
|
39
|
-
90% 46
|
40
|
-
95% 47
|
41
|
-
98% 87
|
42
|
-
99% 88
|
43
|
-
100% 88 (longest request)
|
@@ -1,44 +0,0 @@
|
|
1
|
-
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.141 $> apache-2.0
|
2
|
-
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
|
3
|
-
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
|
4
|
-
|
5
|
-
Benchmarking localhost (be patient)
|
6
|
-
|
7
|
-
|
8
|
-
Server Software: WEBrick/1.3.1
|
9
|
-
Server Hostname: localhost
|
10
|
-
Server Port: 8080
|
11
|
-
|
12
|
-
Document Path: /index
|
13
|
-
Document Length: 417 bytes
|
14
|
-
|
15
|
-
Concurrency Level: 5
|
16
|
-
Time taken for tests: 6.968057 seconds
|
17
|
-
Complete requests: 200
|
18
|
-
Failed requests: 0
|
19
|
-
Write errors: 0
|
20
|
-
Non-2xx responses: 202
|
21
|
-
Total transferred: 127664 bytes
|
22
|
-
HTML transferred: 84234 bytes
|
23
|
-
Requests per second: 28.70 [#/sec] (mean)
|
24
|
-
Time per request: 174.201 [ms] (mean)
|
25
|
-
Time per request: 34.840 [ms] (mean, across all concurrent requests)
|
26
|
-
Transfer rate: 17.80 [Kbytes/sec] received
|
27
|
-
|
28
|
-
Connection Times (ms)
|
29
|
-
min mean[+/-sd] median max
|
30
|
-
Connect: 0 14 29.1 0 119
|
31
|
-
Processing: 25 156 71.1 163 446
|
32
|
-
Waiting: 0 113 61.8 115 394
|
33
|
-
Total: 94 170 53.7 163 446
|
34
|
-
|
35
|
-
Percentage of the requests served within a certain time (ms)
|
36
|
-
50% 163
|
37
|
-
66% 188
|
38
|
-
75% 196
|
39
|
-
80% 199
|
40
|
-
90% 210
|
41
|
-
95% 221
|
42
|
-
98% 409
|
43
|
-
99% 425
|
44
|
-
100% 446 (longest request)
|
@@ -1,44 +0,0 @@
|
|
1
|
-
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.141 $> apache-2.0
|
2
|
-
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
|
3
|
-
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
|
4
|
-
|
5
|
-
Benchmarking localhost (be patient)
|
6
|
-
|
7
|
-
|
8
|
-
Server Software: WEBrick/1.3.1
|
9
|
-
Server Hostname: localhost
|
10
|
-
Server Port: 8080
|
11
|
-
|
12
|
-
Document Path: /index
|
13
|
-
Document Length: 417 bytes
|
14
|
-
|
15
|
-
Concurrency Level: 1
|
16
|
-
Time taken for tests: 4.214142 seconds
|
17
|
-
Complete requests: 200
|
18
|
-
Failed requests: 0
|
19
|
-
Write errors: 0
|
20
|
-
Non-2xx responses: 200
|
21
|
-
Total transferred: 126400 bytes
|
22
|
-
HTML transferred: 83400 bytes
|
23
|
-
Requests per second: 47.46 [#/sec] (mean)
|
24
|
-
Time per request: 21.071 [ms] (mean)
|
25
|
-
Time per request: 21.071 [ms] (mean, across all concurrent requests)
|
26
|
-
Transfer rate: 29.19 [Kbytes/sec] received
|
27
|
-
|
28
|
-
Connection Times (ms)
|
29
|
-
min mean[+/-sd] median max
|
30
|
-
Connect: 0 0 0.2 0 2
|
31
|
-
Processing: 14 20 11.3 16 86
|
32
|
-
Waiting: 0 18 11.5 15 85
|
33
|
-
Total: 14 20 11.3 16 86
|
34
|
-
|
35
|
-
Percentage of the requests served within a certain time (ms)
|
36
|
-
50% 16
|
37
|
-
66% 17
|
38
|
-
75% 18
|
39
|
-
80% 18
|
40
|
-
90% 44
|
41
|
-
95% 51
|
42
|
-
98% 53
|
43
|
-
99% 55
|
44
|
-
100% 86 (longest request)
|
@@ -1,44 +0,0 @@
|
|
1
|
-
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.141 $> apache-2.0
|
2
|
-
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
|
3
|
-
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
|
4
|
-
|
5
|
-
Benchmarking localhost (be patient)
|
6
|
-
|
7
|
-
|
8
|
-
Server Software: WEBrick/1.3.1
|
9
|
-
Server Hostname: localhost
|
10
|
-
Server Port: 8080
|
11
|
-
|
12
|
-
Document Path: /index2
|
13
|
-
Document Length: 42 bytes
|
14
|
-
|
15
|
-
Concurrency Level: 1
|
16
|
-
Time taken for tests: 3.794328 seconds
|
17
|
-
Complete requests: 200
|
18
|
-
Failed requests: 0
|
19
|
-
Write errors: 0
|
20
|
-
Non-2xx responses: 200
|
21
|
-
Total transferred: 41000 bytes
|
22
|
-
HTML transferred: 8400 bytes
|
23
|
-
Requests per second: 52.71 [#/sec] (mean)
|
24
|
-
Time per request: 18.972 [ms] (mean)
|
25
|
-
Time per request: 18.972 [ms] (mean, across all concurrent requests)
|
26
|
-
Transfer rate: 10.54 [Kbytes/sec] received
|
27
|
-
|
28
|
-
Connection Times (ms)
|
29
|
-
min mean[+/-sd] median max
|
30
|
-
Connect: 0 0 0.2 0 2
|
31
|
-
Processing: 12 18 10.9 14 85
|
32
|
-
Waiting: 0 16 11.4 13 83
|
33
|
-
Total: 12 18 10.9 15 85
|
34
|
-
|
35
|
-
Percentage of the requests served within a certain time (ms)
|
36
|
-
50% 15
|
37
|
-
66% 15
|
38
|
-
75% 16
|
39
|
-
80% 17
|
40
|
-
90% 43
|
41
|
-
95% 47
|
42
|
-
98% 48
|
43
|
-
99% 49
|
44
|
-
100% 85 (longest request)
|