photoviewer 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE +842 -0
- data/README +33 -0
- data/Rakefile +38 -0
- data/app/controllers/application.rb +28 -0
- data/app/controllers/list_controller.rb +86 -0
- data/app/helpers/application_helper.rb +20 -0
- data/app/helpers/list_helper.rb +19 -0
- data/app/models/list.rb +19 -0
- data/app/views/list/banner.html.erb +148 -0
- data/app/views/list/images.xml +8 -0
- data/app/views/list/index.html.erb +46 -0
- data/app/views/list/promo.html.erb +89 -0
- data/app/views/list/response.xml +1 -0
- data/app/views/list/set_index.html.erb +77 -0
- data/app/views/list/view.html.erb +150 -0
- data/catalog.xml +4 -0
- data/config/boot.rb +109 -0
- data/config/database.yml +24 -0
- data/config/environment.rb +62 -0
- data/config/environments/development.rb +18 -0
- data/config/environments/production.rb +19 -0
- data/config/environments/test.rb +22 -0
- data/config/initializers/inflections.rb +10 -0
- data/config/initializers/mime_types.rb +5 -0
- data/config/rmobio.yml +10 -0
- data/config/routes.rb +37 -0
- data/coverage/app-controllers-application_rb.html +659 -0
- data/coverage/app-controllers-list_controller_rb.html +717 -0
- data/coverage/app-helpers-application_helper_rb.html +651 -0
- data/coverage/app-helpers-list_helper_rb.html +650 -0
- data/coverage/index.html +390 -0
- data/db/schema.rb +14 -0
- data/doc/README_FOR_APP +2 -0
- data/log/development.log +675 -0
- data/log/test.log +630 -0
- data/public/404.html +30 -0
- data/public/422.html +30 -0
- data/public/500.html +30 -0
- data/public/dispatch.cgi +10 -0
- data/public/dispatch.fcgi +24 -0
- data/public/dispatch.rb +10 -0
- data/public/favicon.ico +0 -0
- data/public/images/bn/afp.png +0 -0
- data/public/images/bn/airtel.png +0 -0
- data/public/images/bn/bpl.png +0 -0
- data/public/images/bn/imobizo.png +0 -0
- data/public/images/bn/toi.png +0 -0
- data/public/images/bn/trivia.png +0 -0
- data/public/images/cricket.png +0 -0
- data/public/images/default_state_icon.png +0 -0
- data/public/images/mobio_small.png +0 -0
- data/public/images/rails.png +0 -0
- data/public/images/time_small.png +0 -0
- data/public/images/title_icon.png +0 -0
- data/public/index.html +277 -0
- data/public/javascripts/application.js +2 -0
- data/public/javascripts/controls.js +963 -0
- data/public/javascripts/dragdrop.js +972 -0
- data/public/javascripts/effects.js +1120 -0
- data/public/javascripts/prototype.js +4225 -0
- data/public/robots.txt +5 -0
- data/public/stylesheets/scaffold.css +74 -0
- data/script/about +3 -0
- data/script/console +3 -0
- data/script/destroy +3 -0
- data/script/generate +3 -0
- data/script/performance/benchmarker +3 -0
- data/script/performance/profiler +3 -0
- data/script/performance/request +3 -0
- data/script/plugin +3 -0
- data/script/process/inspector +3 -0
- data/script/process/reaper +3 -0
- data/script/process/spawner +3 -0
- data/script/runner +3 -0
- data/script/server +3 -0
- data/test/functional/list_controller_test.rb +25 -0
- data/test/test_helper.rb +55 -0
- data/test/unit/list_test.rb +25 -0
- metadata +184 -0
data/coverage/index.html
ADDED
@@ -0,0 +1,390 @@
|
|
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'>
|
3
|
+
<head>
|
4
|
+
<title>C0 code coverage information</title>
|
5
|
+
<style type='text/css'>body { background-color: rgb(240, 240, 245); }</style>
|
6
|
+
<style type='text/css'>span.cross-ref-title {
|
7
|
+
font-size: 140%;
|
8
|
+
}
|
9
|
+
span.cross-ref a {
|
10
|
+
text-decoration: none;
|
11
|
+
}
|
12
|
+
span.cross-ref {
|
13
|
+
background-color:#f3f7fa;
|
14
|
+
border: 1px dashed #333;
|
15
|
+
margin: 1em;
|
16
|
+
padding: 0.5em;
|
17
|
+
overflow: hidden;
|
18
|
+
}
|
19
|
+
a.crossref-toggle {
|
20
|
+
text-decoration: none;
|
21
|
+
}
|
22
|
+
span.marked0 {
|
23
|
+
background-color: rgb(185, 210, 200);
|
24
|
+
display: block;
|
25
|
+
}
|
26
|
+
span.marked1 {
|
27
|
+
background-color: rgb(190, 215, 205);
|
28
|
+
display: block;
|
29
|
+
}
|
30
|
+
span.inferred0 {
|
31
|
+
background-color: rgb(175, 200, 200);
|
32
|
+
display: block;
|
33
|
+
}
|
34
|
+
span.inferred1 {
|
35
|
+
background-color: rgb(180, 205, 205);
|
36
|
+
display: block;
|
37
|
+
}
|
38
|
+
span.uncovered0 {
|
39
|
+
background-color: rgb(225, 110, 110);
|
40
|
+
display: block;
|
41
|
+
}
|
42
|
+
span.uncovered1 {
|
43
|
+
background-color: rgb(235, 120, 120);
|
44
|
+
display: block;
|
45
|
+
}
|
46
|
+
span.overview {
|
47
|
+
border-bottom: 8px solid black;
|
48
|
+
}
|
49
|
+
div.overview {
|
50
|
+
border-bottom: 8px solid black;
|
51
|
+
}
|
52
|
+
body {
|
53
|
+
font-family: verdana, arial, helvetica;
|
54
|
+
}
|
55
|
+
div.footer {
|
56
|
+
font-size: 68%;
|
57
|
+
margin-top: 1.5em;
|
58
|
+
}
|
59
|
+
h1, h2, h3, h4, h5, h6 {
|
60
|
+
margin-bottom: 0.5em;
|
61
|
+
}
|
62
|
+
h5 {
|
63
|
+
margin-top: 0.5em;
|
64
|
+
}
|
65
|
+
.hidden {
|
66
|
+
display: none;
|
67
|
+
}
|
68
|
+
div.separator {
|
69
|
+
height: 10px;
|
70
|
+
}
|
71
|
+
/* Commented out for better readability, esp. on IE */
|
72
|
+
/*
|
73
|
+
table tr td, table tr th {
|
74
|
+
font-size: 68%;
|
75
|
+
}
|
76
|
+
td.value table tr td {
|
77
|
+
font-size: 11px;
|
78
|
+
}
|
79
|
+
*/
|
80
|
+
table.percent_graph {
|
81
|
+
height: 12px;
|
82
|
+
border: #808080 1px solid;
|
83
|
+
empty-cells: show;
|
84
|
+
}
|
85
|
+
table.percent_graph td.covered {
|
86
|
+
height: 10px;
|
87
|
+
background: #00f000;
|
88
|
+
}
|
89
|
+
table.percent_graph td.uncovered {
|
90
|
+
height: 10px;
|
91
|
+
background: #e00000;
|
92
|
+
}
|
93
|
+
table.percent_graph td.NA {
|
94
|
+
height: 10px;
|
95
|
+
background: #eaeaea;
|
96
|
+
}
|
97
|
+
table.report {
|
98
|
+
border-collapse: collapse;
|
99
|
+
width: 100%;
|
100
|
+
}
|
101
|
+
table.report td.heading {
|
102
|
+
background: #dcecff;
|
103
|
+
border: #d0d0d0 1px solid;
|
104
|
+
font-weight: bold;
|
105
|
+
text-align: center;
|
106
|
+
}
|
107
|
+
table.report td.heading:hover {
|
108
|
+
background: #c0ffc0;
|
109
|
+
}
|
110
|
+
table.report td.text {
|
111
|
+
border: #d0d0d0 1px solid;
|
112
|
+
}
|
113
|
+
table.report td.value,
|
114
|
+
table.report td.lines_total,
|
115
|
+
table.report td.lines_code {
|
116
|
+
text-align: right;
|
117
|
+
border: #d0d0d0 1px solid;
|
118
|
+
}
|
119
|
+
table.report tr.light {
|
120
|
+
background-color: rgb(240, 240, 245);
|
121
|
+
}
|
122
|
+
table.report tr.dark {
|
123
|
+
background-color: rgb(230, 230, 235);
|
124
|
+
}
|
125
|
+
</style>
|
126
|
+
<script type='text/javascript'>
|
127
|
+
// <![CDATA[
|
128
|
+
function toggleCode( id ) {
|
129
|
+
if ( document.getElementById )
|
130
|
+
elem = document.getElementById( id );
|
131
|
+
else if ( document.all )
|
132
|
+
elem = eval( "document.all." + id );
|
133
|
+
else
|
134
|
+
return false;
|
135
|
+
|
136
|
+
elemStyle = elem.style;
|
137
|
+
|
138
|
+
if ( elemStyle.display != "block" ) {
|
139
|
+
elemStyle.display = "block"
|
140
|
+
} else {
|
141
|
+
elemStyle.display = "none"
|
142
|
+
}
|
143
|
+
|
144
|
+
return true;
|
145
|
+
}
|
146
|
+
|
147
|
+
// Make cross-references hidden by default
|
148
|
+
document.writeln( "<style type=\"text/css\">span.cross-ref { display: none }</style>" )
|
149
|
+
// ]]>
|
150
|
+
</script>
|
151
|
+
</head>
|
152
|
+
<body>
|
153
|
+
<h3>C0 code coverage information</h3>
|
154
|
+
<p>Generated on Fri Mar 14 11:11:10 -0700 2008 with <a href='http://eigenclass.org/hiki/rcov'>rcov 0.8.1.2</a>
|
155
|
+
</p>
|
156
|
+
<hr /> <table class='report'>
|
157
|
+
<thead>
|
158
|
+
<tr>
|
159
|
+
<td class='heading'>Name</td>
|
160
|
+
<td class='heading'>Total lines</td>
|
161
|
+
<td class='heading'>Lines of code</td>
|
162
|
+
<td class='heading'>Total coverage</td>
|
163
|
+
<td class='heading'>Code coverage</td>
|
164
|
+
</tr>
|
165
|
+
</thead>
|
166
|
+
<tbody>
|
167
|
+
<tr class='light'>
|
168
|
+
<td>TOTAL</td>
|
169
|
+
<td class='lines_total'>
|
170
|
+
<tt>153</tt>
|
171
|
+
</td>
|
172
|
+
<td class='lines_code'>
|
173
|
+
<tt>62</tt>
|
174
|
+
</td>
|
175
|
+
<td>
|
176
|
+
<table cellspacing='0' cellpadding='0' align='right'>
|
177
|
+
<tr>
|
178
|
+
<td>
|
179
|
+
<tt class='coverage_total'>75.8%</tt> </td>
|
180
|
+
<td>
|
181
|
+
<table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
|
182
|
+
<tr>
|
183
|
+
<td class='covered' width='76' />
|
184
|
+
<td class='uncovered' width='24' />
|
185
|
+
</tr>
|
186
|
+
</table>
|
187
|
+
</td>
|
188
|
+
</tr>
|
189
|
+
</table>
|
190
|
+
</td>
|
191
|
+
<td>
|
192
|
+
<table cellspacing='0' cellpadding='0' align='right'>
|
193
|
+
<tr>
|
194
|
+
<td>
|
195
|
+
<tt class='coverage_code'>48.4%</tt> </td>
|
196
|
+
<td>
|
197
|
+
<table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
|
198
|
+
<tr>
|
199
|
+
<td class='covered' width='48' />
|
200
|
+
<td class='uncovered' width='52' />
|
201
|
+
</tr>
|
202
|
+
</table>
|
203
|
+
</td>
|
204
|
+
</tr>
|
205
|
+
</table>
|
206
|
+
</td>
|
207
|
+
</tr>
|
208
|
+
<tr class='dark'>
|
209
|
+
<td>
|
210
|
+
<a href='app-controllers-application_rb.html'>app/controllers/application.rb</a>
|
211
|
+
</td>
|
212
|
+
<td class='lines_total'>
|
213
|
+
<tt>28</tt>
|
214
|
+
</td>
|
215
|
+
<td class='lines_code'>
|
216
|
+
<tt>4</tt>
|
217
|
+
</td>
|
218
|
+
<td>
|
219
|
+
<table cellspacing='0' cellpadding='0' align='right'>
|
220
|
+
<tr>
|
221
|
+
<td>
|
222
|
+
<tt class='coverage_total'>100.0%</tt> </td>
|
223
|
+
<td>
|
224
|
+
<table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
|
225
|
+
<tr>
|
226
|
+
<td class='covered' width='100' />
|
227
|
+
<td class='uncovered' width='0' />
|
228
|
+
</tr>
|
229
|
+
</table>
|
230
|
+
</td>
|
231
|
+
</tr>
|
232
|
+
</table>
|
233
|
+
</td>
|
234
|
+
<td>
|
235
|
+
<table cellspacing='0' cellpadding='0' align='right'>
|
236
|
+
<tr>
|
237
|
+
<td>
|
238
|
+
<tt class='coverage_code'>100.0%</tt> </td>
|
239
|
+
<td>
|
240
|
+
<table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
|
241
|
+
<tr>
|
242
|
+
<td class='covered' width='100' />
|
243
|
+
<td class='uncovered' width='0' />
|
244
|
+
</tr>
|
245
|
+
</table>
|
246
|
+
</td>
|
247
|
+
</tr>
|
248
|
+
</table>
|
249
|
+
</td>
|
250
|
+
</tr>
|
251
|
+
<tr class='light'>
|
252
|
+
<td>
|
253
|
+
<a href='app-controllers-list_controller_rb.html'>app/controllers/list_controller.rb</a>
|
254
|
+
</td>
|
255
|
+
<td class='lines_total'>
|
256
|
+
<tt>86</tt>
|
257
|
+
</td>
|
258
|
+
<td class='lines_code'>
|
259
|
+
<tt>54</tt>
|
260
|
+
</td>
|
261
|
+
<td>
|
262
|
+
<table cellspacing='0' cellpadding='0' align='right'>
|
263
|
+
<tr>
|
264
|
+
<td>
|
265
|
+
<tt class='coverage_total'>57.0%</tt> </td>
|
266
|
+
<td>
|
267
|
+
<table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
|
268
|
+
<tr>
|
269
|
+
<td class='covered' width='57' />
|
270
|
+
<td class='uncovered' width='43' />
|
271
|
+
</tr>
|
272
|
+
</table>
|
273
|
+
</td>
|
274
|
+
</tr>
|
275
|
+
</table>
|
276
|
+
</td>
|
277
|
+
<td>
|
278
|
+
<table cellspacing='0' cellpadding='0' align='right'>
|
279
|
+
<tr>
|
280
|
+
<td>
|
281
|
+
<tt class='coverage_code'>40.7%</tt> </td>
|
282
|
+
<td>
|
283
|
+
<table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
|
284
|
+
<tr>
|
285
|
+
<td class='covered' width='41' />
|
286
|
+
<td class='uncovered' width='59' />
|
287
|
+
</tr>
|
288
|
+
</table>
|
289
|
+
</td>
|
290
|
+
</tr>
|
291
|
+
</table>
|
292
|
+
</td>
|
293
|
+
</tr>
|
294
|
+
<tr class='dark'>
|
295
|
+
<td>
|
296
|
+
<a href='app-helpers-application_helper_rb.html'>app/helpers/application_helper.rb</a>
|
297
|
+
</td>
|
298
|
+
<td class='lines_total'>
|
299
|
+
<tt>20</tt>
|
300
|
+
</td>
|
301
|
+
<td class='lines_code'>
|
302
|
+
<tt>2</tt>
|
303
|
+
</td>
|
304
|
+
<td>
|
305
|
+
<table cellspacing='0' cellpadding='0' align='right'>
|
306
|
+
<tr>
|
307
|
+
<td>
|
308
|
+
<tt class='coverage_total'>100.0%</tt> </td>
|
309
|
+
<td>
|
310
|
+
<table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
|
311
|
+
<tr>
|
312
|
+
<td class='covered' width='100' />
|
313
|
+
<td class='uncovered' width='0' />
|
314
|
+
</tr>
|
315
|
+
</table>
|
316
|
+
</td>
|
317
|
+
</tr>
|
318
|
+
</table>
|
319
|
+
</td>
|
320
|
+
<td>
|
321
|
+
<table cellspacing='0' cellpadding='0' align='right'>
|
322
|
+
<tr>
|
323
|
+
<td>
|
324
|
+
<tt class='coverage_code'>100.0%</tt> </td>
|
325
|
+
<td>
|
326
|
+
<table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
|
327
|
+
<tr>
|
328
|
+
<td class='covered' width='100' />
|
329
|
+
<td class='uncovered' width='0' />
|
330
|
+
</tr>
|
331
|
+
</table>
|
332
|
+
</td>
|
333
|
+
</tr>
|
334
|
+
</table>
|
335
|
+
</td>
|
336
|
+
</tr>
|
337
|
+
<tr class='light'>
|
338
|
+
<td>
|
339
|
+
<a href='app-helpers-list_helper_rb.html'>app/helpers/list_helper.rb</a>
|
340
|
+
</td>
|
341
|
+
<td class='lines_total'>
|
342
|
+
<tt>19</tt>
|
343
|
+
</td>
|
344
|
+
<td class='lines_code'>
|
345
|
+
<tt>2</tt>
|
346
|
+
</td>
|
347
|
+
<td>
|
348
|
+
<table cellspacing='0' cellpadding='0' align='right'>
|
349
|
+
<tr>
|
350
|
+
<td>
|
351
|
+
<tt class='coverage_total'>100.0%</tt> </td>
|
352
|
+
<td>
|
353
|
+
<table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
|
354
|
+
<tr>
|
355
|
+
<td class='covered' width='100' />
|
356
|
+
<td class='uncovered' width='0' />
|
357
|
+
</tr>
|
358
|
+
</table>
|
359
|
+
</td>
|
360
|
+
</tr>
|
361
|
+
</table>
|
362
|
+
</td>
|
363
|
+
<td>
|
364
|
+
<table cellspacing='0' cellpadding='0' align='right'>
|
365
|
+
<tr>
|
366
|
+
<td>
|
367
|
+
<tt class='coverage_code'>100.0%</tt> </td>
|
368
|
+
<td>
|
369
|
+
<table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
|
370
|
+
<tr>
|
371
|
+
<td class='covered' width='100' />
|
372
|
+
<td class='uncovered' width='0' />
|
373
|
+
</tr>
|
374
|
+
</table>
|
375
|
+
</td>
|
376
|
+
</tr>
|
377
|
+
</table>
|
378
|
+
</td>
|
379
|
+
</tr>
|
380
|
+
</tbody>
|
381
|
+
</table><hr /> <p>Generated using the <a href='http://eigenclass.org/hiki.rb?rcov'>rcov code coverage analysis tool for Ruby</a> version 0.8.1.2.</p><p>
|
382
|
+
<a href='http://validator.w3.org/check/referer'>
|
383
|
+
<img src='http://www.w3.org/Icons/valid-xhtml11' height='31' alt='Valid XHTML 1.1!' width='88' />
|
384
|
+
</a>
|
385
|
+
<a href='http://jigsaw.w3.org/css-validator/check/referer'>
|
386
|
+
<img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Valid CSS!' style='border:0;width:88px;height:31px' />
|
387
|
+
</a>
|
388
|
+
</p>
|
389
|
+
</body>
|
390
|
+
</html>
|
data/db/schema.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# This file is auto-generated from the current state of the database. Instead of editing this file,
|
2
|
+
# please use the migrations feature of ActiveRecord to incrementally modify your database, and
|
3
|
+
# then regenerate this schema definition.
|
4
|
+
#
|
5
|
+
# Note that this schema.rb definition is the authoritative source for your database schema. If you need
|
6
|
+
# to create the application database on another system, you should be using db:schema:load, not running
|
7
|
+
# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
8
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
9
|
+
#
|
10
|
+
# It's strongly recommended to check this file into your version control system.
|
11
|
+
|
12
|
+
ActiveRecord::Schema.define(:version => 0) do
|
13
|
+
|
14
|
+
end
|
data/doc/README_FOR_APP
ADDED