strelka 0.0.1.pre177 → 0.0.1.pre184

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. data/ChangeLog +111 -16
  2. data/Manifest.txt +8 -8
  3. data/Rakefile +3 -3
  4. data/bin/leash +51 -28
  5. data/examples/{auth-demo.rb → apps/auth-demo} +3 -3
  6. data/examples/{auth-demo2.rb → apps/auth-demo2} +0 -0
  7. data/examples/{sessions-demo.rb → apps/sessions-demo} +0 -0
  8. data/examples/config.yml +5 -1
  9. data/examples/{examples.css → static/examples.css} +0 -0
  10. data/examples/{examples.html → static/examples.html} +0 -0
  11. data/examples/{auth-form.tmpl → templates/auth-form.tmpl} +0 -0
  12. data/examples/{auth-success.tmpl → templates/auth-success.tmpl} +0 -0
  13. data/examples/{layout.tmpl → templates/layout.tmpl} +0 -0
  14. data/lib/strelka/app/auth.rb +18 -8
  15. data/lib/strelka/app/errors.rb +3 -2
  16. data/lib/strelka/app/filters.rb +2 -0
  17. data/lib/strelka/app/negotiation.rb +2 -0
  18. data/lib/strelka/app/parameters.rb +18 -140
  19. data/lib/strelka/app/plugins.rb +84 -26
  20. data/lib/strelka/app/restresources.rb +26 -18
  21. data/lib/strelka/app/routing.rb +8 -2
  22. data/lib/strelka/app/sessions.rb +7 -0
  23. data/lib/strelka/app/templating.rb +1 -1
  24. data/lib/strelka/app.rb +25 -1
  25. data/lib/strelka/constants.rb +3 -1
  26. data/lib/strelka/paramvalidator.rb +251 -74
  27. data/lib/strelka/session/default.rb +1 -1
  28. data/spec/strelka/app/auth_spec.rb +37 -0
  29. data/spec/strelka/app/errors_spec.rb +0 -2
  30. data/spec/strelka/app/filters_spec.rb +1 -1
  31. data/spec/strelka/app/parameters_spec.rb +4 -92
  32. data/spec/strelka/app/plugins_spec.rb +64 -2
  33. data/spec/strelka/app/restresources_spec.rb +3 -0
  34. data/spec/strelka/app/routing_spec.rb +5 -5
  35. data/spec/strelka/paramvalidator_spec.rb +294 -385
  36. data.tar.gz.sig +0 -0
  37. metadata +126 -46
  38. metadata.gz.sig +0 -0
data.tar.gz.sig CHANGED
Binary file
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.pre177
4
+ version: 0.0.1.pre184
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -36,11 +36,11 @@ cert_chain:
36
36
  YUhDS0xaZFNLai9SSHVUT3QrZ2JsUmV4OEZBaDhOZUEKY21saFhlNDZwWk5K
37
37
  Z1dLYnhaYWg4NWpJang5NWhSOHZPSStOQU01aUg5a09xSzEzRHJ4YWNUS1Bo
38
38
  cWo1UGp3RgotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
39
- date: 2012-04-06 00:00:00.000000000 Z
39
+ date: 2012-04-11 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: trollop
43
- requirement: &70219852939220 !ruby/object:Gem::Requirement
43
+ requirement: !ruby/object:Gem::Requirement
44
44
  none: false
45
45
  requirements:
46
46
  - - ~>
@@ -48,10 +48,15 @@ dependencies:
48
48
  version: '1.16'
49
49
  type: :runtime
50
50
  prerelease: false
51
- version_requirements: *70219852939220
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ~>
55
+ - !ruby/object:Gem::Version
56
+ version: '1.16'
52
57
  - !ruby/object:Gem::Dependency
53
58
  name: highline
54
- requirement: &70219852938760 !ruby/object:Gem::Requirement
59
+ requirement: !ruby/object:Gem::Requirement
55
60
  none: false
