strelka 0.0.1.pre129 → 0.0.1.pre148
Sign up to get free protection for your applications and to get access to all the features.
- data/IDEAS.rdoc +26 -32
- data/Manifest.txt +27 -12
- data/README.rdoc +29 -33
- data/Rakefile +2 -1
- data/bin/leash +2 -1
- data/contrib/hoetemplate/README.rdoc.erb +18 -0
- data/contrib/hoetemplate/data/{file_name → project}/apps/file_name_app +0 -0
- data/contrib/hoetemplate/data/{file_name → project}/templates/layout.tmpl.erb +0 -0
- data/contrib/hoetemplate/data/{file_name → project}/templates/top.tmpl.erb +0 -0
- data/examples/config.yml +3 -0
- data/examples/gen-config.rb +48 -0
- data/examples/sessions-demo.rb +43 -0
- data/lib/strelka/app/errors.rb +59 -17
- data/lib/strelka/app/filters.rb +3 -1
- data/lib/strelka/app/negotiation.rb +5 -3
- data/lib/strelka/app/parameters.rb +33 -31
- data/lib/strelka/app/plugins.rb +14 -8
- data/lib/strelka/app/restresources.rb +3 -1
- data/lib/strelka/app/routing.rb +9 -7
- data/lib/strelka/app/sessions.rb +175 -0
- data/lib/strelka/app/templating.rb +6 -3
- data/lib/strelka/app.rb +19 -11
- data/lib/strelka/behavior/plugin.rb +4 -2
- data/lib/strelka/constants.rb +9 -0
- data/lib/strelka/cookie.rb +357 -0
- data/lib/strelka/cookieset.rb +117 -0
- data/lib/strelka/httprequest/acceptparams.rb +12 -10
- data/lib/strelka/httprequest/negotiation.rb +4 -2
- data/lib/strelka/httprequest/session.rb +71 -0
- data/lib/strelka/httprequest.rb +19 -7
- data/lib/strelka/httpresponse/negotiation.rb +17 -15
- data/lib/strelka/httpresponse/session.rb +101 -0
- data/lib/strelka/httpresponse.rb +26 -4
- data/lib/strelka/logging.rb +3 -1
- data/lib/strelka/mixins.rb +174 -2
- data/lib/strelka/{app/paramvalidator.rb → paramvalidator.rb} +25 -22
- data/lib/strelka/{app/defaultrouter.rb → router/default.rb} +6 -4
- data/lib/strelka/{app/exclusiverouter.rb → router/exclusive.rb} +6 -4
- data/lib/strelka/{app/router.rb → router.rb} +9 -7
- data/lib/strelka/session/default.rb +209 -0
- data/lib/strelka/session.rb +178 -0
- data/lib/strelka.rb +6 -4
- data/spec/lib/constants.rb +3 -1
- data/spec/lib/helpers.rb +7 -0
- data/spec/strelka/app/errors_spec.rb +32 -52
- data/spec/strelka/app/filters_spec.rb +3 -1
- data/spec/strelka/app/negotiation_spec.rb +3 -1
- data/spec/strelka/app/parameters_spec.rb +5 -3
- data/spec/strelka/app/plugins_spec.rb +5 -3
- data/spec/strelka/app/restresources_spec.rb +3 -1
- data/spec/strelka/app/routing_spec.rb +6 -4
- data/spec/strelka/app/sessions_spec.rb +109 -0
- data/spec/strelka/app/templating_spec.rb +3 -1
- data/spec/strelka/app_spec.rb +11 -2
- data/spec/strelka/cookie_spec.rb +194 -0
- data/spec/strelka/cookieset_spec.rb +159 -0
- data/spec/strelka/exceptions_spec.rb +3 -1
- data/spec/strelka/httprequest/acceptparams_spec.rb +3 -1
- data/spec/strelka/httprequest/negotiation_spec.rb +3 -1
- data/spec/strelka/httprequest/session_spec.rb +43 -0
- data/spec/strelka/httprequest_spec.rb +28 -1
- data/spec/strelka/httpresponse/negotiation_spec.rb +3 -3
- data/spec/strelka/httpresponse_spec.rb +13 -0
- data/spec/strelka/logging_spec.rb +3 -1
- data/spec/strelka/mixins_spec.rb +125 -1
- data/spec/strelka/{app/paramvalidator_spec.rb → paramvalidator_spec.rb} +4 -4
- data/spec/strelka/{app/defaultrouter_spec.rb → router/default_spec.rb} +6 -4
- data/spec/strelka/{app/exclusiverouter_spec.rb → router/exclusive_spec.rb} +6 -4
- data/spec/strelka/{app/router_spec.rb → router_spec.rb} +9 -7
- data/spec/strelka/session/default_spec.rb +210 -0
- data/spec/strelka/session_spec.rb +101 -0
- data.tar.gz.sig +1 -1
- metadata +64 -47
- metadata.gz.sig +0 -0
- data/contrib/hoetemplate/.autotest.erb +0 -23
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strelka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.pre148
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -36,22 +36,22 @@ cert_chain:
|
|
36
36
|
YUhDS0xaZFNLai9SSHVUT3QrZ2JsUmV4OEZBaDhOZUEKY21saFhlNDZwWk5K
|
37
37
|
Z1dLYnhaYWg4NWpJang5NWhSOHZPSStOQU01aUg5a09xSzEzRHJ4YWNUS1Bo
|
38
38
|
cWo1UGp3RgotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
|
39
|
-
date: 2012-03-
|
39
|
+
date: 2012-03-19 00:00:00.000000000 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: mongrel2
|
43
|
-
requirement: &
|
43
|
+
requirement: &70260997346740 !ruby/object:Gem::Requirement
|
44
44
|
none: false
|
45
45
|
requirements:
|
46
46
|
- - ~>
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '0.
|
48
|
+
version: '0.16'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
|
-
version_requirements: *
|
51
|
+
version_requirements: *70260997346740
|
52
52
|
- !ruby/object:Gem::Dependency
|
53
53
|
name: configurability
|
54
|
-
requirement: &
|
54
|
+
requirement: &70260997346100 !ruby/object:Gem::Requirement
|
55
55
|
none: false
|
56
56
|
requirements:
|
57
57
|
- - ~>
|
@@ -59,10 +59,10 @@ dependencies:
|
|
59
59
|
version: '1.0'
|
60
60
|
type: :runtime
|
61
61
|
prerelease: false
|
62
|
-
version_requirements: *
|
62
|
+
version_requirements: *70260997346100
|
63
63
|
- !ruby/object:Gem::Dependency
|
64
64
|
name: inversion
|
65
|
-
requirement: &
|
65
|
+
requirement: &70260997345360 !ruby/object:Gem::Requirement
|
66
66
|
none: false
|
67
67
|
requirements:
|
68
68
|
- - ~>
|
@@ -70,10 +70,10 @@ dependencies:
|
|
70
70
|
version: '0.2'
|
71
71
|
type: :runtime
|
72
72
|
prerelease: false
|
73
|
-
version_requirements: *
|
73
|
+
version_requirements: *70260997345360
|
74
74
|
- !ruby/object:Gem::Dependency
|
75
75
|
name: trollop
|
76
|
-
requirement: &
|
76
|
+
requirement: &70260997344640 !ruby/object:Gem::Requirement
|
77
77
|
none: false
|
78
78
|
requirements:
|
79
79
|
- - ~>
|
@@ -81,10 +81,10 @@ dependencies:
|
|
81
81
|
version: '1.16'
|
82
82
|
type: :runtime
|
83
83
|
prerelease: false
|
84
|
-
version_requirements: *
|
84
|
+
version_requirements: *70260997344640
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
86
|
name: highline
|
87
|
-
requirement: &
|
87
|
+
requirement: &70260997360320 !ruby/object:Gem::Requirement
|
88
88
|
none: false
|
89
89
|
requirements:
|
90
90
|
- - ~>
|
@@ -92,10 +92,10 @@ dependencies:
|
|
92
92
|
version: '1.6'
|
93
93
|
type: :runtime
|
94
94
|
prerelease: false
|
95
|
-
version_requirements: *
|
95
|
+
version_requirements: *70260997360320
|
96
96
|
- !ruby/object:Gem::Dependency
|
97
97
|
name: formvalidator
|
98
|
-
requirement: &
|
98
|
+
requirement: &70260997359480 !ruby/object:Gem::Requirement
|
99
99
|
none: false
|
100
100
|
requirements:
|
101
101
|
- - ~>
|
@@ -103,10 +103,10 @@ dependencies:
|
|
103
103
|
version: 0.1.5
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
|
-
version_requirements: *
|
106
|
+
version_requirements: *70260997359480
|
107
107
|
- !ruby/object:Gem::Dependency
|
108
108
|
name: uuidtools
|
109
|
-
requirement: &
|
109
|
+
requirement: &70260997358900 !ruby/object:Gem::Requirement
|
110
110
|
none: false
|
111
111
|
requirements:
|
112
112
|
- - ~>
|
@@ -114,10 +114,10 @@ dependencies:
|
|
114
114
|
version: 2.1.2
|
115
115
|
type: :runtime
|
116
116
|
prerelease: false
|
117
|
-
version_requirements: *
|
117
|
+
version_requirements: *70260997358900
|
118
118
|
- !ruby/object:Gem::Dependency
|
119
119
|
name: sysexits
|
120
|
-
requirement: &
|
120
|
+
requirement: &70260997358420 !ruby/object:Gem::Requirement
|
121
121
|
none: false
|
122
122
|
requirements:
|
123
123
|
- - ~>
|
@@ -125,10 +125,10 @@ dependencies:
|
|
125
125
|
version: '1.0'
|
126
126
|
type: :runtime
|
127
127
|
prerelease: false
|
128
|
-
version_requirements: *
|
128
|
+
version_requirements: *70260997358420
|
129
129
|
- !ruby/object:Gem::Dependency
|
130
130
|
name: pluginfactory
|
131
|
-
requirement: &
|
131
|
+
requirement: &70260997357840 !ruby/object:Gem::Requirement
|
132
132
|
none: false
|
133
133
|
requirements:
|
134
134
|
- - ~>
|
@@ -136,10 +136,10 @@ dependencies:
|
|
136
136
|
version: '1.0'
|
137
137
|
type: :runtime
|
138
138
|
prerelease: false
|
139
|
-
version_requirements: *
|
139
|
+
version_requirements: *70260997357840
|
140
140
|
- !ruby/object:Gem::Dependency
|
141
141
|
name: hoe-mercurial
|
142
|
-
requirement: &
|
142
|
+
requirement: &70260997357360 !ruby/object:Gem::Requirement
|
143
143
|
none: false
|
144
144
|
requirements:
|
145
145
|
- - ~>
|
@@ -147,10 +147,10 @@ dependencies:
|
|
147
147
|
version: 1.3.1
|
148
148
|
type: :development
|
149
149
|
prerelease: false
|
150
|
-
version_requirements: *
|
150
|
+
version_requirements: *70260997357360
|
151
151
|
- !ruby/object:Gem::Dependency
|
152
152
|
name: hoe-manualgen
|
153
|
-
requirement: &
|
153
|
+
requirement: &70260997356520 !ruby/object:Gem::Requirement
|
154
154
|
none: false
|
155
155
|
requirements:
|
156
156
|
- - ~>
|
@@ -158,10 +158,10 @@ dependencies:
|
|
158
158
|
version: 0.2.0
|
159
159
|
type: :development
|
160
160
|
prerelease: false
|
161
|
-
version_requirements: *
|
161
|
+
version_requirements: *70260997356520
|
162
162
|
- !ruby/object:Gem::Dependency
|
163
163
|
name: hoe-highline
|
164
|
-
requirement: &
|
164
|
+
requirement: &70260997354460 !ruby/object:Gem::Requirement
|
165
165
|
none: false
|
166
166
|
requirements:
|
167
167
|
- - ~>
|
@@ -169,10 +169,10 @@ dependencies:
|
|
169
169
|
version: 0.0.1
|
170
170
|
type: :development
|
171
171
|
prerelease: false
|
172
|
-
version_requirements: *
|
172
|
+
version_requirements: *70260997354460
|
173
173
|
- !ruby/object:Gem::Dependency
|
174
174
|
name: rspec
|
175
|
-
requirement: &
|
175
|
+
requirement: &70260997353200 !ruby/object:Gem::Requirement
|
176
176
|
none: false
|
177
177
|
requirements:
|
178
178
|
- - ~>
|
@@ -180,10 +180,10 @@ dependencies:
|
|
180
180
|
version: '2.6'
|
181
181
|
type: :development
|
182
182
|
prerelease: false
|
183
|
-
version_requirements: *
|
183
|
+
version_requirements: *70260997353200
|
184
184
|
- !ruby/object:Gem::Dependency
|
185
185
|
name: rdoc
|
186
|
-
requirement: &
|
186
|
+
requirement: &70260997368560 !ruby/object:Gem::Requirement
|
187
187
|
none: false
|
188
188
|
requirements:
|
189
189
|
- - ~>
|
@@ -191,10 +191,10 @@ dependencies:
|
|
191
191
|
version: '3.10'
|
192
192
|
type: :development
|
193
193
|
prerelease: false
|
194
|
-
version_requirements: *
|
194
|
+
version_requirements: *70260997368560
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: hoe
|
197
|
-
requirement: &
|
197
|
+
requirement: &70260997366420 !ruby/object:Gem::Requirement
|
198
198
|
none: false
|
199
199
|
requirements:
|
200
200
|
- - ~>
|
@@ -202,7 +202,7 @@ dependencies:
|
|
202
202
|
version: '2.13'
|
203
203
|
type: :development
|
204
204
|
prerelease: false
|
205
|
-
version_requirements: *
|
205
|
+
version_requirements: *70260997366420
|
206
206
|
description: ! 'Strelka is a framework for creating and deploying Mongrel2 web applications
|
207
207
|
|
208
208
|
in Ruby, and for managing a Mongrel2 cluster.
|
@@ -229,75 +229,92 @@ files:
|
|
229
229
|
- README.rdoc
|
230
230
|
- Rakefile
|
231
231
|
- bin/leash
|
232
|
-
- contrib/hoetemplate/.autotest.erb
|
233
232
|
- contrib/hoetemplate/History.rdoc.erb
|
234
233
|
- contrib/hoetemplate/Manifest.txt.erb
|
235
234
|
- contrib/hoetemplate/README.rdoc.erb
|
236
235
|
- contrib/hoetemplate/Rakefile.erb
|
237
|
-
- contrib/hoetemplate/data/
|
238
|
-
- contrib/hoetemplate/data/
|
239
|
-
- contrib/hoetemplate/data/
|
236
|
+
- contrib/hoetemplate/data/project/apps/file_name_app
|
237
|
+
- contrib/hoetemplate/data/project/templates/layout.tmpl.erb
|
238
|
+
- contrib/hoetemplate/data/project/templates/top.tmpl.erb
|
240
239
|
- contrib/hoetemplate/lib/file_name.rb.erb
|
241
240
|
- contrib/hoetemplate/spec/file_name_spec.rb.erb
|
242
241
|
- data/strelka/apps/hello-world
|
242
|
+
- examples/config.yml
|
243
|
+
- examples/gen-config.rb
|
244
|
+
- examples/sessions-demo.rb
|
243
245
|
- lib/strelka.rb
|
244
246
|
- lib/strelka/app.rb
|
245
|
-
- lib/strelka/app/defaultrouter.rb
|
246
247
|
- lib/strelka/app/errors.rb
|
247
|
-
- lib/strelka/app/exclusiverouter.rb
|
248
248
|
- lib/strelka/app/filters.rb
|
249
249
|
- lib/strelka/app/negotiation.rb
|
250
250
|
- lib/strelka/app/parameters.rb
|
251
|
-
- lib/strelka/app/paramvalidator.rb
|
252
251
|
- lib/strelka/app/plugins.rb
|
253
252
|
- lib/strelka/app/restresources.rb
|
254
|
-
- lib/strelka/app/router.rb
|
255
253
|
- lib/strelka/app/routing.rb
|
254
|
+
- lib/strelka/app/sessions.rb
|
256
255
|
- lib/strelka/app/templating.rb
|
257
256
|
- lib/strelka/behavior/plugin.rb
|
258
257
|
- lib/strelka/constants.rb
|
258
|
+
- lib/strelka/cookie.rb
|
259
|
+
- lib/strelka/cookieset.rb
|
259
260
|
- lib/strelka/exceptions.rb
|
260
261
|
- lib/strelka/httprequest.rb
|
261
262
|
- lib/strelka/httprequest/acceptparams.rb
|
262
263
|
- lib/strelka/httprequest/negotiation.rb
|
264
|
+
- lib/strelka/httprequest/session.rb
|
263
265
|
- lib/strelka/httpresponse.rb
|
264
266
|
- lib/strelka/httpresponse/negotiation.rb
|
267
|
+
- lib/strelka/httpresponse/session.rb
|
265
268
|
- lib/strelka/logging.rb
|
266
269
|
- lib/strelka/mixins.rb
|
270
|
+
- lib/strelka/paramvalidator.rb
|
271
|
+
- lib/strelka/router.rb
|
272
|
+
- lib/strelka/router/default.rb
|
273
|
+
- lib/strelka/router/exclusive.rb
|
274
|
+
- lib/strelka/session.rb
|
275
|
+
- lib/strelka/session/default.rb
|
267
276
|
- spec/data/error.tmpl
|
268
277
|
- spec/data/layout.tmpl
|
269
278
|
- spec/data/main.tmpl
|
270
279
|
- spec/lib/constants.rb
|
271
280
|
- spec/lib/helpers.rb
|
272
|
-
- spec/strelka/app/defaultrouter_spec.rb
|
273
281
|
- spec/strelka/app/errors_spec.rb
|
274
|
-
- spec/strelka/app/exclusiverouter_spec.rb
|
275
282
|
- spec/strelka/app/filters_spec.rb
|
276
283
|
- spec/strelka/app/negotiation_spec.rb
|
277
284
|
- spec/strelka/app/parameters_spec.rb
|
278
|
-
- spec/strelka/app/paramvalidator_spec.rb
|
279
285
|
- spec/strelka/app/plugins_spec.rb
|
280
286
|
- spec/strelka/app/restresources_spec.rb
|
281
|
-
- spec/strelka/app/router_spec.rb
|
282
287
|
- spec/strelka/app/routing_spec.rb
|
288
|
+
- spec/strelka/app/sessions_spec.rb
|
283
289
|
- spec/strelka/app/templating_spec.rb
|
284
290
|
- spec/strelka/app_spec.rb
|
291
|
+
- spec/strelka/cookie_spec.rb
|
292
|
+
- spec/strelka/cookieset_spec.rb
|
285
293
|
- spec/strelka/exceptions_spec.rb
|
286
294
|
- spec/strelka/httprequest/acceptparams_spec.rb
|
287
295
|
- spec/strelka/httprequest/negotiation_spec.rb
|
296
|
+
- spec/strelka/httprequest/session_spec.rb
|
288
297
|
- spec/strelka/httprequest_spec.rb
|
289
298
|
- spec/strelka/httpresponse/negotiation_spec.rb
|
290
299
|
- spec/strelka/httpresponse_spec.rb
|
291
300
|
- spec/strelka/logging_spec.rb
|
292
301
|
- spec/strelka/mixins_spec.rb
|
302
|
+
- spec/strelka/paramvalidator_spec.rb
|
303
|
+
- spec/strelka/router/default_spec.rb
|
304
|
+
- spec/strelka/router/exclusive_spec.rb
|
305
|
+
- spec/strelka/router_spec.rb
|
306
|
+
- spec/strelka/session/default_spec.rb
|
307
|
+
- spec/strelka/session_spec.rb
|
293
308
|
- spec/strelka_spec.rb
|
294
309
|
homepage: http://deveiate.org/projects/Strelka
|
295
310
|
licenses:
|
296
311
|
- BSD
|
297
312
|
post_install_message:
|
298
313
|
rdoc_options:
|
299
|
-
-
|
300
|
-
-
|
314
|
+
- -f
|
315
|
+
- fivefish
|
316
|
+
- -t
|
317
|
+
- Strelka Web Application Toolkit
|
301
318
|
require_paths:
|
302
319
|
- lib
|
303
320
|
required_ruby_version: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# -*- ruby -*-
|
2
|
-
|
3
|
-
require 'autotest/restart'
|
4
|
-
|
5
|
-
# Autotest.add_hook :initialize do |at|
|
6
|
-
# at.extra_files << "../some/external/dependency.rb"
|
7
|
-
#
|
8
|
-
# at.libs << ":../some/external"
|
9
|
-
#
|
10
|
-
# at.add_exception 'vendor'
|
11
|
-
#
|
12
|
-
# at.add_mapping(/dependency.rb/) do |f, _|
|
13
|
-
# at.files_matching(/test_.*rb$/)
|
14
|
-
# end
|
15
|
-
#
|
16
|
-
# %w(TestA TestB).each do |klass|
|
17
|
-
# at.extra_class_map[klass] = "test/test_misc.rb"
|
18
|
-
# end
|
19
|
-
# end
|
20
|
-
|
21
|
-
# Autotest.add_hook :run_command do |at|
|
22
|
-
# system "rake build"
|
23
|
-
# end
|