swiftiply 0.5.1 → 0.6.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 (88) hide show
  1. data/CONTRIBUTORS +2 -0
  2. data/README +1 -1
  3. data/bin/echo_client +26 -0
  4. data/bin/swiftiply +21 -8
  5. data/ext/fastfilereader/extconf.rb +161 -0
  6. data/ext/fastfilereader/mapper.cpp +200 -0
  7. data/ext/fastfilereader/mapper.h +59 -0
  8. data/ext/fastfilereader/rubymain.cpp +127 -0
  9. data/external/test_support.rb +13 -0
  10. data/setup.rb +7 -2
  11. data/src/fastfilereader.rb +109 -0
  12. data/src/swiftcore/Swiftiply.rb +432 -103
  13. data/src/swiftcore/Swiftiply/support_pagecache.rb +56 -0
  14. data/src/swiftcore/Swiftiply/swiftiply_client.rb +57 -0
  15. data/src/swiftcore/evented_mongrel.rb +32 -4
  16. data/src/swiftcore/swiftiplied_mongrel.rb +50 -38
  17. data/src/swiftcore/types.rb +1583 -0
  18. data/swiftiply.gemspec +4 -4
  19. data/test/TC_ProxyBag.rb +185 -0
  20. data/test/TC_Swiftiply.rb +458 -0
  21. data/test/TC_Swiftiply/mongrel/evented_hello.rb +25 -0
  22. data/test/TC_Swiftiply/mongrel/swiftiplied_hello.rb +25 -0
  23. data/test/TC_Swiftiply/mongrel/threaded_hello.rb +25 -0
  24. data/test/TC_Swiftiply/slow_echo_client +26 -0
  25. metadata +34 -121
  26. data/src/ramaze/adapter/evented_mongrel.rb +0 -2
  27. data/src/ramaze/adapter/swiftiplied_mongrel.rb +0 -2
  28. data/test/rails/README +0 -182
  29. data/test/rails/Rakefile +0 -10
  30. data/test/rails/app/controllers/application.rb +0 -6
  31. data/test/rails/app/controllers/tests_controller.rb +0 -15
  32. data/test/rails/app/helpers/application_helper.rb +0 -3
  33. data/test/rails/config/boot.rb +0 -45
  34. data/test/rails/config/database.yml +0 -36
  35. data/test/rails/config/environment.rb +0 -60
  36. data/test/rails/config/environments/development.rb +0 -21
  37. data/test/rails/config/environments/production.rb +0 -18
  38. data/test/rails/config/environments/production_no_caching.rb +0 -18
  39. data/test/rails/config/environments/test.rb +0 -19
  40. data/test/rails/config/routes.rb +0 -23
  41. data/test/rails/doc/README_FOR_APP +0 -2
  42. data/test/rails/observe_ram.rb +0 -10
  43. data/test/rails/public/404.html +0 -30
  44. data/test/rails/public/500.html +0 -30
  45. data/test/rails/public/dispatch.cgi +0 -10
  46. data/test/rails/public/dispatch.fcgi +0 -24
  47. data/test/rails/public/dispatch.rb +0 -10
  48. data/test/rails/public/favicon.ico +0 -0
  49. data/test/rails/public/images/rails.png +0 -0
  50. data/test/rails/public/index.html +0 -277
  51. data/test/rails/public/javascripts/application.js +0 -2
  52. data/test/rails/public/javascripts/controls.js +0 -833
  53. data/test/rails/public/javascripts/dragdrop.js +0 -942
  54. data/test/rails/public/javascripts/effects.js +0 -1088
  55. data/test/rails/public/javascripts/prototype.js +0 -2515
  56. data/test/rails/public/robots.txt +0 -1
  57. data/test/rails/script/about +0 -3
  58. data/test/rails/script/breakpointer +0 -3
  59. data/test/rails/script/console +0 -3
  60. data/test/rails/script/destroy +0 -3
  61. data/test/rails/script/generate +0 -3
  62. data/test/rails/script/performance/benchmarker +0 -3
  63. data/test/rails/script/performance/profiler +0 -3
  64. data/test/rails/script/plugin +0 -3
  65. data/test/rails/script/process/inspector +0 -3
  66. data/test/rails/script/process/reaper +0 -3
  67. data/test/rails/script/process/spawner +0 -3
  68. data/test/rails/script/runner +0 -3
  69. data/test/rails/script/server +0 -3
  70. data/test/rails/test/test_helper.rb +0 -28
  71. data/test/ramaze/conf/benchmark.yaml +0 -35
  72. data/test/ramaze/conf/debug.yaml +0 -34
  73. data/test/ramaze/conf/live.yaml +0 -33
  74. data/test/ramaze/conf/silent.yaml +0 -31
  75. data/test/ramaze/conf/stage.yaml +0 -33
  76. data/test/ramaze/main.rb +0 -18
  77. data/test/ramaze/public/404.jpg +0 -0
  78. data/test/ramaze/public/css/coderay.css +0 -105
  79. data/test/ramaze/public/css/ramaze_error.css +0 -42
  80. data/test/ramaze/public/error.zmr +0 -77
  81. data/test/ramaze/public/favicon.ico +0 -0
  82. data/test/ramaze/public/js/jquery.js +0 -1923
  83. data/test/ramaze/public/ramaze.png +0 -0
  84. data/test/ramaze/src/controller/main.rb +0 -8
  85. data/test/ramaze/src/element/page.rb +0 -17
  86. data/test/ramaze/src/model.rb +0 -6
  87. data/test/ramaze/template/index.xhtml +0 -6
  88. data/test/ramaze/yaml.db +0 -0