56
61
  requirements:
57
62
  - - ~>
@@ -59,10 +64,15 @@ dependencies:
59
64
  version: '1.6'
60
65
  type: :runtime
61
66
  prerelease: false
62
- version_requirements: *70219852938760
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ~>
71
+ - !ruby/object:Gem::Version
72
+ version: '1.6'
63
73
  - !ruby/object:Gem::Dependency
64
74
  name: sysexits
65
- requirement: &70219852938180 !ruby/object:Gem::Requirement
75
+ requirement: !ruby/object:Gem::Requirement
66
76
  none: false
67
77
  requirements:
68
78
  - - ~>
@@ -70,10 +80,15 @@ dependencies:
70
80
  version: '1.0'
71
81
  type: :runtime
72
82
  prerelease: false
73
- version_requirements: *70219852938180
83
+ version_requirements: !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ~>
87
+ - !ruby/object:Gem::Version
88
+ version: '1.0'
74
89
  - !ruby/object:Gem::Dependency
75
90
  name: formvalidator
76
- requirement: &70219852937740 !ruby/object:Gem::Requirement
91
+ requirement: !ruby/object:Gem::Requirement
77
92
  none: false
78
93
  requirements:
79
94
  - - ~>
@@ -81,10 +96,15 @@ dependencies:
81
96
  version: '0.1'
82
97
  type: :runtime
83
98
  prerelease: false
84
- version_requirements: *70219852937740
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ none: false
101
+ requirements:
102
+ - - ~>
103
+ - !ruby/object:Gem::Version
104
+ version: '0.1'
85
105
  - !ruby/object:Gem::Dependency
86
- name: ! 'inversion '
87
- requirement: &70219852937300 !ruby/object:Gem::Requirement
106
+ name: inversion
107
+ requirement: !ruby/object:Gem::Requirement
88
108
  none: false
89
109
  requirements:
90
110
  - - ~>
@@ -92,10 +112,15 @@ dependencies:
92
112
  version: '0.8'
93
113
  type: :runtime
94
114
  prerelease: false
95
- version_requirements: *70219852937300
115
+ version_requirements: !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ~>
119
+ - !ruby/object:Gem::Version
120
+ version: '0.8'
96
121
  - !ruby/object:Gem::Dependency
97
122
  name: mongrel2
98
- requirement: &70219852936840 !ruby/object:Gem::Requirement
123
+ requirement: !ruby/object:Gem::Requirement
99
124
  none: false
100
125
  requirements:
101
126
  - - ~>
@@ -103,10 +128,15 @@ dependencies:
103
128
  version: '0.20'
104
129
  type: :runtime
105
130
  prerelease: false
106
- version_requirements: *70219852936840
131
+ version_requirements: !ruby/object:Gem::Requirement
132
+ none: false
133
+ requirements:
134
+ - - ~>
135
+ - !ruby/object:Gem::Version
136
+ version: '0.20'
107
137
  - !ruby/object:Gem::Dependency
108
- name: ! 'uuidtools '
109
- requirement: &70219852936260 !ruby/object:Gem::Requirement
138
+ name: uuidtools
139
+ requirement: !ruby/object:Gem::Requirement
110
140
  none: false
111
141
  requirements:
112
142
  - - ~>
@@ -114,10 +144,15 @@ dependencies:
114
144
  version: '2.1'
115
145
  type: :runtime
116
146
  prerelease: false
117
- version_requirements: *70219852936260
147
+ version_requirements: !ruby/object:Gem::Requirement
148
+ none: false
149
+ requirements:
150
+ - - ~>
151
+ - !ruby/object:Gem::Version
152
+ version: '2.1'
118
153
  - !ruby/object:Gem::Dependency
119
154
  name: configurability
120
- requirement: &70219852935720 !ruby/object:Gem::Requirement
155
+ requirement: !ruby/object:Gem::Requirement
121
156
  none: false
