Capcode 0.9.8 → 0.9.9
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +4 -0
- data/doc/rdoc/classes/Capcode.html +468 -440
- data/doc/rdoc/classes/Capcode/Configuration.html +29 -28
- data/doc/rdoc/classes/Capcode/Helpers.html +139 -139
- data/doc/rdoc/classes/Capcode/StaticFiles.html +199 -0
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/README_rdoc.html +12 -1
- data/doc/rdoc/files/lib/capcode/configuration_rb.html +1 -1
- data/doc/rdoc/files/lib/capcode_rb.html +3 -2
- data/doc/rdoc/fr_class_index.html +1 -0
- data/doc/rdoc/fr_method_index.html +6 -4
- data/examples/static.rb +26 -0
- data/examples/static/bye.html +6 -0
- data/examples/static/static-index.html +6 -0
- data/lib/capcode.rb +103 -48
- data/lib/capcode.rbSAVE +881 -0
- data/lib/capcode/configuration.rb +1 -1
- data/lib/capcode/core_ext.rb +8 -0
- data/lib/capcode/version.rb +1 -1
- metadata +11 -7
- data/examples/rest.log +0 -70
@@ -36,7 +36,7 @@ module Capcode
|
|
36
36
|
# Options :
|
37
37
|
# * <tt>:port</tt> = Listen port (default: 3000)
|
38
38
|
# * <tt>:host</tt> = Listen host (default: 0.0.0.0)
|
39
|
-
# * <tt>:server</tt> = Server type (webrick, mongrel, thin, unicorn or
|
39
|
+
# * <tt>:server</tt> = Server type (webrick, mongrel, thin, unicorn, rainbow or control_tower)
|
40
40
|
# * <tt>:log</tt> = Output logfile (default: STDOUT)
|
41
41
|
# * <tt>:session</tt> = Session parameters. See Rack::Session for more informations
|
42
42
|
# * <tt>:pid</tt> = PID file (default: $0.pid)
|
data/lib/capcode/core_ext.rb
CHANGED
data/lib/capcode/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Capcode
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 41
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 9
|
10
|
+
version: 0.9.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Gr\xC3\xA9goire Lejeune"
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-01-17 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -71,6 +71,7 @@ files:
|
|
71
71
|
- doc/rdoc/classes/Capcode/Helpers.html
|
72
72
|
- doc/rdoc/classes/Capcode/HTTPError.html
|
73
73
|
- doc/rdoc/classes/Capcode/Resource.html
|
74
|
+
- doc/rdoc/classes/Capcode/StaticFiles.html
|
74
75
|
- doc/rdoc/classes/Capcode/Views.html
|
75
76
|
- doc/rdoc/classes/Capcode.html
|
76
77
|
- doc/rdoc/created.rid
|
@@ -97,6 +98,7 @@ files:
|
|
97
98
|
- lib/capcode/render/text.rb
|
98
99
|
- lib/capcode/version.rb
|
99
100
|
- lib/capcode.rb
|
101
|
+
- lib/capcode.rbSAVE
|
100
102
|
- examples/auth-basic.rb
|
101
103
|
- examples/auth-digest.rb
|
102
104
|
- examples/erb/cf.rhtml
|
@@ -112,7 +114,6 @@ files:
|
|
112
114
|
- examples/render-image.rb
|
113
115
|
- examples/render-text.rb
|
114
116
|
- examples/rest-run.rb
|
115
|
-
- examples/rest.log
|
116
117
|
- examples/rest.rb
|
117
118
|
- examples/rest.ru
|
118
119
|
- examples/route.rb
|
@@ -125,6 +126,9 @@ files:
|
|
125
126
|
- examples/soapbox/soapbox-client.rb
|
126
127
|
- examples/soapbox/soapbox.rb
|
127
128
|
- examples/soapbox/views/index.rhtml
|
129
|
+
- examples/static/bye.html
|
130
|
+
- examples/static/static-index.html
|
131
|
+
- examples/static.rb
|
128
132
|
- examples/upload.rb
|
129
133
|
has_rdoc: true
|
130
134
|
homepage: http://algorithmique.net
|
@@ -193,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
197
|
requirements: []
|
194
198
|
|
195
199
|
rubyforge_project: capcode
|
196
|
-
rubygems_version: 1.
|
200
|
+
rubygems_version: 1.4.2
|
197
201
|
signing_key:
|
198
202
|
specification_version: 3
|
199
203
|
summary: Capcode is a web microframework
|
data/examples/rest.log
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
# Logfile created on Sun Jun 13 20:42:18 +0200 2010 by logger.rb/22285
|
2
|
-
127.0.0.1 - - [13/Jun/2010 20:42:24] "GET / HTTP/1.1" 200 586 0.0173
|
3
|
-
GET...
|
4
|
-
127.0.0.1 - - [13/Jun/2010 20:42:27] "GET /action?data=1 HTTP/1.1" 200 619 0.0082
|
5
|
-
POST...
|
6
|
-
127.0.0.1 - - [13/Jun/2010 20:42:30] "POST /action HTTP/1.1" 200 620 0.0080
|
7
|
-
DELETE...
|
8
|
-
127.0.0.1 - - [13/Jun/2010 20:42:33] "POST /action HTTP/1.1" 200 622 0.0078
|
9
|
-
PUT...
|
10
|
-
127.0.0.1 - - [13/Jun/2010 20:42:37] "POST /action HTTP/1.1" 200 619 0.0066
|
11
|
-
127.0.0.1 - - [13/Jun/2010 20:43:33] "GET / HTTP/1.1" 200 586 0.0165
|
12
|
-
GET...
|
13
|
-
127.0.0.1 - - [13/Jun/2010 20:43:37] "GET /action?data=A HTTP/1.1" 200 619 0.0075
|
14
|
-
POST...
|
15
|
-
127.0.0.1 - - [13/Jun/2010 20:43:40] "POST /action HTTP/1.1" 200 620 0.0081
|
16
|
-
DELETE...
|
17
|
-
127.0.0.1 - - [13/Jun/2010 20:43:42] "POST /action HTTP/1.1" 200 622 0.0073
|
18
|
-
PUT...
|
19
|
-
127.0.0.1 - - [13/Jun/2010 20:43:43] "POST /action HTTP/1.1" 200 619 0.0072
|
20
|
-
127.0.0.1 - - [13/Jun/2010 20:48:07] "GET / HTTP/1.1" 200 586 0.0173
|
21
|
-
GET...
|
22
|
-
127.0.0.1 - - [13/Jun/2010 20:48:13] "GET /action?data=a HTTP/1.1" 200 619 0.0092
|
23
|
-
127.0.0.1 - - [13/Jun/2010 20:48:43] "GET / HTTP/1.1" 200 586 0.0157
|
24
|
-
GET...
|
25
|
-
127.0.0.1 - - [13/Jun/2010 20:48:46] "GET /action?data=z HTTP/1.1" 200 619 0.0072
|
26
|
-
GET...
|
27
|
-
127.0.0.1 - - [13/Jun/2010 20:49:01] "GET /action?data=zz HTTP/1.1" 200 620 0.0064
|
28
|
-
127.0.0.1 - - [20/Jun/2010 12:53:42] "GET / HTTP/1.1" 200 586 0.0804
|
29
|
-
127.0.0.1 - - [20/Jun/2010 12:53:43] "GET /favicon.ico HTTP/1.1" 200 586 0.0068
|
30
|
-
GET...
|
31
|
-
127.0.0.1 - - [20/Jun/2010 12:53:46] "GET /action?data=pipo HTTP/1.1" 200 622 0.0080
|
32
|
-
127.0.0.1 - - [20/Jun/2010 13:03:30] "GET / HTTP/1.1" 200 586 0.0208
|
33
|
-
127.0.0.1 - - [20/Jun/2010 13:03:32] "GET / HTTP/1.1" 200 586 0.0058
|
34
|
-
127.0.0.1 - - [20/Jun/2010 13:03:32] "GET /favicon.ico HTTP/1.1" 200 586 0.0652
|
35
|
-
GET...
|
36
|
-
127.0.0.1 - - [20/Jun/2010 13:03:36] "GET /action?data=pipo HTTP/1.1" 200 622 0.0076
|
37
|
-
POST...
|
38
|
-
127.0.0.1 - - [20/Jun/2010 13:03:39] "POST /action HTTP/1.1" 200 623 0.0077
|
39
|
-
DELETE...
|
40
|
-
127.0.0.1 - - [20/Jun/2010 13:03:43] "POST /action HTTP/1.1" 200 624 0.0071
|
41
|
-
PUT...
|
42
|
-
127.0.0.1 - - [20/Jun/2010 13:03:46] "POST /action HTTP/1.1" 200 625 0.0072
|
43
|
-
127.0.0.1 - - [20/Jun/2010 13:05:02] "GET / HTTP/1.1" 200 586 0.0328
|
44
|
-
GET...
|
45
|
-
127.0.0.1 - - [20/Jun/2010 13:05:05] "GET /action?data=pipo HTTP/1.1" 200 622 0.0079
|
46
|
-
POST...
|
47
|
-
127.0.0.1 - - [20/Jun/2010 13:05:08] "POST /action HTTP/1.1" 200 623 0.0093
|
48
|
-
DELETE...
|
49
|
-
127.0.0.1 - - [20/Jun/2010 13:05:11] "POST /action HTTP/1.1" 200 624 0.0096
|
50
|
-
PUT...
|
51
|
-
127.0.0.1 - - [20/Jun/2010 13:05:14] "POST /action HTTP/1.1" 200 625 0.0092
|
52
|
-
127.0.0.1 - - [20/Jun/2010 13:13:15] "GET / HTTP/1.1" 200 586 0.0290
|
53
|
-
GET...
|
54
|
-
127.0.0.1 - - [20/Jun/2010 13:13:19] "GET /action?data=A HTTP/1.1" 200 619 0.0081
|
55
|
-
POST...
|
56
|
-
127.0.0.1 - - [20/Jun/2010 13:13:22] "POST /action HTTP/1.1" 200 620 0.0101
|
57
|
-
DELETE...
|
58
|
-
127.0.0.1 - - [20/Jun/2010 13:13:23] "POST /action HTTP/1.1" 200 622 0.0111
|
59
|
-
PUT...
|
60
|
-
127.0.0.1 - - [20/Jun/2010 13:13:26] "POST /action HTTP/1.1" 200 619 0.2896
|
61
|
-
127.0.0.1 - - [02/Sep/2010 14:43:18] "GET / HTTP/1.1" 200 586 0.1292
|
62
|
-
127.0.0.1 - - [02/Sep/2010 14:43:18] "GET /favicon.ico HTTP/1.1" 200 586 0.0082
|
63
|
-
GET...
|
64
|
-
127.0.0.1 - - [02/Sep/2010 14:43:21] "GET /action?data=get HTTP/1.1" 200 621 0.0068
|
65
|
-
POST...
|
66
|
-
127.0.0.1 - - [02/Sep/2010 14:43:24] "POST /action HTTP/1.1" 200 623 0.0066
|
67
|
-
DELETE...
|
68
|
-
127.0.0.1 - - [02/Sep/2010 14:43:27] "POST /action HTTP/1.1" 200 625 0.0070
|
69
|
-
PUT...
|
70
|
-
127.0.0.1 - - [02/Sep/2010 14:43:31] "POST /action HTTP/1.1" 200 621 0.0800
|