@@ -1 +0,0 @@
1
- # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/about'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/breakpointer'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/console'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/destroy'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/generate'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../../config/boot'
3
- require 'commands/performance/benchmarker'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../../config/boot'
3
- require 'commands/performance/profiler'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/plugin'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../../config/boot'
3
- require 'commands/process/inspector'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../../config/boot'
3
- require 'commands/process/reaper'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../../config/boot'
3
- require 'commands/process/spawner'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/runner'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/server'
@@ -1,28 +0,0 @@
1
- ENV["RAILS_ENV"] = "test"
2
- require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
3
- require 'test_help'
4
-
5
- class Test::Unit::TestCase
6
- # Transactional fixtures accelerate your tests by wrapping each test method
7
- # in a transaction that's rolled back on completion. This ensures that the
8
- # test database remains unchanged so your fixtures don't have to be reloaded
9
- # between every test method. Fewer database queries means faster tests.
10
- #
11
- # Read Mike Clark's excellent walkthrough at
12
- # http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting
13
- #
14
- # Every Active Record database supports transactions except MyISAM tables
15
- # in MySQL. Turn off transactional fixtures in this case; however, if you
16
- # don't care one way or the other, switching from MyISAM to InnoDB tables
17
- # is recommended.
18
- self.use_transactional_fixtures = true
19
-
20
- # Instantiated fixtures are slow, but give you @david where otherwise you
21
- # would need people(:david). If you don't want to migrate your existing
22
- # test cases which use the @david style and don't mind the speed hit (each
23
- # instantiated fixtures translates to a database query per test method),
24
- # then set this back to true.
25
- self.use_instantiated_fixtures = false
26
-
27
- # Add more helper methods to be used by all tests here...
28
- end
@@ -1,35 +0,0 @@
1
- ---
2
- port: !ruby/range
3
- begin: 7000
4
- end: 7000
5
-
6
- adapter: :webrick
7
-
8
- template_root: "template"
9
-
10
- mapping:
11
- /: :MainController
12
-
13
-
14
- host: 0.0.0.0
15
- tidy: false
16
- cookies: true
17
- error_page: true
18
- autoreload: 60
19
-
20
- cache: :MemoryCache
21
- cache_all: false
22
-
23
- inform_to: "stdout"
24
- inform_timestamp: "%Y-%m-%d %H:%M:%S"
25
- inform_prefix_error: "ERROR"
26
- inform_prefix_debug: "DEBUG"
27
- inform_prefix_info: "INFO "
28
- inform_backtrace_size: 10
29
-
30
- inform_tags: !ruby/object:Set
31
- hash:
32
- :benchmark: true
33
- :debug: true
34
- :info: true
35
- :error: true
@@ -1,34 +0,0 @@
1
- ---
2
- port: !ruby/range
3
- begin: 7001
4
- end: 7001
5
-
6
- adapter: :webrick
7
-
8
- template_root: "template"
9
-
10
- mapping:
11
- /: :MainController
12
-
13
-
14
- host: 0.0.0.0
15
- tidy: false
16
- cookies: true
17
- error_page: true
18
- autoreload: 5
19
-
20
- cache: :MemoryCache
21
- cache_all: false
22
-
23
- inform_to: "stdout"
24
- inform_timestamp: "%Y-%m-%d %H:%M:%S"
25
- inform_prefix_error: "ERROR"
26
- inform_prefix_debug: "DEBUG"
27
- inform_prefix_info: "INFO "
28
- inform_backtrace_size: 10
29
-
30
- inform_tags: !ruby/object:Set
31
- hash:
32
- :debug: true
33
- :info: true
34
- :error: true
@@ -1,33 +0,0 @@
1
- ---
2
- port: !ruby/range
3
- begin: 7000
4
- end: 7000
5
-
6
- adapter: :webrick
7
-
8
- template_root: "template"
9
-
10
- mapping:
11
- /: :MainController
12
-
13
-
14
- host: 0.0.0.0
15
- tidy: false
16
- cookies: true
17
- error_page: true
18
- autoreload: 60
19
-
20
- cache: :MemoryCache
21
- cache_all: false
22
-
23
- inform_to: "log/all"
24
- inform_timestamp: "%Y-%m-%d %H:%M:%S"
25
- inform_prefix_error: "ERROR"
26
- inform_prefix_debug: "DEBUG"
27
- inform_prefix_info: "INFO "
28
- inform_backtrace_size: 10
29
-
30
- inform_tags: !ruby/object:Set
31
- hash:
32
- :info: true
33
- :error: true
@@ -1,31 +0,0 @@
1
- ---
2
- port: !ruby/range
3
- begin: 7000
4
- end: 7000
5
-
6
- adapter: :webrick
7
-
8
- template_root: "template"
9
-
10
- mapping:
11
- /: :MainController
12
-
13
-
14
- host: 0.0.0.0
15
- tidy: false
16
- cookies: true
17
- error_page: true
18
- autoreload: 60
19
-
20
- cache: :MemoryCache
21
- cache_all: false
22
-
23
- inform_to: "stdout"
24
- inform_timestamp: "%Y-%m-%d %H:%M:%S"
25
- inform_prefix_error: "ERROR"
26
- inform_prefix_debug: "DEBUG"
27
- inform_prefix_info: "INFO "
28
- inform_backtrace_size: 10
29
-
30
- inform_tags: !ruby/object:Set
31
- hash: {}
@@ -1,33 +0,0 @@
1
- ---
2
- port: !ruby/range
3
- begin: 7000
4
- end: 7000
5
-
6
- adapter: :webrick
7
-
8
- template_root: "template"
9
-
10
- mapping:
11
- /: :MainController
12
-
13
-
14
- host: 0.0.0.0
15
- tidy: false
16
- cookies: true
17
- error_page: true
18
- autoreload: 60
19
-
20
- cache: :MemoryCache
21
- cache_all: false
22
-
23
- inform_to: "stdout"
24
- inform_timestamp: "%Y-%m-%d %H:%M:%S"
25
- inform_prefix_error: "ERROR"
26
- inform_prefix_debug: "DEBUG"
27
- inform_prefix_info: "INFO "
28
- inform_backtrace_size: 10
29
-
30
- inform_tags: !ruby/object:Set
31
- hash:
32
- :info: true
33
- :error: true
data/test/ramaze/main.rb DELETED
@@ -1,18 +0,0 @@
1
- # Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com
2
- # All files in this distribution are subject to the terms of the Ruby license.
3
-
4
- require 'ramaze'
5
-
6
- include Ramaze
7
-
8
- require 'src/controller/main'
9
- require 'src/element/page'
10
- require 'src/model'
11
-
12
- # mode selects the config-file.
13
- # benchmark | debug | stage | live | silent
14
- mode = 'debug'
15
-
16
- Global.setup YAML.load_file("conf/#{mode}.yaml")
17
-
18
- start
Binary file
@@ -1,105 +0,0 @@
1
- .CodeRay {
2
- background-color: #f8f8f8;
3
- border: 1px solid silver;
4
- font-family: 'Courier New', 'Terminal', monospace;
5
- color: #100;
6
- }
7
- .CodeRay pre { margin: 0px }
8
-
9
- div.CodeRay { }
10
-
11
- span.CodeRay { white-space: pre; border: 0px; padding: 2px }
12
-
13
- table.CodeRay { border-collapse: collapse; width: 100%; padding: 2px }
14
- table.CodeRay td { padding: 2px 4px; vertical-align: top }
15
-
16
- .CodeRay .line_numbers, .CodeRay .no {
17
- background-color: #def;
18
- color: gray;
19
- text-align: right;
20
- }
21
- .CodeRay .line_numbers tt { font-weight: bold }
22
- .CodeRay .no { padding: 0px 4px }
23
- .CodeRay .code { width: 100% }
24
-
25
- ol.CodeRay { font-size: 10pt }
26
- ol.CodeRay li { white-space: pre }
27
-
28
- .CodeRay .code pre { overflow: auto }
29
-
30
- .CodeRay .af { color:#00C }
31
- .CodeRay .an { color:#007 }
32
- .CodeRay .av { color:#700 }
33
- .CodeRay .aw { color:#C00 }
34
- .CodeRay .bi { color:#509; font-weight:bold }
35
- .CodeRay .c { color:#888 }
36
-
37
- .CodeRay .ch { color:#04D }
38
- .CodeRay .ch .k { color:#04D }
39
- .CodeRay .ch .dl { color:#039 }
40
-
41
- .CodeRay .cl { color:#B06; font-weight:bold }
42
- .CodeRay .co { color:#036; font-weight:bold }
43
- .CodeRay .cr { color:#0A0 }
44
- .CodeRay .cv { color:#369 }
45
- .CodeRay .df { color:#099; font-weight:bold }
46
- .CodeRay .di { color:#088; font-weight:bold }
47
- .CodeRay .dl { color:black }
48
- .CodeRay .do { color:#970 }
49
- .CodeRay .ds { color:#D42; font-weight:bold }
50
- .CodeRay .e { color:#666; font-weight:bold }
51
- .CodeRay .en { color:#800; font-weight:bold }
52
- .CodeRay .er { color:#F00; background-color:#FAA }
53
- .CodeRay .ex { color:#F00; font-weight:bold }
54
- .CodeRay .fl { color:#60E; font-weight:bold }
55
- .CodeRay .fu { color:#06B; font-weight:bold }
56
- .CodeRay .gv { color:#d70; font-weight:bold }
57
- .CodeRay .hx { color:#058; font-weight:bold }
58
- .CodeRay .i { color:#00D; font-weight:bold }
59
- .CodeRay .ic { color:#B44; font-weight:bold }
60
-
61
- .CodeRay .il { background: #eee }
62
- .CodeRay .il .il { background: #ddd }
63
- .CodeRay .il .il .il { background: #ccc }
64
- .CodeRay .il .idl { font-weight: bold; color: #888 }
65
-
66
- .CodeRay .in { color:#B2B; font-weight:bold }
67
- .CodeRay .iv { color:#33B }
68
- .CodeRay .la { color:#970; font-weight:bold }
69
- .CodeRay .lv { color:#963 }
70
- .CodeRay .oc { color:#40E; font-weight:bold }
71
- .CodeRay .on { color:#000; font-weight:bold }
72
- .CodeRay .op { }
73
- .CodeRay .pc { color:#038; font-weight:bold }
74
- .CodeRay .pd { color:#369; font-weight:bold }
75
- .CodeRay .pp { color:#579 }
76
- .CodeRay .pt { color:#339; font-weight:bold }
77
- .CodeRay .r { color:#080; font-weight:bold }
78
-
79
- .CodeRay .rx { background-color:#fff0ff }
80
- .CodeRay .rx .k { color:#808 }
81
- .CodeRay .rx .dl { color:#404 }
82
- .CodeRay .rx .mod { color:#C2C }
83
- .CodeRay .rx .fu { color:#404; font-weight: bold }
84
-
85
- .CodeRay .s { background-color:#fff0f0 }
86
- .CodeRay .s .s { background-color:#ffe0e0 }
87
- .CodeRay .s .s .s { background-color:#ffd0d0 }
88
- .CodeRay .s .k { color:#D20 }
89
- .CodeRay .s .dl { color:#710 }
90
-
91
- .CodeRay .sh { background-color:#f0fff0 }
92
- .CodeRay .sh .k { color:#2B2 }
93
- .CodeRay .sh .dl { color:#161 }
94
-
95
- .CodeRay .sy { color:#A60 }
96
- .CodeRay .sy .k { color:#A60 }
97
- .CodeRay .sy .dl { color:#630 }
98
-
99
- .CodeRay .ta { color:#070 }
100
- .CodeRay .tf { color:#070; font-weight:bold }
101
- .CodeRay .ts { color:#D70; font-weight:bold }
102
- .CodeRay .ty { color:#339; font-weight:bold }
103
- .CodeRay .v { color:#036 }
104
- .CodeRay .xt { color:#444 }
105
-
@@ -1,42 +0,0 @@
1
- img#logo {
2
- float:left;
3
- }
4
-
5
- h1.main {
6
- text-align: center;
7
- }
8
-
9
- table.main {
10
- background: #000;
11
- }
12
-
13
- table.main tr.head {
14
- background: #fee;
15
- width: 100%;
16
- }
17
-
18
- table.main tr.source_container {
19
- display: none;
20
- }
21
-
22
- tr.source_container div {
23
- width: 100%;
24
- overflow: auto;
25
- }
26
-
27
- tr.source_container div table {
28
- background: #ddd;
29
- width: 100%;
30
- }
31
-
32
- tr.source_container div table tr {
33
- text-align:center;
34
- }
35
-
36
- tr.source_container div table tr.source {
37
- text-align:left;
38
- }
39
-
40
- div.source {
41
- background: #fff;
42
- }