interlock 1.0 → 1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/Manifest +8 -15
- data/README +16 -73
- data/TODO +3 -0
- data/interlock.gemspec +16 -9
- data/lib/interlock/action_controller.rb +135 -36
- data/lib/interlock/action_view.rb +85 -18
- data/lib/interlock/active_record.rb +1 -1
- data/lib/interlock/config.rb +1 -1
- data/lib/interlock/interlock.rb +22 -3
- data/tasks/interlock.rake +10 -0
- data/test/integration/app/app/controllers/application.rb +2 -2
- data/test/integration/app/app/controllers/items_controller.rb +19 -1
- data/test/integration/app/app/views/items/detail.rhtml +20 -0
- data/test/integration/app/app/views/items/{list.html.erb → list.rhtml} +6 -0
- data/test/integration/app/app/views/items/{recent.html.erb → recent.rhtml} +0 -0
- data/test/integration/app/app/views/items/{show.html.erb → show.rhtml} +1 -1
- data/test/integration/app/app/views/layouts/application.html.erb +9 -0
- data/test/integration/app/app/views/shared/{_related.html.erb → _related.rhtml} +0 -0
- data/test/integration/app/config/boot.rb +2 -0
- data/test/integration/app/config/environment.rb +1 -3
- data/test/integration/server_test.rb +53 -6
- data/test/setup.rb +5 -0
- data/test/teardown.rb +0 -4
- data/test/test_helper.rb +9 -2
- data/test/unit/interlock_test.rb +21 -0
- data.tar.gz.sig +0 -0
- metadata +14 -20
- metadata.gz.sig +0 -0
- data/test/integration/app/coverage/cache-43041 +0 -0
- data/test/integration/app/coverage/index.html +0 -414
- data/test/integration/app/coverage/vendor-plugins-interlock-lib-interlock-action_controller_rb.html +0 -733
- data/test/integration/app/coverage/vendor-plugins-interlock-lib-interlock-action_view_rb.html +0 -644
- data/test/integration/app/coverage/vendor-plugins-interlock-lib-interlock-active_record_rb.html +0 -639
- data/test/integration/app/coverage/vendor-plugins-interlock-lib-interlock-config_rb.html +0 -688
- data/test/integration/app/coverage/vendor-plugins-interlock-lib-interlock-core_extensions_rb.html +0 -674
- data/test/integration/app/coverage/vendor-plugins-interlock-lib-interlock-interlock_rb.html +0 -722
- data/test/integration/app/coverage/vendor-plugins-interlock-lib-interlock-memcached_rb.html +0 -640
- data/test/integration/app/coverage/vendor-plugins-interlock-lib-interlock_rb.html +0 -635
- data/test/integration/app/db/schema.rb +0 -21
@@ -1,414 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
-
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'><head><title>C0 code coverage information</title>
|
3
|
-
<style type='text/css'>body { background-color: rgb(240, 240, 245); }</style>
|
4
|
-
<style type='text/css'>span.cross-ref-title {
|
5
|
-
font-size: 140%;
|
6
|
-
}
|
7
|
-
span.cross-ref a {
|
8
|
-
text-decoration: none;
|
9
|
-
}
|
10
|
-
span.cross-ref {
|
11
|
-
background-color:#f3f7fa;
|
12
|
-
border: 1px dashed #333;
|
13
|
-
margin: 1em;
|
14
|
-
padding: 0.5em;
|
15
|
-
overflow: hidden;
|
16
|
-
}
|
17
|
-
a.crossref-toggle {
|
18
|
-
text-decoration: none;
|
19
|
-
}
|
20
|
-
span.marked0 {
|
21
|
-
background-color: rgb(185, 210, 200);
|
22
|
-
display: block;
|
23
|
-
}
|
24
|
-
span.marked1 {
|
25
|
-
background-color: rgb(190, 215, 205);
|
26
|
-
display: block;
|
27
|
-
}
|
28
|
-
span.inferred0 {
|
29
|
-
background-color: rgb(175, 200, 200);
|
30
|
-
display: block;
|
31
|
-
}
|
32
|
-
span.inferred1 {
|
33
|
-
background-color: rgb(180, 205, 205);
|
34
|
-
display: block;
|
35
|
-
}
|
36
|
-
span.uncovered0 {
|
37
|
-
background-color: rgb(225, 110, 110);
|
38
|
-
display: block;
|
39
|
-
}
|
40
|
-
span.uncovered1 {
|
41
|
-
background-color: rgb(235, 120, 120);
|
42
|
-
display: block;
|
43
|
-
}
|
44
|
-
span.overview {
|
45
|
-
border-bottom: 8px solid black;
|
46
|
-
}
|
47
|
-
div.overview {
|
48
|
-
border-bottom: 8px solid black;
|
49
|
-
}
|
50
|
-
body {
|
51
|
-
font-family: verdana, arial, helvetica;
|
52
|
-
}
|
53
|
-
div.footer {
|
54
|
-
font-size: 68%;
|
55
|
-
margin-top: 1.5em;
|
56
|
-
}
|
57
|
-
h1, h2, h3, h4, h5, h6 {
|
58
|
-
margin-bottom: 0.5em;
|
59
|
-
}
|
60
|
-
h5 {
|
61
|
-
margin-top: 0.5em;
|
62
|
-
}
|
63
|
-
.hidden {
|
64
|
-
display: none;
|
65
|
-
}
|
66
|
-
div.separator {
|
67
|
-
height: 10px;
|
68
|
-
}
|
69
|
-
/* Commented out for better readability, esp. on IE */
|
70
|
-
/*
|
71
|
-
table tr td, table tr th {
|
72
|
-
font-size: 68%;
|
73
|
-
}
|
74
|
-
td.value table tr td {
|
75
|
-
font-size: 11px;
|
76
|
-
}
|
77
|
-
*/
|
78
|
-
table.percent_graph {
|
79
|
-
height: 12px;
|
80
|
-
border: #808080 1px solid;
|
81
|
-
empty-cells: show;
|
82
|
-
}
|
83
|
-
table.percent_graph td.covered {
|
84
|
-
height: 10px;
|
85
|
-
background: #00f000;
|
86
|
-
}
|
87
|
-
table.percent_graph td.uncovered {
|
88
|
-
height: 10px;
|
89
|
-
background: #e00000;
|
90
|
-
}
|
91
|
-
table.percent_graph td.NA {
|
92
|
-
height: 10px;
|
93
|
-
background: #eaeaea;
|
94
|
-
}
|
95
|
-
table.report {
|
96
|
-
border-collapse: collapse;
|
97
|
-
width: 100%;
|
98
|
-
}
|
99
|
-
table.report td.heading {
|
100
|
-
background: #dcecff;
|
101
|
-
border: #d0d0d0 1px solid;
|
102
|
-
font-weight: bold;
|
103
|
-
text-align: center;
|
104
|
-
}
|
105
|
-
table.report td.heading:hover {
|
106
|
-
background: #c0ffc0;
|
107
|
-
}
|
108
|
-
table.report td.text {
|
109
|
-
border: #d0d0d0 1px solid;
|
110
|
-
}
|
111
|
-
table.report td.value,
|
112
|
-
table.report td.lines_total,
|
113
|
-
table.report td.lines_code {
|
114
|
-
text-align: right;
|
115
|
-
border: #d0d0d0 1px solid;
|
116
|
-
}
|
117
|
-
table.report tr.light {
|
118
|
-
background-color: rgb(240, 240, 245);
|
119
|
-
}
|
120
|
-
table.report tr.dark {
|
121
|
-
background-color: rgb(230, 230, 235);
|
122
|
-
}
|
123
|
-
</style>
|
124
|
-
<script type='text/javascript'>
|
125
|
-
// <![CDATA[
|
126
|
-
function toggleCode( id ) {
|
127
|
-
if ( document.getElementById )
|
128
|
-
elem = document.getElementById( id );
|
129
|
-
else if ( document.all )
|
130
|
-
elem = eval( "document.all." + id );
|
131
|
-
else
|
132
|
-
return false;
|
133
|
-
|
134
|
-
elemStyle = elem.style;
|
135
|
-
|
136
|
-
if ( elemStyle.display != "block" ) {
|
137
|
-
elemStyle.display = "block"
|
138
|
-
} else {
|
139
|
-
elemStyle.display = "none"
|
140
|
-
}
|
141
|
-
|
142
|
-
return true;
|
143
|
-
}
|
144
|
-
|
145
|
-
// Make cross-references hidden by default
|
146
|
-
document.writeln( "<style type=\"text/css\">span.cross-ref { display: none }</style>" )
|
147
|
-
// ]]>
|
148
|
-
</script>
|
149
|
-
</head>
|
150
|
-
<body><h3>C0 code coverage information</h3>
|
151
|
-
<p>Generated on Thu Dec 13 04:51:25 -0500 2007 with <a href='http://eigenclass.org/hiki/rcov'>rcov 0.8.1.2</a>
|
152
|
-
</p>
|
153
|
-
<hr/>
|
154
|
-
<table class='report'><thead><tr><td class='heading'>Name</td>
|
155
|
-
<td class='heading'>Total lines</td>
|
156
|
-
<td class='heading'>Lines of code</td>
|
157
|
-
<td class='heading'>Total coverage</td>
|
158
|
-
<td class='heading'>Code coverage</td>
|
159
|
-
</tr>
|
160
|
-
</thead>
|
161
|
-
<tbody><tr class='light'><td>TOTAL</td>
|
162
|
-
<td class='lines_total'><tt>495</tt>
|
163
|
-
</td>
|
164
|
-
<td class='lines_code'><tt>288</tt>
|
165
|
-
</td>
|
166
|
-
<td><table cellspacing='0' cellpadding='0' align='right'><tr><td><tt class='coverage_total'>93.7%</tt>
|
167
|
-
</td>
|
168
|
-
<td><table cellspacing='0' class='percent_graph' cellpadding='0' width='100'><tr><td class='covered' width='94'/>
|
169
|
-
<td class='uncovered' width='6'/>
|
170
|
-
</tr>
|
171
|
-
</table>
|
172
|
-
</td>
|
173
|
-
</tr>
|
174
|
-
</table>
|
175
|
-
</td>
|
176
|
-
<td><table cellspacing='0' cellpadding='0' align='right'><tr><td><tt class='coverage_code'>91.0%</tt>
|
177
|
-
</td>
|
178
|
-
<td><table cellspacing='0' class='percent_graph' cellpadding='0' width='100'><tr><td class='covered' width='91'/>
|
179
|
-
<td class='uncovered' width='9'/>
|
180
|
-
</tr>
|
181
|
-
</table>
|
182
|
-
</td>
|
183
|
-
</tr>
|
184
|
-
</table>
|
185
|
-
</td>
|
186
|
-
</tr>
|
187
|
-
<tr class='dark'><td><a href='vendor-plugins-interlock-lib-interlock_rb.html'>vendor/plugins/interlock/lib/interlock.rb</a>
|
188
|
-
</td>
|
189
|
-
<td class='lines_total'><tt>25</tt>
|
190
|
-
</td>
|
191
|
-
<td class='lines_code'><tt>19</tt>
|
192
|
-
</td>
|
193
|
-
<td><table cellspacing='0' cellpadding='0' align='right'><tr><td><tt class='coverage_total'>76.0%</tt>
|
194
|
-
</td>
|
195
|
-
<td><table cellspacing='0' class='percent_graph' cellpadding='0' width='100'><tr><td class='covered' width='76'/>
|
196
|
-
<td class='uncovered' width='24'/>
|
197
|
-
</tr>
|
198
|
-
</table>
|
199
|
-
</td>
|
200
|
-
</tr>
|
201
|
-
</table>
|
202
|
-
</td>
|
203
|
-
<td><table cellspacing='0' cellpadding='0' align='right'><tr><td><tt class='coverage_code'>68.4%</tt>
|
204
|
-
</td>
|
205
|
-
<td><table cellspacing='0' class='percent_graph' cellpadding='0' width='100'><tr><td class='covered' width='68'/>
|
206
|
-
<td class='uncovered' width='32'/>
|
207
|
-
</tr>
|
208
|
-
</table>
|
209
|
-
</td>
|
210
|
-
</tr>
|
211
|
-
</table>
|
212
|
-
</td>
|
213
|
-
</tr>
|
214
|
-
<tr class='light'><td><a href='vendor-plugins-interlock-lib-interlock-action_controller_rb.html'>vendor/plugins/interlock/lib/interlock/action_controller.rb</a>
|
215
|
-
</td>
|
216
|
-
<td class='lines_total'><tt>123</tt>
|
217
|
-
</td>
|
218
|
-
<td class='lines_code'><tt>63</tt>
|
219
|
-
</td>
|
220
|
-
<td><table cellspacing='0' cellpadding='0' align='right'><tr><td><tt class='coverage_total'>94.3%</tt>
|
221
|
-
</td>
|
222
|
-
<td><table cellspacing='0' class='percent_graph' cellpadding='0' width='100'><tr><td class='covered' width='94'/>
|
223
|
-
<td class='uncovered' width='6'/>
|
224
|
-
</tr>
|
225
|
-
</table>
|
226
|
-
</td>
|
227
|
-
</tr>
|
228
|
-
</table>
|
229
|
-
</td>
|
230
|
-
<td><table cellspacing='0' cellpadding='0' align='right'><tr><td><tt class='coverage_code'>90.5%</tt>
|
231
|
-
</td>
|
232
|
-
<td><table cellspacing='0' class='percent_graph' cellpadding='0' width='100'><tr><td class='covered' width='90'/>
|
233
|
-
<td class='uncovered' width='10'/>
|
234
|
-
</tr>
|
235
|
-
</table>
|
236
|
-
</td>
|
237
|
-
</tr>
|
238
|
-
</table>
|
239
|
-
</td>
|
240
|
-
</tr>
|
241
|
-
<tr class='dark'><td><a href='vendor-plugins-interlock-lib-interlock-action_view_rb.html'>vendor/plugins/interlock/lib/interlock/action_view.rb</a>
|
242
|
-
</td>
|
243
|
-
<td class='lines_total'><tt>34</tt>
|
244
|
-
</td>
|
245
|
-
<td class='lines_code'><tt>18</tt>
|
246
|
-
</td>
|
247
|
-
<td><table cellspacing='0' cellpadding='0' align='right'><tr><td><tt class='coverage_total'>100.0%</tt>
|
248
|
-
</td>
|
249
|
-
<td><table cellspacing='0' class='percent_graph' cellpadding='0' width='100'><tr><td class='covered' width='100'/>
|
250
|
-
<td class='uncovered' width='0'/>
|
251
|
-
</tr>
|
252
|
-
</table>
|
253
|
-
</td>
|
254
|
-
</tr>
|
255
|
-
</table>
|
256
|
-
</td>
|
257
|
-
<td><table cellspacing='0' cellpadding='0' align='right'><tr><td><tt class='coverage_code'>100.0%</tt>
|
258
|
-
</td>
|
259
|
-
<td><table cellspacing='0' class='percent_graph' cellpadding='0' width='100'><tr><td class='covered' width='100'/>
|
260
|
-
<td class='uncovered' width='0'/>
|
261
|
-
</tr>
|
262
|
-
</table>
|
263
|
-
</td>
|
264
|
-
</tr>
|
265
|
-
</table>
|
266
|
-
</td>
|
267
|
-
</tr>
|
268
|
-
<tr class='light'><td><a href='vendor-plugins-interlock-lib-interlock-active_record_rb.html'>vendor/plugins/interlock/lib/interlock/active_record.rb</a>
|
269
|
-
</td>
|
270
|
-
<td class='lines_total'><tt>29</tt>
|
271
|
-
</td>
|
272
|
-
<td class='lines_code'><tt>17</tt>
|
273
|
-
</td>
|
274
|
-
<td><table cellspacing='0' cellpadding='0' align='right'><tr><td><tt class='coverage_total'>93.1%</tt>
|
275
|
-
</td>
|
276
|
-
<td><table cellspacing='0' class='percent_graph' cellpadding='0' width='100'><tr><td class='covered' width='93'/>
|
277
|
-
<td class='uncovered' width='7'/>
|
278
|
-
</tr>
|
279
|
-
</table>
|
280
|
-
</td>
|
281
|
-
</tr>
|
282
|
-
</table>
|
283
|
-
</td>
|
284
|
-
<td><table cellspacing='0' cellpadding='0' align='right'><tr><td><tt class='coverage_code'>88.2%</tt>
|
285
|
-
</td>
|
286
|
-
<td><table cellspacing='0' class='percent_graph' cellpadding='0' width='100'><tr><td class='covered' width='88'/>
|
287
|
-
<td class='uncovered' width='12'/>
|
288
|
-
</tr>
|
289
|
-
</table>
|
290
|
-
</td>
|
291
|
-
</tr>
|
292
|
-
</table>
|
293
|
-
</td>
|
294
|
-
</tr>
|
295
|
-
<tr class='dark'><td><a href='vendor-plugins-interlock-lib-interlock-config_rb.html'>vendor/plugins/interlock/lib/interlock/config.rb</a>
|
296
|
-
</td>
|
297
|
-
<td class='lines_total'><tt>78</tt>
|
298
|
-
</td>
|
299
|
-
<td class='lines_code'><tt>49</tt>
|
300
|
-
</td>
|
301
|
-
<td><table cellspacing='0' cellpadding='0' align='right'><tr><td><tt class='coverage_total'>100.0%</tt>
|
302
|
-
</td>
|
303
|
-
<td><table cellspacing='0' class='percent_graph' cellpadding='0' width='100'><tr><td class='covered' width='100'/>
|
304
|
-
<td class='uncovered' width='0'/>
|
305
|
-
</tr>
|
306
|
-
</table>
|
307
|
-
</td>
|
308
|
-
</tr>
|
309
|
-
</table>
|
310
|
-
</td>
|
311
|
-
<td><table cellspacing='0' cellpadding='0' align='right'><tr><td><tt class='coverage_code'>100.0%</tt>
|
312
|
-
</td>
|
313
|
-
<td><table cellspacing='0' class='percent_graph' cellpadding='0' width='100'><tr><td class='covered' width='100'/>
|
314
|
-
<td class='uncovered' width='0'/>
|
315
|
-
</tr>
|
316
|
-
</table>
|
317
|
-
</td>
|
318
|
-
</tr>
|
319
|
-
</table>
|
320
|
-
</td>
|
321
|
-
</tr>
|
322
|
-
<tr class='light'><td><a href='vendor-plugins-interlock-lib-interlock-core_extensions_rb.html'>vendor/plugins/interlock/lib/interlock/core_extensions.rb</a>
|
323
|
-
</td>
|
324
|
-
<td class='lines_total'><tt>64</tt>
|
325
|
-
</td>
|
326
|
-
<td class='lines_code'><tt>49</tt>
|
327
|
-
</td>
|
328
|
-
<td><table cellspacing='0' cellpadding='0' align='right'><tr><td><tt class='coverage_total'>87.5%</tt>
|
329
|
-
</td>
|
330
|
-
<td><table cellspacing='0' class='percent_graph' cellpadding='0' width='100'><tr><td class='covered' width='88'/>
|
331
|
-
<td class='uncovered' width='12'/>
|
332
|
-
</tr>
|
333
|
-
</table>
|
334
|
-
</td>
|
335
|
-
</tr>
|
336
|
-
</table>
|
337
|
-
</td>
|
338
|
-
<td><table cellspacing='0' cellpadding='0' align='right'><tr><td><tt class='coverage_code'>89.8%</tt>
|
339
|
-
</td>
|
340
|
-
<td><table cellspacing='0' class='percent_graph' cellpadding='0' width='100'><tr><td class='covered' width='90'/>
|
341
|
-
<td class='uncovered' width='10'/>
|
342
|
-
</tr>
|
343
|
-
</table>
|
344
|
-
</td>
|
345
|
-
</tr>
|
346
|
-
</table>
|
347
|
-
</td>
|
348
|
-
</tr>
|
349
|
-
<tr class='dark'><td><a href='vendor-plugins-interlock-lib-interlock-interlock_rb.html'>vendor/plugins/interlock/lib/interlock/interlock.rb</a>
|
350
|
-
</td>
|
351
|
-
<td class='lines_total'><tt>112</tt>
|
352
|
-
</td>
|
353
|
-
<td class='lines_code'><tt>54</tt>
|
354
|
-
</td>
|
355
|
-
<td><table cellspacing='0' cellpadding='0' align='right'><tr><td><tt class='coverage_total'>100.0%</tt>
|
356
|
-
</td>
|
357
|
-
<td><table cellspacing='0' class='percent_graph' cellpadding='0' width='100'><tr><td class='covered' width='100'/>
|
358
|
-
<td class='uncovered' width='0'/>
|
359
|
-
</tr>
|
360
|
-
</table>
|
361
|
-
</td>
|
362
|
-
</tr>
|
363
|
-
</table>
|
364
|
-
</td>
|
365
|
-
<td><table cellspacing='0' cellpadding='0' align='right'><tr><td><tt class='coverage_code'>100.0%</tt>
|
366
|
-
</td>
|
367
|
-
<td><table cellspacing='0' class='percent_graph' cellpadding='0' width='100'><tr><td class='covered' width='100'/>
|
368
|
-
<td class='uncovered' width='0'/>
|
369
|
-
</tr>
|
370
|
-
</table>
|
371
|
-
</td>
|
372
|
-
</tr>
|
373
|
-
</table>
|
374
|
-
</td>
|
375
|
-
</tr>
|
376
|
-
<tr class='light'><td><a href='vendor-plugins-interlock-lib-interlock-memcached_rb.html'>vendor/plugins/interlock/lib/interlock/memcached.rb</a>
|
377
|
-
</td>
|
378
|
-
<td class='lines_total'><tt>30</tt>
|
379
|
-
</td>
|
380
|
-
<td class='lines_code'><tt>19</tt>
|
381
|
-
</td>
|
382
|
-
<td><table cellspacing='0' cellpadding='0' align='right'><tr><td><tt class='coverage_total'>73.3%</tt>
|
383
|
-
</td>
|
384
|
-
<td><table cellspacing='0' class='percent_graph' cellpadding='0' width='100'><tr><td class='covered' width='73'/>
|
385
|
-
<td class='uncovered' width='27'/>
|
386
|
-
</tr>
|
387
|
-
</table>
|
388
|
-
</td>
|
389
|
-
</tr>
|
390
|
-
</table>
|
391
|
-
</td>
|
392
|
-
<td><table cellspacing='0' cellpadding='0' align='right'><tr><td><tt class='coverage_code'>63.2%</tt>
|
393
|
-
</td>
|
394
|
-
<td><table cellspacing='0' class='percent_graph' cellpadding='0' width='100'><tr><td class='covered' width='63'/>
|
395
|
-
<td class='uncovered' width='37'/>
|
396
|
-
</tr>
|
397
|
-
</table>
|
398
|
-
</td>
|
399
|
-
</tr>
|
400
|
-
</table>
|
401
|
-
</td>
|
402
|
-
</tr>
|
403
|
-
</tbody>
|
404
|
-
</table>
|
405
|
-
<hr/>
|
406
|
-
<p>Generated using the <a href='http://eigenclass.org/hiki.rb?rcov'>rcov code coverage analysis tool for Ruby</a>
|
407
|
-
version 0.8.1.2.</p>
|
408
|
-
<p><a href='http://validator.w3.org/check/referer'><img src='http://www.w3.org/Icons/valid-xhtml11' height='31' alt='Valid XHTML 1.1!' width='88'/>
|
409
|
-
</a>
|
410
|
-
<a href='http://jigsaw.w3.org/css-validator/check/referer'><img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Valid CSS!' style='border:0;width:88px;height:31px'/>
|
411
|
-
</a>
|
412
|
-
</p>
|
413
|
-
</body>
|
414
|
-
</html>
|