swiftiply 0.5.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.
- data/README +126 -0
- data/bin/mongrel_rails +254 -0
- data/bin/swiftiply +136 -0
- data/bin/swiftiply_mongrel_rails +54 -0
- data/external/package.rb +672 -0
- data/external/test_support.rb +58 -0
- data/setup.rb +40 -0
- data/src/ramaze/adapter/evented_mongrel.rb +2 -0
- data/src/ramaze/adapter/swiftiplied_mongrel.rb +2 -0
- data/src/swiftcore/Swiftiply.rb +444 -0
- data/src/swiftcore/Swiftiply.rb.orig +390 -0
- data/src/swiftcore/evented_mongrel.rb +182 -0
- data/src/swiftcore/swiftiplied_mongrel.rb +212 -0
- data/swiftiply.gemspec +41 -0
- data/test/rails/README +182 -0
- data/test/rails/Rakefile +10 -0
- data/test/rails/app/controllers/application.rb +6 -0
- data/test/rails/app/controllers/tests_controller.rb +15 -0
- data/test/rails/app/helpers/application_helper.rb +3 -0
- data/test/rails/config/boot.rb +45 -0
- data/test/rails/config/database.yml +36 -0
- data/test/rails/config/environment.rb +60 -0
- data/test/rails/config/environments/development.rb +21 -0
- data/test/rails/config/environments/production.rb +18 -0
- data/test/rails/config/environments/production_no_caching.rb +18 -0
- data/test/rails/config/environments/test.rb +19 -0
- data/test/rails/config/routes.rb +23 -0
- data/test/rails/doc/README_FOR_APP +2 -0
- data/test/rails/observe_ram.rb +10 -0
- data/test/rails/public/404.html +30 -0
- data/test/rails/public/500.html +30 -0
- data/test/rails/public/dispatch.cgi +10 -0
- data/test/rails/public/dispatch.fcgi +24 -0
- data/test/rails/public/dispatch.rb +10 -0
- data/test/rails/public/favicon.ico +0 -0
- data/test/rails/public/images/rails.png +0 -0
- data/test/rails/public/index.html +277 -0
- data/test/rails/public/javascripts/application.js +2 -0
- data/test/rails/public/javascripts/controls.js +833 -0
- data/test/rails/public/javascripts/dragdrop.js +942 -0
- data/test/rails/public/javascripts/effects.js +1088 -0
- data/test/rails/public/javascripts/prototype.js +2515 -0
- data/test/rails/public/robots.txt +1 -0
- data/test/rails/script/about +3 -0
- data/test/rails/script/breakpointer +3 -0
- data/test/rails/script/console +3 -0
- data/test/rails/script/destroy +3 -0
- data/test/rails/script/generate +3 -0
- data/test/rails/script/performance/benchmarker +3 -0
- data/test/rails/script/performance/profiler +3 -0
- data/test/rails/script/plugin +3 -0
- data/test/rails/script/process/inspector +3 -0
- data/test/rails/script/process/reaper +3 -0
- data/test/rails/script/process/spawner +3 -0
- data/test/rails/script/runner +3 -0
- data/test/rails/script/server +3 -0
- data/test/rails/test/test_helper.rb +28 -0
- data/test/ramaze/conf/benchmark.yaml +35 -0
- data/test/ramaze/conf/debug.yaml +34 -0
- data/test/ramaze/conf/live.yaml +33 -0
- data/test/ramaze/conf/silent.yaml +31 -0
- data/test/ramaze/conf/stage.yaml +33 -0
- data/test/ramaze/main.rb +18 -0
- data/test/ramaze/public/404.jpg +0 -0
- data/test/ramaze/public/css/coderay.css +105 -0
- data/test/ramaze/public/css/ramaze_error.css +42 -0
- data/test/ramaze/public/error.zmr +77 -0
- data/test/ramaze/public/favicon.ico +0 -0
- data/test/ramaze/public/js/jquery.js +1923 -0
- data/test/ramaze/public/ramaze.png +0 -0
- data/test/ramaze/src/controller/main.rb +8 -0
- data/test/ramaze/src/element/page.rb +17 -0
- data/test/ramaze/src/model.rb +6 -0
- data/test/ramaze/template/index.xhtml +6 -0
- data/test/ramaze/yaml.db +0 -0
- metadata +189 -0
@@ -0,0 +1 @@
|
|
1
|
+
# See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
|
@@ -0,0 +1,28 @@
|
|
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
|
@@ -0,0 +1,35 @@
|
|
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
|
@@ -0,0 +1,34 @@
|
|
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
|
@@ -0,0 +1,33 @@
|
|
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
|
@@ -0,0 +1,31 @@
|
|
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: {}
|
@@ -0,0 +1,33 @@
|
|
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
ADDED
@@ -0,0 +1,18 @@
|
|
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
|
@@ -0,0 +1,105 @@
|
|
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
|
+
|
@@ -0,0 +1,42 @@
|
|
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
|
+
}
|