122
157
  requirements:
123
158
  - - ~>
@@ -125,10 +160,15 @@ dependencies:
125
160
  version: '1.0'
126
161
  type: :runtime
127
162
  prerelease: false
128
- version_requirements: *70219852935720
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ none: false
165
+ requirements:
166
+ - - ~>
167
+ - !ruby/object:Gem::Version
168
+ version: '1.0'
129
169
  - !ruby/object:Gem::Dependency
130
- name: ! 'pluginfactory '
131
- requirement: &70219852935180 !ruby/object:Gem::Requirement
170
+ name: pluginfactory
171
+ requirement: !ruby/object:Gem::Requirement
132
172
  none: false
133
173
  requirements:
134
174
  - - ~>
@@ -136,10 +176,15 @@ dependencies:
136
176
  version: '1.0'
137
177
  type: :runtime
138
178
  prerelease: false
139
- version_requirements: *70219852935180
179
+ version_requirements: !ruby/object:Gem::Requirement
180
+ none: false
181
+ requirements:
182
+ - - ~>
183
+ - !ruby/object:Gem::Version
184
+ version: '1.0'
140
185
  - !ruby/object:Gem::Dependency
141
186
  name: hoe-mercurial
142
- requirement: &70219852934600 !ruby/object:Gem::Requirement
187
+ requirement: !ruby/object:Gem::Requirement
143
188
  none: false
144
189
  requirements:
145
190
  - - ~>
@@ -147,10 +192,15 @@ dependencies:
147
192
  version: 1.4.0
148
193
  type: :development
149
194
  prerelease: false
150
- version_requirements: *70219852934600
195
+ version_requirements: !ruby/object:Gem::Requirement
196
+ none: false
197
+ requirements:
198
+ - - ~>
199
+ - !ruby/object:Gem::Version
200
+ version: 1.4.0
151
201
  - !ruby/object:Gem::Dependency
152
202
  name: hoe-manualgen
153
- requirement: &70219852934080 !ruby/object:Gem::Requirement
203
+ requirement: !ruby/object:Gem::Requirement
154
204
  none: false
155
205
  requirements:
156
206
  - - ~>
@@ -158,10 +208,15 @@ dependencies:
158
208
  version: 0.3.0
159
209
  type: :development
160
210
  prerelease: false
161
- version_requirements: *70219852934080
211
+ version_requirements: !ruby/object:Gem::Requirement
212
+ none: false
213
+ requirements:
214
+ - - ~>
215
+ - !ruby/object:Gem::Version
216
+ version: 0.3.0
162
217
  - !ruby/object:Gem::Dependency
163
218
  name: hoe-highline
164
- requirement: &70219852933540 !ruby/object:Gem::Requirement
219
+ requirement: !ruby/object:Gem::Requirement
165
220
  none: false
166
221
  requirements:
167
222
  - - ~>
@@ -169,10 +224,15 @@ dependencies:
169
224
  version: 0.1.0
170
225
  type: :development
171
226
  prerelease: false
172
- version_requirements: *70219852933540
227
+ version_requirements: !ruby/object:Gem::Requirement
228
+ none: false
229
+ requirements:
230
+ - - ~>
231
+ - !ruby/object:Gem::Version
232
+ version: 0.1.0
173
233
  - !ruby/object:Gem::Dependency
174
234
  name: rdoc
175
- requirement: &70219852932880 !ruby/object:Gem::Requirement
235
+ requirement: !ruby/object:Gem::Requirement
176
236
  none: false
177
237
  requirements:
178
238
  - - ~>
@@ -180,10 +240,15 @@ dependencies:
180
240
  version: '3.10'
181
241
  type: :development
182
242
  prerelease: false
183
- version_requirements: *70219852932880
243
+ version_requirements: !ruby/object:Gem::Requirement
244
+ none: false
245
+ requirements:
246
+ - - ~>
247
+ - !ruby/object:Gem::Version
248
+ version: '3.10'
184
249
  - !ruby/object:Gem::Dependency
