hayabusa 0.0.24 → 0.0.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +363 -0
- data/Rakefile +0 -14
- data/bin/hayabusa_fcgi.fcgi +1 -0
- data/bin/hayabusa_fcgi_server.rb +0 -1
- data/lib/hayabusa.rb +124 -118
- data/lib/hayabusa_cgi_tools.rb +4 -2
- data/lib/hayabusa_client_session.rb +3 -1
- data/lib/hayabusa_database.rb +84 -84
- data/lib/hayabusa_datarow.rb +873 -0
- data/lib/hayabusa_ext/mailing.rb +8 -7
- data/lib/hayabusa_ext/web.rb +5 -0
- data/lib/hayabusa_fcgi.rb +13 -4
- data/lib/hayabusa_http_session.rb +2 -0
- data/lib/hayabusa_http_session_contentgroup.rb +7 -1
- data/lib/hayabusa_http_session_request.rb +7 -1
- data/lib/hayabusa_http_session_response.rb +30 -29
- data/lib/hayabusa_objects.rb +1455 -0
- data/lib/hayabusa_revision.rb +347 -0
- data/lib/kernel_ext/magic_methods.rb +4 -0
- data/lib/models/log.rb +27 -27
- data/lib/models/log_access.rb +20 -20
- data/lib/models/log_data.rb +6 -6
- data/lib/models/log_data_link.rb +2 -2
- data/lib/models/log_data_value.rb +5 -5
- data/lib/models/log_link.rb +12 -12
- data/lib/models/session.rb +6 -6
- metadata +125 -126
- data/.document +0 -5
- data/.rspec +0 -1
- data/Gemfile +0 -24
- data/Gemfile.lock +0 -70
- data/README.rdoc +0 -315
- data/VERSION +0 -1
- data/bin/hayabusa_fcgi.fcgi +0 -42
- data/conf/apache2_cgi_rhtml_conf.conf +0 -10
- data/conf/apache2_fcgi_rhtml_conf.conf +0 -22
- data/conf/apache2_hayabusa_conf.conf +0 -15
- data/hayabusa.gemspec +0 -167
- data/pages/benchmark.rhtml +0 -0
- data/pages/benchmark_print.rhtml +0 -14
- data/pages/benchmark_simple.rhtml +0 -3
- data/pages/benchmark_threadded_content.rhtml +0 -21
- data/pages/config_cgi.rb +0 -22
- data/pages/config_fcgi.rb +0 -22
- data/pages/debug_database_connections.rhtml +0 -46
- data/pages/debug_http_sessions.rhtml +0 -40
- data/pages/debug_memory_usage.rhtml +0 -39
- data/pages/error_notfound.rhtml +0 -12
- data/pages/image.png +0 -0
- data/pages/logs_latest.rhtml +0 -57
- data/pages/logs_show.rhtml +0 -32
- data/pages/spec.rhtml +0 -41
- data/pages/spec_exit.rhtml +0 -5
- data/pages/spec_multiple_threads.rhtml +0 -18
- data/pages/spec_sleeper.rhtml +0 -4
- data/pages/spec_test_multiple_clients.rhtml +0 -3
- data/pages/spec_thread_joins.rhtml +0 -29
- data/pages/spec_threadded_content.rhtml +0 -40
- data/pages/spec_vars_get.rhtml +0 -4
- data/pages/spec_vars_header.rhtml +0 -3
- data/pages/spec_vars_post.rhtml +0 -4
- data/pages/spec_vars_post_fileupload.rhtml +0 -19
- data/pages/testpic.jpeg +0 -0
- data/pages/tests.rhtml +0 -14
- data/pages/threadded_content_test.rhtml +0 -23
- data/spec/fcgi_multiple_processes_spec.rb +0 -104
- data/spec/hayabusa_spec.rb +0 -423
- data/spec/spec_helper.rb +0 -12
- data/spec/test_upload.xlsx +0 -0
data/lib/hayabusa_database.rb
CHANGED
@@ -2,118 +2,118 @@ class Hayabusa::Database
|
|
2
2
|
SCHEMA = {
|
3
3
|
"tables" => {
|
4
4
|
"Log" => {
|
5
|
-
|
6
|
-
{
|
7
|
-
{
|
8
|
-
{
|
9
|
-
{
|
10
|
-
{
|
11
|
-
{
|
12
|
-
{
|
13
|
-
{
|
14
|
-
{
|
15
|
-
{
|
16
|
-
{
|
17
|
-
{
|
18
|
-
{
|
19
|
-
{
|
20
|
-
{
|
5
|
+
columns: [
|
6
|
+
{name: "id", type: "bigint", autoincr: true, primarykey: true},
|
7
|
+
{name: "text_value_id", type: "bigint"},
|
8
|
+
{name: "date_saved", type: "datetime"},
|
9
|
+
{name: "get_keys_data_id", type: "bigint"},
|
10
|
+
{name: "get_values_data_id", type: "bigint"},
|
11
|
+
{name: "post_keys_data_id", type: "bigint"},
|
12
|
+
{name: "post_values_data_id", type: "bigint"},
|
13
|
+
{name: "cookie_keys_data_id", type: "bigint"},
|
14
|
+
{name: "cookie_values_data_id", type: "bigint"},
|
15
|
+
{name: "meta_keys_data_id", type: "bigint"},
|
16
|
+
{name: "meta_values_data_id", type: "bigint"},
|
17
|
+
{name: "session_keys_data_id", type: "bigint"},
|
18
|
+
{name: "session_values_data_id", type: "bigint"},
|
19
|
+
{name: "tag_data_id", type: "bigint"},
|
20
|
+
{name: "comment_data_id", type: "bigint"}
|
21
21
|
],
|
22
|
-
|
23
|
-
{
|
24
|
-
{
|
25
|
-
{
|
22
|
+
indexes: [
|
23
|
+
{name: "text_value_id", columns: ["text_value_id"]},
|
24
|
+
{name: "tag_data_id", columns: ["tag_data_id"]},
|
25
|
+
{name: "comment_data_id", columns: ["comment_data_id"]}
|
26
26
|
]
|
27
27
|
},
|
28
28
|
"Log_access" => {
|
29
|
-
|
30
|
-
{
|
31
|
-
{
|
32
|
-
{
|
33
|
-
{
|
34
|
-
{
|
35
|
-
{
|
36
|
-
{
|
37
|
-
{
|
38
|
-
{
|
39
|
-
{
|
40
|
-
{
|
41
|
-
{
|
29
|
+
columns: [
|
30
|
+
{name: "id", type: "bigint", autoincr: true, primarykey: true},
|
31
|
+
{name: "session_id", type: "bigint"},
|
32
|
+
{name: "date_request", type: "datetime"},
|
33
|
+
{name: "ip_data_id", type: "bigint"},
|
34
|
+
{name: "get_keys_data_id", type: "bigint"},
|
35
|
+
{name: "get_values_data_id", type: "bigint"},
|
36
|
+
{name: "post_keys_data_id", type: "bigint"},
|
37
|
+
{name: "post_values_data_id", type: "bigint"},
|
38
|
+
{name: "cookie_keys_data_id", type: "bigint"},
|
39
|
+
{name: "cookie_values_data_id", type: "bigint"},
|
40
|
+
{name: "meta_keys_data_id", type: "bigint"},
|
41
|
+
{name: "meta_values_data_id", type: "bigint"}
|
42
42
|
],
|
43
|
-
|
44
|
-
{
|
45
|
-
{
|
43
|
+
indexes: [
|
44
|
+
{name: "session_id", columns: ["session_id"]},
|
45
|
+
{name: "date_request", columns: ["date_request"]}
|
46
46
|
]
|
47
47
|
},
|
48
48
|
"Log_data" => {
|
49
|
-
|
50
|
-
{
|
51
|
-
{
|
49
|
+
columns: [
|
50
|
+
{name: "id", type: "bigint", autoincr: true, primarykey: true},
|
51
|
+
{name: "id_hash", type: "varchar"}
|
52
52
|
],
|
53
|
-
|
54
|
-
{
|
53
|
+
indexes: [
|
54
|
+
{name: "id_hash", columns: ["id_hash"]}
|
55
55
|
]
|
56
56
|
},
|
57
57
|
"Log_data_link" => {
|
58
|
-
|
59
|
-
{
|
60
|
-
{
|
61
|
-
{
|
62
|
-
{
|
58
|
+
columns: [
|
59
|
+
{name: "id", type: "bigint", autoincr: true, primarykey: true},
|
60
|
+
{name: "no", type: "int"},
|
61
|
+
{name: "data_id", type: "bigint"},
|
62
|
+
{name: "value_id", type: "bigint"}
|
63
63
|
],
|
64
|
-
|
65
|
-
{
|
66
|
-
{
|
64
|
+
indexes: [
|
65
|
+
{name: "data_id", columns: ["data_id"]},
|
66
|
+
{name: "value_id", columns: ["value_id"]}
|
67
67
|
]
|
68
68
|
},
|
69
69
|
"Log_data_value" => {
|
70
|
-
|
71
|
-
{
|
72
|
-
{
|
70
|
+
columns: [
|
71
|
+
{name: "id", type: "bigint", autoincr: true, primarykey: true},
|
72
|
+
{name: "value", type: "text"}
|
73
73
|
]
|
74
74
|
},
|
75
75
|
"Log_link" => {
|
76
|
-
|
77
|
-
{
|
78
|
-
{
|
79
|
-
{
|
80
|
-
{
|
76
|
+
columns: [
|
77
|
+
{name: "id", type: "bigint", autoincr: true, primarykey: true},
|
78
|
+
{name: "log_id", type: "bigint"},
|
79
|
+
{name: "object_class_value_id", type: "bigint"},
|
80
|
+
{name: "object_id", type: "bigint"}
|
81
81
|
],
|
82
|
-
|
83
|
-
{
|
84
|
-
{
|
85
|
-
{
|
86
|
-
{
|
87
|
-
{
|
82
|
+
indexes: [
|
83
|
+
{name: "log_id", columns: ["log_id"]},
|
84
|
+
{name: "object_id", columns: ["object_id"]},
|
85
|
+
{name: "object_class_value_id", columns: ["object_class_value_id"]},
|
86
|
+
{name: "object_lookup", columns: ["object_class_value_id", "object_id"]},
|
87
|
+
{name: "log_lookup", columns: ["object_class_value_id", "object_id", "log_id"]}
|
88
88
|
]
|
89
89
|
},
|
90
90
|
"Session" => {
|
91
|
-
|
92
|
-
{
|
93
|
-
{
|
94
|
-
{
|
95
|
-
{
|
96
|
-
{
|
97
|
-
{
|
98
|
-
{
|
99
|
-
{
|
91
|
+
columns: [
|
92
|
+
{name: "id", type: "bigint", autoincr: true, primarykey: true},
|
93
|
+
{name: "idhash", type: "varchar"},
|
94
|
+
{name: "sess_data", type: "text"},
|
95
|
+
{name: "date_added", type: "datetime"},
|
96
|
+
{name: "date_lastused", type: "datetime", on_created: proc{|d| d["db"].query("UPDATE Session SET date_lastused = '#{Datet.new.dbstr}'")}},
|
97
|
+
{name: "ip", type: "varchar", maxlength: 15},
|
98
|
+
{name: "user_agent", type: "text"},
|
99
|
+
{name: "remember", type: "enum", maxlength: "'0','1'", default: 0, comment: "If the session should be remembered or not."}
|
100
100
|
],
|
101
|
-
|
102
|
-
{
|
103
|
-
{
|
101
|
+
indexes: [
|
102
|
+
{name: "date_added", columns: ["date_added"]},
|
103
|
+
{name: "idhash", columns: ["idhash"]}
|
104
104
|
]
|
105
105
|
},
|
106
106
|
"Translation" => {
|
107
|
-
|
108
|
-
{
|
109
|
-
{
|
110
|
-
{
|
111
|
-
{
|
112
|
-
{
|
113
|
-
{
|
107
|
+
columns: [
|
108
|
+
{name: "id", type: "bigint", autoincr: true, primarykey: true},
|
109
|
+
{name: "object_class", type: "varchar", maxlength: 50},
|
110
|
+
{name: "object_id", type: "bigint"},
|
111
|
+
{name: "key", type: "varchar", maxlength: 50},
|
112
|
+
{name: "locale", type: "varchar", maxlength: 5},
|
113
|
+
{name: "value", type: "text"}
|
114
114
|
],
|
115
|
-
|
116
|
-
{
|
115
|
+
indexes: [
|
116
|
+
{name: "lookup", columns: ["object_class", "object_id", "key", "locale"]}
|
117
117
|
]
|
118
118
|
}
|
119
119
|
}
|