nitro 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. data/CHANGELOG +350 -0
  2. data/INSTALL +2 -2
  3. data/ProjectInfo +61 -0
  4. data/README +5 -4
  5. data/Rakefile +5 -4
  6. data/bin/nitrogen +3 -1
  7. data/doc/AUTHORS +27 -3
  8. data/doc/RELEASES +193 -0
  9. data/doc/lhttpd.txt +4 -0
  10. data/lib/nitro.rb +1 -1
  11. data/lib/nitro/adapter/cgi.rb +6 -321
  12. data/lib/nitro/adapter/fastcgi.rb +2 -14
  13. data/lib/nitro/adapter/scgi.rb +237 -71
  14. data/lib/nitro/adapter/webrick.rb +25 -7
  15. data/lib/nitro/caching.rb +1 -0
  16. data/lib/nitro/cgi.rb +296 -0
  17. data/lib/nitro/{cookie.rb → cgi/cookie.rb} +0 -0
  18. data/lib/nitro/cgi/http.rb +62 -0
  19. data/lib/nitro/{request.rb → cgi/request.rb} +4 -1
  20. data/lib/nitro/{response.rb → cgi/response.rb} +0 -0
  21. data/lib/nitro/cgi/stream.rb +43 -0
  22. data/lib/nitro/cgi/utils.rb +38 -0
  23. data/lib/nitro/compiler.rb +23 -11
  24. data/lib/nitro/compiler/css.rb +8 -0
  25. data/lib/nitro/compiler/morphing.rb +66 -0
  26. data/lib/nitro/context.rb +21 -30
  27. data/lib/nitro/controller.rb +23 -100
  28. data/lib/nitro/dispatcher.rb +18 -8
  29. data/lib/nitro/element.rb +6 -2
  30. data/lib/nitro/flash.rb +2 -2
  31. data/lib/nitro/mixin/buffer.rb +2 -2
  32. data/lib/nitro/mixin/form.rb +204 -93
  33. data/lib/nitro/mixin/javascript.rb +170 -11
  34. data/lib/nitro/mixin/markup.rb +1 -0
  35. data/lib/nitro/mixin/pager.rb +7 -4
  36. data/lib/nitro/mixin/rss.rb +2 -0
  37. data/lib/nitro/mixin/table.rb +23 -6
  38. data/lib/nitro/mixin/xhtml.rb +2 -2
  39. data/lib/nitro/render.rb +19 -5
  40. data/lib/nitro/scaffold.rb +12 -6
  41. data/lib/nitro/server.rb +4 -6
  42. data/lib/nitro/server/runner.rb +2 -2
  43. data/lib/nitro/session.rb +8 -1
  44. data/lib/nitro/session/file.rb +40 -0
  45. data/lib/part/admin.rb +2 -0
  46. data/lib/part/admin/controller.rb +7 -3
  47. data/lib/part/admin/skin.rb +8 -1
  48. data/lib/part/admin/template/index.xhtml +39 -1
  49. data/proto/public/error.xhtml +5 -3
  50. data/proto/public/js/behaviour.js +254 -254
  51. data/proto/public/js/controls.js +427 -165
  52. data/proto/public/js/dragdrop.js +255 -276
  53. data/proto/public/js/effects.js +476 -277
  54. data/proto/public/js/prototype.js +561 -127
  55. data/proto/public/js/scaffold.js +74 -0
  56. data/proto/public/js/scriptaculous.js +44 -0
  57. data/proto/public/js/util.js +548 -0
  58. data/proto/public/scaffold/list.xhtml +4 -1
  59. data/proto/scgi.rb +333 -0
  60. data/script/scgi_ctl +221 -0
  61. data/script/scgi_service +120 -0
  62. data/test/nitro/adapter/raw_post1.bin +0 -0
  63. data/test/nitro/{tc_cookie.rb → cgi/tc_cookie.rb} +1 -1
  64. data/test/nitro/{tc_request.rb → cgi/tc_request.rb} +1 -1
  65. data/test/nitro/mixin/tc_xhtml.rb +1 -1
  66. data/test/nitro/{adapter/tc_cgi.rb → tc_cgi.rb} +12 -12
  67. data/test/nitro/tc_controller.rb +9 -5
  68. metadata +159 -169
  69. data/benchmark/bench.rb +0 -5
  70. data/benchmark/simple-webrick-n-200.txt +0 -44
  71. data/benchmark/static-webrick-n-200.txt +0 -43
  72. data/benchmark/tiny-lhttpd-n-200-c-5.txt +0 -43
  73. data/benchmark/tiny-webrick-n-200-c-5.txt +0 -44
  74. data/benchmark/tiny-webrick-n-200.txt +0 -44
  75. data/benchmark/tiny2-webrick-n-200.txt +0 -44
  76. data/examples/README +0 -7
data/benchmark/bench.rb DELETED
@@ -1,5 +0,0 @@
1
- # * George Moschovitis <gm@navel.gr>
2
- # (c) 2005 Navel, all rights reserved.
3
- # $Id: bench.rb 1 2005-04-11 11:04:30Z gmosx $
4
-
5
-
@@ -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)
data/examples/README DELETED
@@ -1,7 +0,0 @@
1
- = Examples
2
-
3
- You can find a separate distribution of Nitro examples
4
- on the project download page:
5
-
6
- http://rubyforge.org/projects/nitro
7
-