185
250
  name: hoe-deveiate
186
- requirement: &70219852729340 !ruby/object:Gem::Requirement
251
+ requirement: !ruby/object:Gem::Requirement
187
252
  none: false
188
253
  requirements:
189
254
  - - ~>
@@ -191,10 +256,15 @@ dependencies:
191
256
  version: '0.1'
192
257
  type: :development
193
258
  prerelease: false
194
- version_requirements: *70219852729340
259
+ version_requirements: !ruby/object:Gem::Requirement
260
+ none: false
261
+ requirements:
262
+ - - ~>
263
+ - !ruby/object:Gem::Version
264
+ version: '0.1'
195
265
  - !ruby/object:Gem::Dependency
196
266
  name: simplecov
197
- requirement: &70219852728760 !ruby/object:Gem::Requirement
267
+ requirement: !ruby/object:Gem::Requirement
198
268
  none: false
199
269
  requirements:
200
270
  - - ~>
@@ -202,10 +272,15 @@ dependencies:
202
272
  version: '0.6'
203
273
  type: :development
204
274
  prerelease: false
205
- version_requirements: *70219852728760
275
+ version_requirements: !ruby/object:Gem::Requirement
276
+ none: false
277
+ requirements:
278
+ - - ~>
279
+ - !ruby/object:Gem::Version
280
+ version: '0.6'
206
281
  - !ruby/object:Gem::Dependency
207
282
  name: hoe
208
- requirement: &70219852728160 !ruby/object:Gem::Requirement
283
+ requirement: !ruby/object:Gem::Requirement
209
284
  none: false
210
285
  requirements:
211
286
  - - ~>
@@ -213,7 +288,12 @@ dependencies:
213
288
  version: '3.0'
214
289
  type: :development
215
290
  prerelease: false
216
- version_requirements: *70219852728160
291
+ version_requirements: !ruby/object:Gem::Requirement
292
+ none: false
293
+ requirements:
294
+ - - ~>
295
+ - !ruby/object:Gem::Version
296
+ version: '3.0'
217
297
  description: ! 'Strelka is a framework for creating and deploying Mongrel2 web applications
218
298
 
219
299
  in Ruby, and for managing a Mongrel2 cluster.
@@ -251,16 +331,16 @@ files:
251
331
  - contrib/hoetemplate/lib/file_name.rb.erb
252
332
  - contrib/hoetemplate/spec/file_name_spec.rb.erb
253
333
  - data/strelka/apps/hello-world
254
- - examples/auth-demo.rb
255
- - examples/auth-demo2.rb
256
- - examples/auth-form.tmpl
257
- - examples/auth-success.tmpl
334
+ - examples/apps/auth-demo
335
+ - examples/apps/auth-demo2
336
+ - examples/apps/sessions-demo
258
337
  - examples/config.yml
259
- - examples/examples.css
260
- - examples/examples.html
261
338
  - examples/gen-config.rb
262
- - examples/layout.tmpl
263
- - examples/sessions-demo.rb
339
+ - examples/static/examples.css
340
+ - examples/static/examples.html
341
+ - examples/templates/auth-form.tmpl
342
+ - examples/templates/auth-success.tmpl
343
+ - examples/templates/layout.tmpl
264
344
  - lib/strelka.rb
265
345
  - lib/strelka/app.rb
266
346
  - lib/strelka/app/auth.rb
@@ -362,7 +442,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
362
442
  version: '0'
363
443
  requirements: []
364
444
  rubyforge_project: strelka
365
- rubygems_version: 1.8.16
445
+ rubygems_version: 1.8.21
366
446
  signing_key:
367
447
  specification_version: 3
368
448
  summary: Strelka is a framework for creating and deploying Mongrel2 web applications
metadata.gz.sig CHANGED
Binary file