strelka 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/ChangeLog +133 -1
- data/History.rdoc +15 -0
- data/Rakefile +1 -1
- data/bin/strelka +23 -0
- data/lib/strelka.rb +2 -2
- data/lib/strelka/app/auth.rb +15 -12
- data/lib/strelka/app/parameters.rb +8 -2
- data/lib/strelka/app/restresources.rb +67 -32
- data/lib/strelka/app/routing.rb +1 -1
- data/lib/strelka/httprequest.rb +10 -2
- data/lib/strelka/httpresponse.rb +2 -2
- data/lib/strelka/paramvalidator.rb +63 -8
- data/spec/strelka/app/auth_spec.rb +50 -33
- data/spec/strelka/app/filters_spec.rb +2 -2
- data/spec/strelka/app/parameters_spec.rb +30 -1
- data/spec/strelka/app/restresources_spec.rb +51 -6
- data/spec/strelka/app/routing_spec.rb +2 -9
- data/spec/strelka/httprequest_spec.rb +5 -1
- data/spec/strelka/paramvalidator_spec.rb +293 -66
- metadata +37 -82
- metadata.gz.sig +0 -0
metadata
CHANGED
@@ -1,47 +1,40 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strelka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Michael Granger
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain:
|
12
|
-
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
RGVyQ0FhZ01WdURRClUwQkxtV0RGelBHR1dsUGVRQ3JZSENyK0FjSnorTlJu
|
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WBBSZ0hCV
|
24
|
+
qoHr122fGKelqffzEQBhszAcBgNVHREEFTATgRFnZWRARmFlcmllTVVELm9yZzAc
|
25
|
+
BgNVHRIEFTATgRFnZWRARmFlcmllTVVELm9yZzANBgkqhkiG9w0BAQUFAAOCAQEA
|
26
|
+
Vlcfyq6GwyE8i0QuFPCeVOwJaneSvcwx316DApjy9/tt2YD2HomLbtpXtji5QXor
|
27
|
+
ON6oln4tWBIB3Klbr3szq5oR3Rc1D02SaBTalxSndp4M6UkW9hRFu5jn98pDB4fq
|
28
|
+
5l8wMMU0Xdmqx1VYvysVAjVFVC/W4NNvlmg+2mEgSVZP5K6Tc9qDh3eMQInoYw6h
|
29
|
+
t1YA6RsUJHp5vGQyhP1x34YpLAaly8icbns/8PqOf7Osn9ztmg8bOMJCeb32eQLj
|
30
|
+
6mKCwjpegytE0oifXfF8k75A9105cBnNiMZOe1tXiqYc/exCgWvbggurzDOcRkZu
|
31
|
+
/YSusaiDXHKU2O3Akc3htA==
|
32
|
+
-----END CERTIFICATE-----
|
33
|
+
date: 2013-02-27 00:00:00.000000000 Z
|
40
34
|
dependencies:
|
41
35
|
- !ruby/object:Gem::Dependency
|
42
36
|
name: configurability
|
43
37
|
requirement: !ruby/object:Gem::Requirement
|
44
|
-
none: false
|
45
38
|
requirements:
|
46
39
|
- - ~>
|
47
40
|
- !ruby/object:Gem::Version
|
@@ -49,7 +42,6 @@ dependencies:
|
|
49
42
|
type: :runtime
|
50
43
|
prerelease: false
|
51
44
|
version_requirements: !ruby/object:Gem::Requirement
|
52
|
-
none: false
|
53
45
|
requirements:
|
54
46
|
- - ~>
|
55
47
|
- !ruby/object:Gem::Version
|
@@ -57,7 +49,6 @@ dependencies:
|
|
57
49
|
- !ruby/object:Gem::Dependency
|
58
50
|
name: foreman
|
59
51
|
requirement: !ruby/object:Gem::Requirement
|
60
|
-
none: false
|
61
52
|
requirements:
|
62
53
|
- - ~>
|
63
54
|
- !ruby/object:Gem::Version
|
@@ -65,7 +56,6 @@ dependencies:
|
|
65
56
|
type: :runtime
|
66
57
|
prerelease: false
|
67
58
|
version_requirements: !ruby/object:Gem::Requirement
|
68
|
-
none: false
|
69
59
|
requirements:
|
70
60
|
- - ~>
|
71
61
|
- !ruby/object:Gem::Version
|
@@ -73,7 +63,6 @@ dependencies:
|
|
73
63
|
- !ruby/object:Gem::Dependency
|
74
64
|
name: formvalidator
|
75
65
|
requirement: !ruby/object:Gem::Requirement
|
76
|
-
none: false
|
77
66
|
requirements:
|
78
67
|
- - ~>
|
79
68
|
- !ruby/object:Gem::Version
|
@@ -81,7 +70,6 @@ dependencies:
|
|
81
70
|
type: :runtime
|
82
71
|
prerelease: false
|
83
72
|
version_requirements: !ruby/object:Gem::Requirement
|
84
|
-
none: false
|
85
73
|
requirements:
|
86
74
|
- - ~>
|
87
75
|
- !ruby/object:Gem::Version
|
@@ -89,7 +77,6 @@ dependencies:
|
|
89
77
|
- !ruby/object:Gem::Dependency
|
90
78
|
name: highline
|
91
79
|
requirement: !ruby/object:Gem::Requirement
|
92
|
-
none: false
|
93
80
|
requirements:
|
94
81
|
- - ~>
|
95
82
|
- !ruby/object:Gem::Version
|
@@ -97,7 +84,6 @@ dependencies:
|
|
97
84
|
type: :runtime
|
98
85
|
prerelease: false
|
99
86
|
version_requirements: !ruby/object:Gem::Requirement
|
100
|
-
none: false
|
101
87
|
requirements:
|
102
88
|
- - ~>
|
103
89
|
- !ruby/object:Gem::Version
|
@@ -105,7 +91,6 @@ dependencies:
|
|
105
91
|
- !ruby/object:Gem::Dependency
|
106
92
|
name: inversion
|
107
93
|
requirement: !ruby/object:Gem::Requirement
|
108
|
-
none: false
|
109
94
|
requirements:
|
110
95
|
- - ~>
|
111
96
|
- !ruby/object:Gem::Version
|
@@ -113,7 +98,6 @@ dependencies:
|
|
113
98
|
type: :runtime
|
114
99
|
prerelease: false
|
115
100
|
version_requirements: !ruby/object:Gem::Requirement
|
116
|
-
none: false
|
117
101
|
requirements:
|
118
102
|
- - ~>
|
119
103
|
- !ruby/object:Gem::Version
|
@@ -121,7 +105,6 @@ dependencies:
|
|
121
105
|
- !ruby/object:Gem::Dependency
|
122
106
|
name: loggability
|
123
107
|
requirement: !ruby/object:Gem::Requirement
|
124
|
-
none: false
|
125
108
|
requirements:
|
126
109
|
- - ~>
|
127
110
|
- !ruby/object:Gem::Version
|
@@ -129,7 +112,6 @@ dependencies:
|
|
129
112
|
type: :runtime
|
130
113
|
prerelease: false
|
131
114
|
version_requirements: !ruby/object:Gem::Requirement
|
132
|
-
none: false
|
133
115
|
requirements:
|
134
116
|
- - ~>
|
135
117
|
- !ruby/object:Gem::Version
|
@@ -137,23 +119,20 @@ dependencies:
|
|
137
119
|
- !ruby/object:Gem::Dependency
|
138
120
|
name: mongrel2
|
139
121
|
requirement: !ruby/object:Gem::Requirement
|
140
|
-
none: false
|
141
122
|
requirements:
|
142
123
|
- - ~>
|
143
124
|
- !ruby/object:Gem::Version
|
144
|
-
version: '0.
|
125
|
+
version: '0.35'
|
145
126
|
type: :runtime
|
146
127
|
prerelease: false
|
147
128
|
version_requirements: !ruby/object:Gem::Requirement
|
148
|
-
none: false
|
149
129
|
requirements:
|
150
130
|
- - ~>
|
151
131
|
- !ruby/object:Gem::Version
|
152
|
-
version: '0.
|
132
|
+
version: '0.35'
|
153
133
|
- !ruby/object:Gem::Dependency
|
154
134
|
name: pluginfactory
|
155
135
|
requirement: !ruby/object:Gem::Requirement
|
156
|
-
none: false
|
157
136
|
requirements:
|
158
137
|
- - ~>
|
159
138
|
- !ruby/object:Gem::Version
|
@@ -161,7 +140,6 @@ dependencies:
|
|
161
140
|
type: :runtime
|
162
141
|
prerelease: false
|
163
142
|
version_requirements: !ruby/object:Gem::Requirement
|
164
|
-
none: false
|
165
143
|
requirements:
|
166
144
|
- - ~>
|
167
145
|
- !ruby/object:Gem::Version
|
@@ -169,7 +147,6 @@ dependencies:
|
|
169
147
|
- !ruby/object:Gem::Dependency
|
170
148
|
name: sysexits
|
171
149
|
requirement: !ruby/object:Gem::Requirement
|
172
|
-
none: false
|
173
150
|
requirements:
|
174
151
|
- - ~>
|
175
152
|
- !ruby/object:Gem::Version
|
@@ -177,7 +154,6 @@ dependencies:
|
|
177
154
|
type: :runtime
|
178
155
|
prerelease: false
|
179
156
|
version_requirements: !ruby/object:Gem::Requirement
|
180
|
-
none: false
|
181
157
|
requirements:
|
182
158
|
- - ~>
|
183
159
|
- !ruby/object:Gem::Version
|
@@ -185,7 +161,6 @@ dependencies:
|
|
185
161
|
- !ruby/object:Gem::Dependency
|
186
162
|
name: trollop
|
187
163
|
requirement: !ruby/object:Gem::Requirement
|
188
|
-
none: false
|
189
164
|
requirements:
|
190
165
|
- - ~>
|
191
166
|
- !ruby/object:Gem::Version
|
@@ -193,7 +168,6 @@ dependencies:
|
|
193
168
|
type: :runtime
|
194
169
|
prerelease: false
|
195
170
|
version_requirements: !ruby/object:Gem::Requirement
|
196
|
-
none: false
|
197
171
|
requirements:
|
198
172
|
- - ~>
|
199
173
|
- !ruby/object:Gem::Version
|
@@ -201,7 +175,6 @@ dependencies:
|
|
201
175
|
- !ruby/object:Gem::Dependency
|
202
176
|
name: uuidtools
|
203
177
|
requirement: !ruby/object:Gem::Requirement
|
204
|
-
none: false
|
205
178
|
requirements:
|
206
179
|
- - ~>
|
207
180
|
- !ruby/object:Gem::Version
|
@@ -209,7 +182,6 @@ dependencies:
|
|
209
182
|
type: :runtime
|
210
183
|
prerelease: false
|
211
184
|
version_requirements: !ruby/object:Gem::Requirement
|
212
|
-
none: false
|
213
185
|
requirements:
|
214
186
|
- - ~>
|
215
187
|
- !ruby/object:Gem::Version
|
@@ -217,7 +189,6 @@ dependencies:
|
|
217
189
|
- !ruby/object:Gem::Dependency
|
218
190
|
name: hoe-mercurial
|
219
191
|
requirement: !ruby/object:Gem::Requirement
|
220
|
-
none: false
|
221
192
|
requirements:
|
222
193
|
- - ~>
|
223
194
|
- !ruby/object:Gem::Version
|
@@ -225,7 +196,6 @@ dependencies:
|
|
225
196
|
type: :development
|
226
197
|
prerelease: false
|
227
198
|
version_requirements: !ruby/object:Gem::Requirement
|
228
|
-
none: false
|
229
199
|
requirements:
|
230
200
|
- - ~>
|
231
201
|
- !ruby/object:Gem::Version
|
@@ -233,7 +203,6 @@ dependencies:
|
|
233
203
|
- !ruby/object:Gem::Dependency
|
234
204
|
name: hoe-highline
|
235
205
|
requirement: !ruby/object:Gem::Requirement
|
236
|
-
none: false
|
237
206
|
requirements:
|
238
207
|
- - ~>
|
239
208
|
- !ruby/object:Gem::Version
|
@@ -241,7 +210,6 @@ dependencies:
|
|
241
210
|
type: :development
|
242
211
|
prerelease: false
|
243
212
|
version_requirements: !ruby/object:Gem::Requirement
|
244
|
-
none: false
|
245
213
|
requirements:
|
246
214
|
- - ~>
|
247
215
|
- !ruby/object:Gem::Version
|
@@ -249,7 +217,6 @@ dependencies:
|
|
249
217
|
- !ruby/object:Gem::Dependency
|
250
218
|
name: rdoc
|
251
219
|
requirement: !ruby/object:Gem::Requirement
|
252
|
-
none: false
|
253
220
|
requirements:
|
254
221
|
- - ~>
|
255
222
|
- !ruby/object:Gem::Version
|
@@ -257,7 +224,6 @@ dependencies:
|
|
257
224
|
type: :development
|
258
225
|
prerelease: false
|
259
226
|
version_requirements: !ruby/object:Gem::Requirement
|
260
|
-
none: false
|
261
227
|
requirements:
|
262
228
|
- - ~>
|
263
229
|
- !ruby/object:Gem::Version
|
@@ -265,7 +231,6 @@ dependencies:
|
|
265
231
|
- !ruby/object:Gem::Dependency
|
266
232
|
name: hoe-deveiate
|
267
233
|
requirement: !ruby/object:Gem::Requirement
|
268
|
-
none: false
|
269
234
|
requirements:
|
270
235
|
- - ~>
|
271
236
|
- !ruby/object:Gem::Version
|
@@ -273,7 +238,6 @@ dependencies:
|
|
273
238
|
type: :development
|
274
239
|
prerelease: false
|
275
240
|
version_requirements: !ruby/object:Gem::Requirement
|
276
|
-
none: false
|
277
241
|
requirements:
|
278
242
|
- - ~>
|
279
243
|
- !ruby/object:Gem::Version
|
@@ -281,7 +245,6 @@ dependencies:
|
|
281
245
|
- !ruby/object:Gem::Dependency
|
282
246
|
name: simplecov
|
283
247
|
requirement: !ruby/object:Gem::Requirement
|
284
|
-
none: false
|
285
248
|
requirements:
|
286
249
|
- - ~>
|
287
250
|
- !ruby/object:Gem::Version
|
@@ -289,7 +252,6 @@ dependencies:
|
|
289
252
|
type: :development
|
290
253
|
prerelease: false
|
291
254
|
version_requirements: !ruby/object:Gem::Requirement
|
292
|
-
none: false
|
293
255
|
requirements:
|
294
256
|
- - ~>
|
295
257
|
- !ruby/object:Gem::Version
|
@@ -297,31 +259,25 @@ dependencies:
|
|
297
259
|
- !ruby/object:Gem::Dependency
|
298
260
|
name: hoe
|
299
261
|
requirement: !ruby/object:Gem::Requirement
|
300
|
-
none: false
|
301
262
|
requirements:
|
302
263
|
- - ~>
|
303
264
|
- !ruby/object:Gem::Version
|
304
|
-
version: '3.
|
265
|
+
version: '3.5'
|
305
266
|
type: :development
|
306
267
|
prerelease: false
|
307
268
|
version_requirements: !ruby/object:Gem::Requirement
|
308
|
-
none: false
|
309
269
|
requirements:
|
310
270
|
- - ~>
|
311
271
|
- !ruby/object:Gem::Version
|
312
|
-
version: '3.
|
313
|
-
description:
|
314
|
-
|
272
|
+
version: '3.5'
|
273
|
+
description: |-
|
274
|
+
Strelka is a framework for creating and deploying
|
315
275
|
Mongrel2[http://mongrel2.org/] web applications in Ruby.
|
316
276
|
|
317
|
-
|
318
|
-
It''s named after a lesser known {Russian
|
319
|
-
|
277
|
+
It's named after a lesser known {Russian
|
320
278
|
cosmonaut}[http://en.wikipedia.org/wiki/Strelka_(dog)#Belka_and_Strelka] who was
|
321
|
-
|
322
279
|
one of the first canine space travelers to orbit the Earth and return alive.
|
323
|
-
|
324
|
-
Her name means "little arrow".'
|
280
|
+
Her name means "little arrow".
|
325
281
|
email:
|
326
282
|
- ged@FaerieMUD.org
|
327
283
|
executables:
|
@@ -466,6 +422,7 @@ files:
|
|
466
422
|
homepage: http://deveiate.org/projects/Strelka
|
467
423
|
licenses:
|
468
424
|
- BSD
|
425
|
+
metadata: {}
|
469
426
|
post_install_message:
|
470
427
|
rdoc_options:
|
471
428
|
- -f
|
@@ -477,22 +434,20 @@ rdoc_options:
|
|
477
434
|
require_paths:
|
478
435
|
- lib
|
479
436
|
required_ruby_version: !ruby/object:Gem::Requirement
|
480
|
-
none: false
|
481
437
|
requirements:
|
482
|
-
- -
|
438
|
+
- - '>='
|
483
439
|
- !ruby/object:Gem::Version
|
484
440
|
version: 1.9.3
|
485
441
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
486
|
-
none: false
|
487
442
|
requirements:
|
488
|
-
- -
|
443
|
+
- - '>='
|
489
444
|
- !ruby/object:Gem::Version
|
490
445
|
version: '0'
|
491
446
|
requirements: []
|
492
447
|
rubyforge_project: strelka
|
493
|
-
rubygems_version:
|
448
|
+
rubygems_version: 2.0.0
|
494
449
|
signing_key:
|
495
|
-
specification_version:
|
450
|
+
specification_version: 4
|
496
451
|
summary: Strelka is a framework for creating and deploying Mongrel2[http://mongrel2.org/]
|
497
452
|
web applications in Ruby
|
498
453
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|