terrimporter 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,435 +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'>
3
- <head>
4
- <title>lib/terrimporter.rb</title>
5
- <link href="screen.css" media="all" rel="stylesheet" type="text/css" />
6
- <link href="print.css" media="print" rel="stylesheet" type="text/css" />
7
-
8
- <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
9
- <script type="text/javascript" src="rcov.js"></script>
10
- </head>
11
- <body>
12
- <h1>Terrimporter C0 Coverage Information - RCov</h1>
13
- <h2>lib/terrimporter.rb</h2>
14
-
15
-
16
-
17
- <div class="report_table_wrapper">
18
- <table class='report' id='report_table'>
19
- <thead>
20
- <tr>
21
- <th class="left_align">Name</th>
22
- <th class="right_align">Total Lines</th>
23
- <th class="right_align">Lines of Code</th>
24
- <th class="left_align">Total Coverage</th>
25
- <th class="left_align">Code Coverage</th>
26
- </tr>
27
- </thead>
28
- <tbody>
29
- <tr>
30
- <td class="left_align"><a href="lib-terrimporter_rb.html">lib/terrimporter.rb</a></td>
31
- <td class='right_align'><tt>62</tt></td>
32
- <td class='right_align'><tt>45</tt></td>
33
- <td class="left_align"><div class="percent_graph_legend"><tt class=''>35.48%</tt></div>
34
- <div class="percent_graph">
35
- <div class="covered" style="width:35px"></div>
36
- <div class="uncovered" style="width:65px"></div>
37
- </div></td>
38
- <td class="left_align"><div class="percent_graph_legend"><tt class=''>37.78%</tt></div>
39
- <div class="percent_graph">
40
- <div class="covered" style="width:38px"></div>
41
- <div class="uncovered" style="width:62px"></div>
42
- </div></td>
43
- </tr>
44
- </tbody>
45
- </table>
46
- </div>
47
-
48
- <h3>Key</h3>
49
-
50
- <div class="key"><pre><span class='marked'>Code reported as executed by Ruby looks like this...</span><span class='marked1'>and this: this line is also marked as covered.</span><span class='inferred'>Lines considered as run by rcov, but not reported by Ruby, look like this,</span><span class='inferred1'>and this: these lines were inferred by rcov (using simple heuristics).</span><span class='uncovered'>Finally, here's a line marked as not executed.</span></pre></div>
51
-
52
- <h3>Coverage Details</h3>
53
-
54
- <table class="details">
55
- <tbody>
56
-
57
-
58
-
59
- <tr class="marked">
60
- <td><pre><a name="line1">1</a> require 'shellwords'</pre></td>
61
- </tr>
62
-
63
-
64
-
65
- <tr class="marked">
66
- <td><pre><a name="line2">2</a> require 'options'</pre></td>
67
- </tr>
68
-
69
-
70
-
71
- <tr class="marked">
72
- <td><pre><a name="line3">3</a> require 'importer'</pre></td>
73
- </tr>
74
-
75
-
76
-
77
- <tr class="inferred">
78
- <td><pre><a name="line4">4</a> </pre></td>
79
- </tr>
80
-
81
-
82
-
83
- <tr class="inferred">
84
- <td><pre><a name="line5">5</a> </pre></td>
85
- </tr>
86
-
87
-
88
-
89
- <tr class="marked">
90
- <td><pre><a name="line6">6</a> module TerrImporter</pre></td>
91
- </tr>
92
-
93
-
94
-
95
- <tr class="marked">
96
- <td><pre><a name="line7">7</a> class Application</pre></td>
97
- </tr>
98
-
99
-
100
-
101
- <tr class="marked">
102
- <td><pre><a name="line8">8</a> class &lt;&lt; self</pre></td>
103
- </tr>
104
-
105
-
106
-
107
- <tr class="marked">
108
- <td><pre><a name="line9">9</a> include Shellwords</pre></td>
109
- </tr>
110
-
111
-
112
-
113
- <tr class="inferred">
114
- <td><pre><a name="line10">10</a> </pre></td>
115
- </tr>
116
-
117
-
118
-
119
- <tr class="marked">
120
- <td><pre><a name="line11">11</a> def run!(*arguments)</pre></td>
121
- </tr>
122
-
123
-
124
-
125
- <tr class="uncovered">
126
- <td><pre><a name="line12">12</a> options = build_options(arguments)</pre></td>
127
- </tr>
128
-
129
-
130
-
131
- <tr class="uncovered">
132
- <td><pre><a name="line13">13</a> </pre></td>
133
- </tr>
134
-
135
-
136
-
137
- <tr class="uncovered">
138
- <td><pre><a name="line14">14</a> if options[:init]</pre></td>
139
- </tr>
140
-
141
-
142
-
143
- <tr class="uncovered">
144
- <td><pre><a name="line15">15</a> #todo the config path can be differen in importer, extract to special class for loading and managing</pre></td>
145
- </tr>
146
-
147
-
148
-
149
- <tr class="uncovered">
150
- <td><pre><a name="line16">16</a> #todo raise error instead of puts and exit</pre></td>
151
- </tr>
152
-
153
-
154
-
155
- <tr class="uncovered">
156
- <td><pre><a name="line17">17</a> if File.exists?(File.join(Dir.pwd, CONFIG_DEFAULT_NAME))</pre></td>
157
- </tr>
158
-
159
-
160
-
161
- <tr class="uncovered">
162
- <td><pre><a name="line18">18</a> puts &quot;Configuration already existing, use the force option to override&quot;</pre></td>
163
- </tr>
164
-
165
-
166
-
167
- <tr class="uncovered">
168
- <td><pre><a name="line19">19</a> return 1</pre></td>
169
- </tr>
170
-
171
-
172
-
173
- <tr class="uncovered">
174
- <td><pre><a name="line20">20</a> end</pre></td>
175
- </tr>
176
-
177
-
178
-
179
- <tr class="uncovered">
180
- <td><pre><a name="line21">21</a> create_config</pre></td>
181
- </tr>
182
-
183
-
184
-
185
- <tr class="uncovered">
186
- <td><pre><a name="line22">22</a> return 0</pre></td>
187
- </tr>
188
-
189
-
190
-
191
- <tr class="uncovered">
192
- <td><pre><a name="line23">23</a> end</pre></td>
193
- </tr>
194
-
195
-
196
-
197
- <tr class="uncovered">
198
- <td><pre><a name="line24">24</a> </pre></td>
199
- </tr>
200
-
201
-
202
-
203
- <tr class="uncovered">
204
- <td><pre><a name="line25">25</a> if options[:invalid_argument]</pre></td>
205
- </tr>
206
-
207
-
208
-
209
- <tr class="uncovered">
210
- <td><pre><a name="line26">26</a> $stderr.puts options[:invalid_argument]</pre></td>
211
- </tr>
212
-
213
-
214
-
215
- <tr class="uncovered">
216
- <td><pre><a name="line27">27</a> options[:show_help] = true</pre></td>
217
- </tr>
218
-
219
-
220
-
221
- <tr class="uncovered">
222
- <td><pre><a name="line28">28</a> end</pre></td>
223
- </tr>
224
-
225
-
226
-
227
- <tr class="uncovered">
228
- <td><pre><a name="line29">29</a> </pre></td>
229
- </tr>
230
-
231
-
232
-
233
- <tr class="uncovered">
234
- <td><pre><a name="line30">30</a> if options[:show_help]</pre></td>
235
- </tr>
236
-
237
-
238
-
239
- <tr class="uncovered">
240
- <td><pre><a name="line31">31</a> $stderr.puts options.opts</pre></td>
241
- </tr>
242
-
243
-
244
-
245
- <tr class="uncovered">
246
- <td><pre><a name="line32">32</a> return 1</pre></td>
247
- </tr>
248
-
249
-
250
-
251
- <tr class="uncovered">
252
- <td><pre><a name="line33">33</a> end</pre></td>
253
- </tr>
254
-
255
-
256
-
257
- <tr class="uncovered">
258
- <td><pre><a name="line34">34</a> </pre></td>
259
- </tr>
260
-
261
-
262
-
263
- <tr class="uncovered">
264
- <td><pre><a name="line35">35</a> #if options[:input_file].nil?</pre></td>
265
- </tr>
266
-
267
-
268
-
269
- <tr class="uncovered">
270
- <td><pre><a name="line36">36</a> # $stderr.puts options.opts</pre></td>
271
- </tr>
272
-
273
-
274
-
275
- <tr class="uncovered">
276
- <td><pre><a name="line37">37</a> # return 1</pre></td>
277
- </tr>
278
-
279
-
280
-
281
- <tr class="uncovered">
282
- <td><pre><a name="line38">38</a> #end</pre></td>
283
- </tr>
284
-
285
-
286
-
287
- <tr class="uncovered">
288
- <td><pre><a name="line39">39</a> </pre></td>
289
- </tr>
290
-
291
-
292
-
293
- <tr class="uncovered">
294
- <td><pre><a name="line40">40</a> begin</pre></td>
295
- </tr>
296
-
297
-
298
-
299
- <tr class="uncovered">
300
- <td><pre><a name="line41">41</a> importer = TerrImporter::Importer.new(options)</pre></td>
301
- </tr>
302
-
303
-
304
-
305
- <tr class="uncovered">
306
- <td><pre><a name="line42">42</a> importer.run</pre></td>
307
- </tr>
308
-
309
-
310
-
311
- <tr class="uncovered">
312
- <td><pre><a name="line43">43</a> return 0</pre></td>
313
- </tr>
314
-
315
-
316
-
317
- <tr class="uncovered">
318
- <td><pre><a name="line44">44</a> rescue TerrImporter::ConfigurationError</pre></td>
319
- </tr>
320
-
321
-
322
-
323
- <tr class="uncovered">
324
- <td><pre><a name="line45">45</a> $stderr.puts %Q{Configuration Error #{ $!.message }}</pre></td>
325
- </tr>
326
-
327
-
328
-
329
- <tr class="uncovered">
330
- <td><pre><a name="line46">46</a> rescue TerrImporter::DefaultError</pre></td>
331
- </tr>
332
-
333
-
334
-
335
- <tr class="uncovered">
336
- <td><pre><a name="line47">47</a> $stderr.puts %Q{Unspecified Error #{ $!.message }}</pre></td>
337
- </tr>
338
-
339
-
340
-
341
- <tr class="uncovered">
342
- <td><pre><a name="line48">48</a> return 1</pre></td>
343
- </tr>
344
-
345
-
346
-
347
- <tr class="uncovered">
348
- <td><pre><a name="line49">49</a> </pre></td>
349
- </tr>
350
-
351
-
352
-
353
- <tr class="uncovered">
354
- <td><pre><a name="line50">50</a> end</pre></td>
355
- </tr>
356
-
357
-
358
-
359
- <tr class="uncovered">
360
- <td><pre><a name="line51">51</a> end</pre></td>
361
- </tr>
362
-
363
-
364
-
365
- <tr class="inferred">
366
- <td><pre><a name="line52">52</a> </pre></td>
367
- </tr>
368
-
369
-
370
-
371
- <tr class="marked">
372
- <td><pre><a name="line53">53</a> def build_options(arguments)</pre></td>
373
- </tr>
374
-
375
-
376
-
377
- <tr class="marked">
378
- <td><pre><a name="line54">54</a> env_opts_string = ENV['TERRIMPORTER_OPTS'] || &quot;&quot;</pre></td>
379
- </tr>
380
-
381
-
382
-
383
- <tr class="marked">
384
- <td><pre><a name="line55">55</a> env_opts = TerrImporter::Application::Options.new(shellwords(env_opts_string))</pre></td>
385
- </tr>
386
-
387
-
388
-
389
- <tr class="marked">
390
- <td><pre><a name="line56">56</a> argument_opts = TerrImporter::Application::Options.new(arguments)</pre></td>
391
- </tr>
392
-
393
-
394
-
395
- <tr class="marked">
396
- <td><pre><a name="line57">57</a> env_opts.merge(argument_opts)</pre></td>
397
- </tr>
398
-
399
-
400
-
401
- <tr class="inferred">
402
- <td><pre><a name="line58">58</a> end</pre></td>
403
- </tr>
404
-
405
-
406
-
407
- <tr class="inferred">
408
- <td><pre><a name="line59">59</a> end</pre></td>
409
- </tr>
410
-
411
-
412
-
413
- <tr class="inferred">
414
- <td><pre><a name="line60">60</a> end</pre></td>
415
- </tr>
416
-
417
-
418
-
419
- <tr class="inferred">
420
- <td><pre><a name="line61">61</a> end</pre></td>
421
- </tr>
422
-
423
-
424
-
425
- <tr class="inferred">
426
- <td><pre><a name="line62">62</a> </pre></td>
427
- </tr>
428
-
429
- </tbody>
430
- </table>
431
-
432
- <p>Generated on Mon Aug 22 22:37:46 +0200 2011 with <a href="http://github.com/relevance/rcov">rcov 0.9.8</a></p>
433
-
434
- </body>
435
- </html>
data/coverage/print.css DELETED
@@ -1,12 +0,0 @@
1
- /* Hide controls */
2
-
3
- body {
4
- color: #000000;
5
- background-color: #ffffff;
6
- }
7
-
8
- /* Hide controls */
9
-
10
- div.filters {
11
- display: none;
12
- }
data/coverage/rcov.js DELETED
@@ -1,42 +0,0 @@
1
- function toggleCode( id ) {
2
- if ( document.getElementById ) {
3
- elem = document.getElementById( id );
4
- } else if ( document.all ) {
5
- elem = eval( "document.all." + id );
6
- } else {
7
- return false;
8
- }
9
-
10
- elemStyle = elem.style;
11
-
12
- if ( elemStyle.display != "block" ) {
13
- elemStyle.display = "block";
14
- } else {
15
- elemStyle.display = "none";
16
- }
17
-
18
- return true;
19
- }
20
-
21
- function restripe() {
22
- i = 0;
23
- $('table#report_table tbody tr').each(function(){
24
- if (this.style.display != "none") {
25
- i += 1;
26
- classes = this.className.split(" ");
27
- if ($.inArray("even",classes) != -1) {
28
- classes.splice($.inArray("even",classes),1);
29
- } else if ($.inArray("odd",classes) != -1) {
30
- classes.splice($.inArray("odd",classes),1);
31
- }
32
- if (i % 2 === 0) {
33
- this.className = classes.join(" ") + " odd";
34
- } else {
35
- this.className = classes.join(" ") + " even";
36
- }
37
- }
38
- });
39
- }
40
-
41
- // Fix IE's lack of support for indexOf (!)
42
- if (!Array.indexOf) { Array.prototype.indexOf = function(obj){ for(var i=0; i<this.length; i++){ if(this[i]==obj){return i;} } return -1; }}