table_setter 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -2,4 +2,4 @@
2
2
  :major: 0
3
3
  :build:
4
4
  :minor: 2
5
- :patch: 6
5
+ :patch: 7
@@ -311,16 +311,16 @@ TableFu formatters.
311
311
  <pre class="lines">
312
312
 
313
313
 
314
- 218
315
- 219
316
- 220
317
- 221
318
314
  222
319
315
  223
320
- 224</pre>
316
+ 224
317
+ 225
318
+ 226
319
+ 227
320
+ 228</pre>
321
321
  </td>
322
322
  <td>
323
- <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 218</span>
323
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 222</span>
324
324
 
325
325
  <span class='def def kw'>def</span> <span class='bar identifier id'>bar</span><span class='lparen token'>(</span><span class='percent identifier id'>percent</span><span class='rparen token'>)</span>
326
326
  <span class='percent identifier id'>percent</span> <span class='assign token'>=</span> <span class='percent identifier id'>percent</span><span class='dot token'>.</span><span class='to_f identifier id'>to_f</span>
@@ -359,12 +359,12 @@ join multiple columns, with optional delimiter
359
359
  <pre class="lines">
360
360
 
361
361
 
362
- 251
363
- 252
364
- 253</pre>
362
+ 255
363
+ 256
364
+ 257</pre>
365
365
  </td>
366
366
  <td>
367
- <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 251</span>
367
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 255</span>
368
368
 
369
369
  <span class='def def kw'>def</span> <span class='join identifier id'>join</span><span class='lparen token'>(</span><span class='mult op'>*</span><span class='args identifier id'>args</span><span class='rparen token'>)</span>
370
370
  <span class='args identifier id'>args</span><span class='dot token'>.</span><span class='join identifier id'>join</span><span class='lparen token'>(</span><span class='string val'>&quot; &quot;</span><span class='rparen token'>)</span>
@@ -388,12 +388,12 @@ join multiple columns, with optional delimiter
388
388
  <pre class="lines">
389
389
 
390
390
 
391
- 255
392
- 256
393
- 257</pre>
391
+ 259
392
+ 260
393
+ 261</pre>
394
394
  </td>
395
395
  <td>
396
- <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 255</span>
396
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 259</span>
397
397
 
398
398
  <span class='def def kw'>def</span> <span class='joinbr identifier id'>joinbr</span><span class='lparen token'>(</span><span class='mult op'>*</span><span class='args identifier id'>args</span><span class='rparen token'>)</span>
399
399
  <span class='args identifier id'>args</span><span class='dot token'>.</span><span class='join identifier id'>join</span><span class='lparen token'>(</span><span class='string val'>&quot;&lt;br&gt;&quot;</span><span class='rparen token'>)</span>
@@ -417,12 +417,12 @@ join multiple columns, with optional delimiter
417
417
  <pre class="lines">
418
418
 
419
419
 
420
- 259
421
- 260
422
- 261</pre>
420
+ 263
421
+ 264
422
+ 265</pre>
423
423
  </td>
424
424
  <td>
425
- <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 259</span>
425
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 263</span>
426
426
 
427
427
  <span class='def def kw'>def</span> <span class='joincomma identifier id'>joincomma</span><span class='lparen token'>(</span><span class='mult op'>*</span><span class='args identifier id'>args</span><span class='rparen token'>)</span>
428
428
  <span class='args identifier id'>args</span><span class='dot token'>.</span><span class='join identifier id'>join</span><span class='lparen token'>(</span><span class='string val'>&quot;, &quot;</span><span class='rparen token'>)</span>
@@ -457,17 +457,17 @@ format as a link, if the href is empty don&#8217;t make the link active
457
457
  <pre class="lines">
458
458
 
459
459
 
460
- 231
461
- 232
462
- 233
463
- 234
464
460
  235
465
461
  236
466
462
  237
467
- 238</pre>
463
+ 238
464
+ 239
465
+ 240
466
+ 241
467
+ 242</pre>
468
468
  </td>
469
469
  <td>
470
- <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 231</span>
470
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 235</span>
471
471
 
472
472
  <span class='def def kw'>def</span> <span class='link identifier id'>link</span><span class='lparen token'>(</span><span class='linkname identifier id'>linkname</span><span class='comma token'>,</span> <span class='href identifier id'>href</span><span class='rparen token'>)</span>
473
473
  <span class='title identifier id'>title</span> <span class='assign token'>=</span> <span class='linkname identifier id'>linkname</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='gsub identifier id'>gsub</span><span class='lparen token'>(</span><span class='regexp val'>/([&quot;])/</span><span class='comma token'>,</span> <span class='string val'>&quot;'&quot;</span><span class='rparen token'>)</span>
@@ -507,12 +507,12 @@ markdown formatting in tablefu cells
507
507
  <pre class="lines">
508
508
 
509
509
 
510
- 226
511
- 227
512
- 228</pre>
510
+ 230
511
+ 231
512
+ 232</pre>
513
513
  </td>
514
514
  <td>
515
- <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 226</span>
515
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 230</span>
516
516
 
517
517
  <span class='def def kw'>def</span> <span class='markdown identifier id'>markdown</span><span class='lparen token'>(</span><span class='cell identifier id'>cell</span><span class='rparen token'>)</span>
518
518
  <span class='RDiscount constant id'>RDiscount</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='cell identifier id'>cell</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='to_html identifier id'>to_html</span>
@@ -547,12 +547,12 @@ make it small
547
547
  <pre class="lines">
548
548
 
549
549
 
550
- 246
551
- 247
552
- 248</pre>
550
+ 250
551
+ 251
552
+ 252</pre>
553
553
  </td>
554
554
  <td>
555
- <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 246</span>
555
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 250</span>
556
556
 
557
557
  <span class='def def kw'>def</span> <span class='small identifier id'>small</span><span class='lparen token'>(</span><span class='cell identifier id'>cell</span><span class='rparen token'>)</span>
558
558
  <span class='dstring node'>&quot;&lt;small&gt;#{cell}&lt;/small&gt;&quot;</span>
@@ -587,12 +587,12 @@ make it strong
587
587
  <pre class="lines">
588
588
 
589
589
 
590
- 241
591
- 242
592
- 243</pre>
590
+ 245
591
+ 246
592
+ 247</pre>
593
593
  </td>
594
594
  <td>
595
- <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 241</span>
595
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 245</span>
596
596
 
597
597
  <span class='def def kw'>def</span> <span class='strong identifier id'>strong</span><span class='lparen token'>(</span><span class='cell identifier id'>cell</span><span class='rparen token'>)</span>
598
598
  <span class='dstring node'>&quot;&lt;strong&gt;#{cell}&lt;/strong&gt;&quot;</span>
@@ -608,7 +608,7 @@ make it strong
608
608
  </div>
609
609
 
610
610
  <div id="footer">
611
- Generated on Thu Nov 4 18:34:17 2010 by
611
+ Generated on Thu Apr 14 16:57:06 2011 by
612
612
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
613
613
  0.6.1 (ruby-1.8.7).
614
614
  </div>
@@ -171,7 +171,7 @@ Returns the value of attribute cache_timeout
171
171
  </div>
172
172
 
173
173
  <div id="footer">
174
- Generated on Thu Nov 4 18:34:16 2010 by
174
+ Generated on Thu Apr 14 16:57:06 2011 by
175
175
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
176
176
  0.6.1 (ruby-1.8.7).
177
177
  </div>
@@ -234,7 +234,8 @@ A new instance of Command
234
234
  34
235
235
  35
236
236
  36
237
- 37</pre>
237
+ 37
238
+ 38</pre>
238
239
  </td>
239
240
  <td>
240
241
  <pre class="code"><span class="info file"># File 'lib/table_setter/command.rb', line 25</span>
@@ -242,6 +243,7 @@ A new instance of Command
242
243
  <span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span>
243
244
  <span class='@prefix ivar id'>@prefix</span> <span class='assign token'>=</span> <span class='string val'>&quot;&quot;</span>
244
245
  <span class='parse_options identifier id'>parse_options</span>
246
+ <span class='@prefix ivar id'>@prefix</span> <span class='assign token'>=</span> <span class='dstring node'>&quot;/#{@prefix}/&quot;</span><span class='dot token'>.</span><span class='gsub identifier id'>gsub</span><span class='lparen token'>(</span><span class='regexp val'>/^\/\//</span><span class='comma token'>,</span> <span class='string val'>&quot;/&quot;</span><span class='rparen token'>)</span>
245
247
  <span class='command identifier id'>command</span> <span class='assign token'>=</span> <span class='ARGV constant id'>ARGV</span><span class='dot token'>.</span><span class='shift identifier id'>shift</span>
246
248
  <span class='@directory ivar id'>@directory</span> <span class='assign token'>=</span> <span class='ARGV constant id'>ARGV</span><span class='dot token'>.</span><span class='shift identifier id'>shift</span> <span class='orop op'>||</span> <span class='string val'>'.'</span>
247
249
  <span class='TableSetter constant id'>TableSetter</span><span class='dot token'>.</span><span class='configure identifier id'>configure</span> <span class='@directory ivar id'>@directory</span>
@@ -278,6 +280,7 @@ A new instance of Command
278
280
  <pre class="lines">
279
281
 
280
282
 
283
+ 53
281
284
  54
282
285
  55
283
286
  56
@@ -285,20 +288,19 @@ A new instance of Command
285
288
  58
286
289
  59
287
290
  60
288
- 61
289
- 62</pre>
291
+ 61</pre>
290
292
  </td>
291
293
  <td>
292
- <pre class="code"><span class="info file"># File 'lib/table_setter/command.rb', line 54</span>
294
+ <pre class="code"><span class="info file"># File 'lib/table_setter/command.rb', line 53</span>
293
295
 
294
296
  <span class='def def kw'>def</span> <span class='build_out identifier id'>build_out</span>
295
297
  <span class='@out_dir ivar id'>@out_dir</span> <span class='assign token'>=</span> <span class='File constant id'>File</span><span class='dot token'>.</span><span class='join identifier id'>join</span><span class='lparen token'>(</span><span class='TableSetter constant id'>TableSetter</span><span class='dot token'>.</span><span class='config_path identifier id'>config_path</span><span class='comma token'>,</span> <span class='string val'>'out'</span><span class='comma token'>,</span> <span class='@prefix ivar id'>@prefix</span><span class='rparen token'>)</span>
296
298
  <span class='puts identifier id'>puts</span> <span class='string val'>&quot;\nBuilding your TableSetter files...\n\n&quot;</span>
297
299
  <span class='app identifier id'>app</span> <span class='assign token'>=</span> <span class='build_rack identifier id'>build_rack</span>
298
- <span class='request identifier id'>request</span> <span class='assign token'>=</span> <span class='Rack constant id'>Rack</span><span class='colon2 op'>::</span><span class='MockRequest constant id'>MockRequest</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='app identifier id'>app</span><span class='rparen token'>)</span>
299
- <span class='build_index identifier id'>build_index</span> <span class='request identifier id'>request</span>
300
+ <span class='@request ivar id'>@request</span> <span class='assign token'>=</span> <span class='Rack constant id'>Rack</span><span class='colon2 op'>::</span><span class='MockRequest constant id'>MockRequest</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='app identifier id'>app</span><span class='rparen token'>)</span>
301
+ <span class='build_index identifier id'>build_index</span>
300
302
  <span class='build_assets identifier id'>build_assets</span>
301
- <span class='build_tables identifier id'>build_tables</span> <span class='request identifier id'>request</span>
303
+ <span class='build_tables identifier id'>build_tables</span>
302
304
  <span class='end end kw'>end</span>
303
305
  </pre>
304
306
  </td>
@@ -319,16 +321,16 @@ A new instance of Command
319
321
  <pre class="lines">
320
322
 
321
323
 
322
- 44
323
324
  45
324
325
  46
325
326
  47
326
327
  48
327
328
  49
328
- 50</pre>
329
+ 50
330
+ 51</pre>
329
331
  </td>
330
332
  <td>
331
- <pre class="code"><span class="info file"># File 'lib/table_setter/command.rb', line 44</span>
333
+ <pre class="code"><span class="info file"># File 'lib/table_setter/command.rb', line 45</span>
332
334
 
333
335
  <span class='def def kw'>def</span> <span class='install_assets identifier id'>install_assets</span>
334
336
  <span class='FileUtils constant id'>FileUtils</span><span class='dot token'>.</span><span class='mkdir_p identifier id'>mkdir_p</span> <span class='@directory ivar id'>@directory</span> <span class='unless unless_mod kw'>unless</span> <span class='File constant id'>File</span><span class='dot token'>.</span><span class='exists? fid id'>exists?</span> <span class='@directory ivar id'>@directory</span>
@@ -356,13 +358,13 @@ A new instance of Command
356
358
  <pre class="lines">
357
359
 
358
360
 
359
- 39
360
361
  40
361
362
  41
362
- 42</pre>
363
+ 42
364
+ 43</pre>
363
365
  </td>
364
366
  <td>
365
- <pre class="code"><span class="info file"># File 'lib/table_setter/command.rb', line 39</span>
367
+ <pre class="code"><span class="info file"># File 'lib/table_setter/command.rb', line 40</span>
366
368
 
367
369
  <span class='def def kw'>def</span> <span class='start_server identifier id'>start_server</span>
368
370
  <span class='app identifier id'>app</span> <span class='assign token'>=</span> <span class='build_rack identifier id'>build_rack</span>
@@ -379,7 +381,7 @@ A new instance of Command
379
381
  </div>
380
382
 
381
383
  <div id="footer">
382
- Generated on Thu Nov 4 18:34:16 2010 by
384
+ Generated on Thu Apr 14 16:57:06 2011 by
383
385
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
384
386
  0.6.1 (ruby-1.8.7).
385
387
  </div>
@@ -784,14 +784,14 @@ time.
784
784
  <pre class="lines">
785
785
 
786
786
 
787
- 110
788
- 111
789
- 112
790
- 113
791
- 114</pre>
787
+ 115
788
+ 116
789
+ 117
790
+ 118
791
+ 119</pre>
792
792
  </td>
793
793
  <td>
794
- <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 110</span>
794
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 115</span>
795
795
 
796
796
  <span class='def def kw'>def</span> <span class='method_missing identifier id'>method_missing</span><span class='lparen token'>(</span><span class='method identifier id'>method</span><span class='rparen token'>)</span>
797
797
  <span class='if if kw'>if</span> <span class='@table_opts ivar id'>@table_opts</span><span class='lbrack token'>[</span><span class='method identifier id'>method</span><span class='rbrack token'>]</span>
@@ -1105,20 +1105,20 @@ accessing the @data attribute will throw and error.
1105
1105
  <pre class="lines">
1106
1106
 
1107
1107
 
1108
- 176
1109
- 177
1110
- 178
1111
- 179
1112
1108
  180
1113
1109
  181
1114
1110
  182
1115
- 183</pre>
1111
+ 183
1112
+ 184
1113
+ 185
1114
+ 186
1115
+ 187</pre>
1116
1116
  </td>
1117
1117
  <td>
1118
- <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 176</span>
1118
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 180</span>
1119
1119
 
1120
1120
  <span class='def def kw'>def</span> <span class='all identifier id'>all</span>
1121
- <span class='tables identifier id'>tables</span><span class='assign token'>=</span><span class='lbrack token'>[</span><span class='rbrack token'>]</span>
1121
+ <span class='tables identifier id'>tables</span><span class='assign token'>=</span><span class='lbrack token'>[</span><span class='rbrack token'>]</span>
1122
1122
  <span class='Dir constant id'>Dir</span><span class='dot token'>.</span><span class='glob identifier id'>glob</span><span class='lparen token'>(</span><span class='dstring node'>&quot;#{TableSetter.table_path}/*.yml&quot;</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='file identifier id'>file</span><span class='bitor op'>|</span>
1123
1123
  <span class='table identifier id'>table</span> <span class='assign token'>=</span> <span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='File constant id'>File</span><span class='dot token'>.</span><span class='basename identifier id'>basename</span><span class='lparen token'>(</span><span class='file identifier id'>file</span><span class='comma token'>,</span> <span class='string val'>&quot;.yml&quot;</span><span class='rparen token'>)</span><span class='comma token'>,</span> <span class='symbol val'>:defer</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='true true kw'>true</span><span class='rparen token'>)</span>
1124
1124
  <span class='tables identifier id'>tables</span> <span class='lshft op'>&lt;&lt;</span> <span class='table identifier id'>table</span> <span class='if if_mod kw'>if</span> <span class='table identifier id'>table</span><span class='dot token'>.</span><span class='live identifier id'>live</span>
@@ -1168,12 +1168,12 @@ Does a table with this slug exist?
1168
1168
  <pre class="lines">
1169
1169
 
1170
1170
 
1171
- 207
1172
- 208
1173
- 209</pre>
1171
+ 211
1172
+ 212
1173
+ 213</pre>
1174
1174
  </td>
1175
1175
  <td>
1176
- <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 207</span>
1176
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 211</span>
1177
1177
 
1178
1178
  <span class='def def kw'>def</span> <span class='exists? fid id'>exists?</span><span class='lparen token'>(</span><span class='slug identifier id'>slug</span><span class='rparen token'>)</span>
1179
1179
  <span class='File constant id'>File</span><span class='dot token'>.</span><span class='exists? fid id'>exists?</span> <span class='table_path identifier id'>table_path</span><span class='lparen token'>(</span><span class='slug identifier id'>slug</span><span class='rparen token'>)</span>
@@ -1210,10 +1210,6 @@ probably a more unix-y way to do this but for now this is plenty speedy.
1210
1210
  <pre class="lines">
1211
1211
 
1212
1212
 
1213
- 188
1214
- 189
1215
- 190
1216
- 191
1217
1213
  192
1218
1214
  193
1219
1215
  194
@@ -1221,10 +1217,14 @@ probably a more unix-y way to do this but for now this is plenty speedy.
1221
1217
  196
1222
1218
  197
1223
1219
  198
1224
- 199</pre>
1220
+ 199
1221
+ 200
1222
+ 201
1223
+ 202
1224
+ 203</pre>
1225
1225
  </td>
1226
1226
  <td>
1227
- <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 188</span>
1227
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 192</span>
1228
1228
 
1229
1229
  <span class='def def kw'>def</span> <span class='fresh_yaml_time identifier id'>fresh_yaml_time</span>
1230
1230
  <span class='newest_file identifier id'>newest_file</span> <span class='assign token'>=</span> <span class='Dir constant id'>Dir</span><span class='lbrack token'>[</span><span class='dstring node'>&quot;#{TableSetter.table_path}/*.yml&quot;</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='inject identifier id'>inject</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='memo identifier id'>memo</span><span class='comma token'>,</span> <span class='obj identifier id'>obj</span><span class='bitor op'>|</span>
@@ -1232,7 +1232,7 @@ probably a more unix-y way to do this but for now this is plenty speedy.
1232
1232
  <span class='obj_time identifier id'>obj_time</span> <span class='assign token'>=</span> <span class='File constant id'>File</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='File constant id'>File</span><span class='dot token'>.</span><span class='expand_path identifier id'>expand_path</span> <span class='obj identifier id'>obj</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='mtime identifier id'>mtime</span>
1233
1233
  <span class='if if kw'>if</span> <span class='memo_time identifier id'>memo_time</span> <span class='gt op'>&gt;</span> <span class='obj_time identifier id'>obj_time</span>
1234
1234
  <span class='memo identifier id'>memo</span>
1235
- <span class='else else kw'>else</span>
1235
+ <span class='else else kw'>else</span>
1236
1236
  <span class='obj identifier id'>obj</span>
1237
1237
  <span class='end end kw'>end</span>
1238
1238
  <span class='end end kw'>end</span>
@@ -1268,12 +1268,12 @@ Convenience method for looking up by slug.
1268
1268
  <pre class="lines">
1269
1269
 
1270
1270
 
1271
- 202
1272
- 203
1273
- 204</pre>
1271
+ 206
1272
+ 207
1273
+ 208</pre>
1274
1274
  </td>
1275
1275
  <td>
1276
- <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 202</span>
1276
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 206</span>
1277
1277
 
1278
1278
  <span class='def def kw'>def</span> <span class='table_path identifier id'>table_path</span><span class='lparen token'>(</span><span class='slug identifier id'>slug</span><span class='rparen token'>)</span>
1279
1279
  <span class='dstring node'>&quot;#{TableSetter.table_path}#{slug}.yml&quot;</span>
@@ -1316,15 +1316,15 @@ file.
1316
1316
  <pre class="lines">
1317
1317
 
1318
1318
 
1319
- 39
1320
- 40
1321
- 41
1322
1319
  42
1323
1320
  43
1324
- 44</pre>
1321
+ 44
1322
+ 45
1323
+ 46
1324
+ 47</pre>
1325
1325
  </td>
1326
1326
  <td>
1327
- <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 39</span>
1327
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 42</span>
1328
1328
 
1329
1329
  <span class='def def kw'>def</span> <span class='csv_data identifier id'>csv_data</span>
1330
1330
  <span class='case case kw'>case</span>
@@ -1372,12 +1372,12 @@ file.
1372
1372
  <pre class="lines">
1373
1373
 
1374
1374
 
1375
- 62
1376
- 63
1377
- 64</pre>
1375
+ 65
1376
+ 66
1377
+ 67</pre>
1378
1378
  </td>
1379
1379
  <td>
1380
- <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 62</span>
1380
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 65</span>
1381
1381
 
1382
1382
  <span class='def def kw'>def</span> <span class='faceted? fid id'>faceted?</span>
1383
1383
  <span class='notop op'>!</span><span class='@facets ivar id'>@facets</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
@@ -1425,12 +1425,12 @@ hard_paginate instructs the app to render batches of a table.
1425
1425
  <pre class="lines">
1426
1426
 
1427
1427
 
1428
- 72
1429
- 73
1430
- 74</pre>
1428
+ 75
1429
+ 76
1430
+ 77</pre>
1431
1431
  </td>
1432
1432
  <td>
1433
- <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 72</span>
1433
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 75</span>
1434
1434
 
1435
1435
  <span class='def def kw'>def</span> <span class='hard_paginate? fid id'>hard_paginate?</span>
1436
1436
  <span class='@table_opts ivar id'>@table_opts</span><span class='lbrack token'>[</span><span class='symbol val'>:hard_paginate</span><span class='rbrack token'>]</span> <span class='eq op'>==</span> <span class='true true kw'>true</span>
@@ -1476,13 +1476,19 @@ control against unnecessary http requests.
1476
1476
  32
1477
1477
  33
1478
1478
  34
1479
- 35</pre>
1479
+ 35
1480
+ 36
1481
+ 37
1482
+ 38</pre>
1480
1483
  </td>
1481
1484
  <td>
1482
1485
  <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 27</span>
1483
1486
 
1484
1487
  <span class='def def kw'>def</span> <span class='load identifier id'>load</span>
1485
1488
  <span class='csv identifier id'>csv</span> <span class='assign token'>=</span> <span class='csv_data identifier id'>csv_data</span>
1489
+ <span class='if if kw'>if</span> <span class='@table_opts ivar id'>@table_opts</span><span class='lbrack token'>[</span><span class='symbol val'>:column_options</span><span class='rbrack token'>]</span>
1490
+ <span class='@table_opts ivar id'>@table_opts</span><span class='lbrack token'>[</span><span class='symbol val'>:column_options</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>'style'</span><span class='rbrack token'>]</span> <span class='opasgn op'>||=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span>
1491
+ <span class='end end kw'>end</span>
1486
1492
  <span class='@data ivar id'>@data</span> <span class='assign token'>=</span> <span class='TableFu constant id'>TableFu</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='csv_data identifier id'>csv_data</span><span class='comma token'>,</span> <span class='@table_opts ivar id'>@table_opts</span><span class='lbrack token'>[</span><span class='symbol val'>:column_options</span><span class='rbrack token'>]</span> <span class='orop op'>||</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
1487
1493
  <span class='if if kw'>if</span> <span class='@table_opts ivar id'>@table_opts</span><span class='lbrack token'>[</span><span class='symbol val'>:faceting</span><span class='rbrack token'>]</span>
1488
1494
  <span class='@data ivar id'>@data</span><span class='dot token'>.</span><span class='col_opts identifier id'>col_opts</span><span class='lbrack token'>[</span><span class='symbol val'>:ignored</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='@table_opts ivar id'>@table_opts</span><span class='lbrack token'>[</span><span class='symbol val'>:faceting</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='symbol val'>:facet_by</span><span class='rbrack token'>]</span><span class='rbrack token'>]</span>
@@ -1534,24 +1540,24 @@ computes the page attributes which are nil and meaningless otherwise.
1534
1540
  <pre class="lines">
1535
1541
 
1536
1542
 
1537
- 83
1538
- 84
1539
- 85
1540
1543
  86
1541
1544
  87
1542
1545
  88
1543
1546
  89
1544
1547
  90
1545
- 91</pre>
1548
+ 91
1549
+ 92
1550
+ 93
1551
+ 94</pre>
1546
1552
  </td>
1547
1553
  <td>
1548
- <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 83</span>
1554
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 86</span>
1549
1555
 
1550
1556
  <span class='def def kw'>def</span> <span class='paginate! fid id'>paginate!</span><span class='lparen token'>(</span><span class='curr_page identifier id'>curr_page</span><span class='rparen token'>)</span>
1551
1557
  <span class='return return kw'>return</span> <span class='if if_mod kw'>if</span> <span class='notop op'>!</span><span class='hard_paginate? fid id'>hard_paginate?</span>
1552
1558
  <span class='@page ivar id'>@page</span> <span class='assign token'>=</span> <span class='curr_page identifier id'>curr_page</span><span class='dot token'>.</span><span class='to_i identifier id'>to_i</span>
1553
1559
  <span class='raise identifier id'>raise</span> <span class='ArgumentError constant id'>ArgumentError</span> <span class='if if_mod kw'>if</span> <span class='@page ivar id'>@page</span> <span class='lt op'>&lt;</span> <span class='integer val'>1</span> <span class='orop op'>||</span> <span class='@page ivar id'>@page</span> <span class='gt op'>&gt;</span> <span class='total_pages identifier id'>total_pages</span>
1554
- <span class='adj_page identifier id'>adj_page</span> <span class='assign token'>=</span> <span class='@page ivar id'>@page</span> <span class='minus op'>-</span> <span class='integer val'>1</span> <span class='gt op'>&gt;</span> <span class='integer val'>0</span> <span class='question op'>?</span> <span class='@page ivar id'>@page</span> <span class='minus op'>-</span> <span class='integer val'>1</span> <span class='colon op'>:</span> <span class='integer val'>0</span>
1560
+ <span class='adj_page identifier id'>adj_page</span> <span class='assign token'>=</span> <span class='@page ivar id'>@page</span> <span class='minus op'>-</span> <span class='integer val'>1</span> <span class='gt op'>&gt;</span> <span class='integer val'>0</span> <span class='question op'>?</span> <span class='@page ivar id'>@page</span> <span class='minus op'>-</span> <span class='integer val'>1</span> <span class='colon op'>:</span> <span class='integer val'>0</span>
1555
1561
  <span class='@prev_page ivar id'>@prev_page</span> <span class='assign token'>=</span> <span class='adj_page identifier id'>adj_page</span> <span class='gt op'>&gt;</span> <span class='integer val'>0</span> <span class='question op'>?</span> <span class='adj_page identifier id'>adj_page</span> <span class='colon op'>:</span> <span class='nil nil kw'>nil</span>
1556
1562
  <span class='@next_page ivar id'>@next_page</span> <span class='assign token'>=</span> <span class='page identifier id'>page</span> <span class='lt op'>&lt;</span> <span class='total_pages identifier id'>total_pages</span> <span class='integer val'>? </span><span class='lparen token'>(</span><span class='@page ivar id'>@page</span> <span class='plus op'>+</span> <span class='integer val'>1</span><span class='rparen token'>)</span> <span class='colon op'>:</span> <span class='nil nil kw'>nil</span>
1557
1563
  <span class='@data ivar id'>@data</span><span class='dot token'>.</span><span class='only! fid id'>only!</span><span class='lparen token'>(</span><span class='adj_page identifier id'>adj_page</span> <span class='mult op'>*</span> <span class='per_page identifier id'>per_page</span><span class='dot2 op'>..</span><span class='lparen token'>(</span><span class='@page ivar id'>@page</span> <span class='mult op'>*</span> <span class='per_page identifier id'>per_page</span> <span class='minus op'>-</span> <span class='integer val'>1</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
@@ -1586,12 +1592,12 @@ The number of rows per page. Defaults to 20
1586
1592
  <pre class="lines">
1587
1593
 
1588
1594
 
1589
- 77
1590
- 78
1591
- 79</pre>
1595
+ 80
1596
+ 81
1597
+ 82</pre>
1592
1598
  </td>
1593
1599
  <td>
1594
- <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 77</span>
1600
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 80</span>
1595
1601
 
1596
1602
  <span class='def def kw'>def</span> <span class='per_page identifier id'>per_page</span>
1597
1603
  <span class='@table_opts ivar id'>@table_opts</span><span class='lbrack token'>[</span><span class='symbol val'>:per_page</span><span class='rbrack token'>]</span> <span class='orop op'>||</span> <span class='integer val'>20</span>
@@ -1626,18 +1632,22 @@ A convienence method to return the sort array for table setter.
1626
1632
  <pre class="lines">
1627
1633
 
1628
1634
 
1629
- 101
1630
- 102
1631
- 103
1632
1635
  104
1633
- 105</pre>
1636
+ 105
1637
+ 106
1638
+ 107
1639
+ 108
1640
+ 109
1641
+ 110</pre>
1634
1642
  </td>
1635
1643
  <td>
1636
- <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 101</span>
1644
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 104</span>
1637
1645
 
1638
1646
  <span class='def def kw'>def</span> <span class='sort_array identifier id'>sort_array</span>
1639
- <span class='@data ivar id'>@data</span><span class='dot token'>.</span><span class='sorted_by identifier id'>sorted_by</span><span class='dot token'>.</span><span class='inject identifier id'>inject</span><span class='lparen token'>(</span><span class='lbrack token'>[</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='memo identifier id'>memo</span><span class='comma token'>,</span> <span class='lparen token'>(</span><span class='key identifier id'>key</span><span class='comma token'>,</span> <span class='value identifier id'>value</span><span class='rparen token'>)</span><span class='bitor op'>|</span>
1640
- <span class='memo identifier id'>memo</span> <span class='lshft op'>&lt;&lt;</span> <span class='lbrack token'>[</span><span class='@data ivar id'>@data</span><span class='dot token'>.</span><span class='columns identifier id'>columns</span><span class='dot token'>.</span><span class='index identifier id'>index</span><span class='lparen token'>(</span><span class='key identifier id'>key</span><span class='rparen token'>)</span><span class='comma token'>,</span> <span class='value identifier id'>value</span> <span class='eq op'>==</span> <span class='string val'>'descending'</span> <span class='question op'>?</span> <span class='integer val'>1</span> <span class='colon op'>:</span> <span class='integer val'>0</span><span class='rbrack token'>]</span>
1647
+ <span class='if if kw'>if</span> <span class='@data ivar id'>@data</span><span class='dot token'>.</span><span class='sorted_by identifier id'>sorted_by</span>
1648
+ <span class='@data ivar id'>@data</span><span class='dot token'>.</span><span class='sorted_by identifier id'>sorted_by</span><span class='dot token'>.</span><span class='inject identifier id'>inject</span><span class='lparen token'>(</span><span class='lbrack token'>[</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='memo identifier id'>memo</span><span class='comma token'>,</span> <span class='lparen token'>(</span><span class='key identifier id'>key</span><span class='comma token'>,</span> <span class='value identifier id'>value</span><span class='rparen token'>)</span><span class='bitor op'>|</span>
1649
+ <span class='memo identifier id'>memo</span> <span class='lshft op'>&lt;&lt;</span> <span class='lbrack token'>[</span><span class='@data ivar id'>@data</span><span class='dot token'>.</span><span class='columns identifier id'>columns</span><span class='dot token'>.</span><span class='index identifier id'>index</span><span class='lparen token'>(</span><span class='key identifier id'>key</span><span class='rparen token'>)</span><span class='comma token'>,</span> <span class='value identifier id'>value</span> <span class='eq op'>==</span> <span class='string val'>'descending'</span> <span class='question op'>?</span> <span class='integer val'>1</span> <span class='colon op'>:</span> <span class='integer val'>0</span><span class='rbrack token'>]</span>
1650
+ <span class='end end kw'>end</span>
1641
1651
  <span class='end end kw'>end</span>
1642
1652
  <span class='end end kw'>end</span>
1643
1653
  </pre>
@@ -1684,12 +1694,12 @@ multi-page paginated.
1684
1694
  <pre class="lines">
1685
1695
 
1686
1696
 
1687
- 67
1688
- 68
1689
- 69</pre>
1697
+ 70
1698
+ 71
1699
+ 72</pre>
1690
1700
  </td>
1691
1701
  <td>
1692
- <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 67</span>
1702
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 70</span>
1693
1703
 
1694
1704
  <span class='def def kw'>def</span> <span class='sortable? fid id'>sortable?</span>
1695
1705
  <span class='notop op'>!</span><span class='faceted? fid id'>faceted?</span> <span class='andop op'>&amp;&amp;</span> <span class='notop op'>!</span><span class='hard_paginate? fid id'>hard_paginate?</span>
@@ -1725,12 +1735,12 @@ so that we still have the full @data.rows.length
1725
1735
  <pre class="lines">
1726
1736
 
1727
1737
 
1728
- 96
1729
- 97
1730
- 98</pre>
1738
+ 99
1739
+ 100
1740
+ 101</pre>
1731
1741
  </td>
1732
1742
  <td>
1733
- <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 96</span>
1743
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 99</span>
1734
1744
 
1735
1745
  <span class='def def kw'>def</span> <span class='total_pages identifier id'>total_pages</span>
1736
1746
  <span class='@total_pages ivar id'>@total_pages</span> <span class='opasgn op'>||=</span> <span class='lparen token'>(</span><span class='@data ivar id'>@data</span><span class='dot token'>.</span><span class='rows identifier id'>rows</span><span class='dot token'>.</span><span class='length identifier id'>length</span> <span class='div op'>/</span> <span class='per_page identifier id'>per_page</span><span class='dot token'>.</span><span class='to_f identifier id'>to_f</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='ceil identifier id'>ceil</span>
@@ -1767,13 +1777,13 @@ break the cache.
1767
1777
  <pre class="lines">
1768
1778
 
1769
1779
 
1770
- 57
1771
- 58
1772
- 59
1773
- 60</pre>
1780
+ 60
1781
+ 61
1782
+ 62
1783
+ 63</pre>
1774
1784
  </td>
1775
1785
  <td>
1776
- <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 57</span>
1786
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 60</span>
1777
1787
 
1778
1788
  <span class='def def kw'>def</span> <span class='updated_at identifier id'>updated_at</span>
1779
1789
  <span class='csv_time identifier id'>csv_time</span> <span class='assign token'>=</span> <span class='google_key identifier id'>google_key</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span> <span class='integer val'>? </span><span class='modification_time identifier id'>modification_time</span><span class='lparen token'>(</span><span class='uri identifier id'>uri</span><span class='rparen token'>)</span> <span class='colon op'>:</span> <span class='google_modification_time identifier id'>google_modification_time</span>
@@ -1809,19 +1819,19 @@ Returns a usable uri based on what sort of input we have.
1809
1819
  <pre class="lines">
1810
1820
 
1811
1821
 
1812
- 47
1813
- 48
1814
- 49
1815
1822
  50
1816
1823
  51
1817
1824
  52
1818
- 53</pre>
1825
+ 53
1826
+ 54
1827
+ 55
1828
+ 56</pre>
1819
1829
  </td>
1820
1830
  <td>
1821
- <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 47</span>
1831
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 50</span>
1822
1832
 
1823
1833
  <span class='def def kw'>def</span> <span class='uri identifier id'>uri</span>
1824
- <span class='case case kw'>case</span>
1834
+ <span class='case case kw'>case</span>
1825
1835
  <span class='when when kw'>when</span> <span class='google_key identifier id'>google_key</span> <span class='then then kw'>then</span> <span class='dstring node'>&quot;http://spreadsheets.google.com/pub?key=#{google_key}&amp;output=csv&quot;</span>
1826
1836
  <span class='when when kw'>when</span> <span class='url identifier id'>url</span> <span class='then then kw'>then</span> <span class='url identifier id'>url</span>
1827
1837
  <span class='when when kw'>when</span> <span class='file identifier id'>file</span> <span class='then then kw'>then</span> <span class='File constant id'>File</span><span class='dot token'>.</span><span class='expand_path identifier id'>expand_path</span><span class='lparen token'>(</span><span class='dstring node'>&quot;#{TableSetter.table_path}#{file}&quot;</span><span class='rparen token'>)</span>
@@ -1838,7 +1848,7 @@ Returns a usable uri based on what sort of input we have.
1838
1848
  </div>
1839
1849
 
1840
1850
  <div id="footer">
1841
- Generated on Thu Nov 4 18:34:17 2010 by
1851
+ Generated on Thu Apr 14 16:57:06 2011 by
1842
1852
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1843
1853
  0.6.1 (ruby-1.8.7).
1844
1854
  </div>
data/doc/TableSetter.html CHANGED
@@ -208,12 +208,12 @@ Returns the value of attribute config_path
208
208
  <pre class="lines">
209
209
 
210
210
 
211
- 22
212
- 23
213
- 24</pre>
211
+ 30
212
+ 31
213
+ 32</pre>
214
214
  </td>
215
215
  <td>
216
- <pre class="code"><span class="info file"># File 'lib/table_setter.rb', line 22</span>
216
+ <pre class="code"><span class="info file"># File 'lib/table_setter.rb', line 30</span>
217
217
 
218
218
  <span class='def def kw'>def</span> <span class='config_path identifier id'>config_path</span>
219
219
  <span class='@config_path ivar id'>@config_path</span>
@@ -244,12 +244,12 @@ Returns the value of attribute config_path
244
244
  <pre class="lines">
245
245
 
246
246
 
247
- 24
248
- 25
249
- 26</pre>
247
+ 32
248
+ 33
249
+ 34</pre>
250
250
  </td>
251
251
  <td>
252
- <pre class="code"><span class="info file"># File 'lib/table_setter.rb', line 24</span>
252
+ <pre class="code"><span class="info file"># File 'lib/table_setter.rb', line 32</span>
253
253
 
254
254
  <span class='def def kw'>def</span> <span class='configure identifier id'>configure</span><span class='lparen token'>(</span><span class='path identifier id'>path</span><span class='rparen token'>)</span>
255
255
  <span class='@config_path ivar id'>@config_path</span> <span class='assign token'>=</span> <span class='File constant id'>File</span><span class='dot token'>.</span><span class='expand_path identifier id'>expand_path</span><span class='lparen token'>(</span><span class='path identifier id'>path</span><span class='rparen token'>)</span>
@@ -273,12 +273,12 @@ Returns the value of attribute config_path
273
273
  <pre class="lines">
274
274
 
275
275
 
276
- 28
277
- 29
278
- 30</pre>
276
+ 36
277
+ 37
278
+ 38</pre>
279
279
  </td>
280
280
  <td>
281
- <pre class="code"><span class="info file"># File 'lib/table_setter.rb', line 28</span>
281
+ <pre class="code"><span class="info file"># File 'lib/table_setter.rb', line 36</span>
282
282
 
283
283
  <span class='def def kw'>def</span> <span class='table_path identifier id'>table_path</span>
284
284
  <span class='@config_path ivar id'>@config_path</span> <span class='plus op'>+</span> <span class='string val'>&quot;/tables/&quot;</span>
@@ -294,7 +294,7 @@ Returns the value of attribute config_path
294
294
  </div>
295
295
 
296
296
  <div id="footer">
297
- Generated on Thu Nov 4 18:34:16 2010 by
297
+ Generated on Thu Apr 14 16:57:06 2011 by
298
298
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
299
299
  0.6.1 (ruby-1.8.7).
300
300
  </div>
data/doc/_index.html CHANGED
@@ -137,7 +137,7 @@
137
137
  </div></div>
138
138
 
139
139
  <div id="footer">
140
- Generated on Thu Nov 4 18:34:16 2010 by
140
+ Generated on Thu Apr 14 16:57:05 2011 by
141
141
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
142
142
  0.6.1 (ruby-1.8.7).
143
143
  </div>
data/doc/file.README.html CHANGED
@@ -59,7 +59,7 @@ locally or remotely in custom HTML.
59
59
  </div></div>
60
60
 
61
61
  <div id="footer">
62
- Generated on Thu Nov 4 18:34:16 2010 by
62
+ Generated on Thu Apr 14 16:57:05 2011 by
63
63
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
64
64
  0.6.1 (ruby-1.8.7).
65
65
  </div>
data/doc/index.html CHANGED
@@ -59,7 +59,7 @@ locally or remotely in custom HTML.
59
59
  </div></div>
60
60
 
61
61
  <div id="footer">
62
- Generated on Thu Nov 4 18:34:16 2010 by
62
+ Generated on Thu Apr 14 16:57:05 2011 by
63
63
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
64
64
  0.6.1 (ruby-1.8.7).
65
65
  </div>
data/doc/method_list.html CHANGED
@@ -133,17 +133,17 @@
133
133
 
134
134
 
135
135
  <li class="r2 ">
136
- <span class='object_link'><a href="TableSetter/Table.html#initialize-instance_method" title="TableSetter::Table#initialize (method)">#initialize</a></span>
136
+ <span class='object_link'><a href="TableSetter/Command.html#initialize-instance_method" title="TableSetter::Command#initialize (method)">#initialize</a></span>
137
137
 
138
- <small>TableSetter::Table</small>
138
+ <small>TableSetter::Command</small>
139
139
 
140
140
  </li>
141
141
 
142
142
 
143
143
  <li class="r1 ">
144
- <span class='object_link'><a href="TableSetter/Command.html#initialize-instance_method" title="TableSetter::Command#initialize (method)">#initialize</a></span>
144
+ <span class='object_link'><a href="TableSetter/Table.html#initialize-instance_method" title="TableSetter::Table#initialize (method)">#initialize</a></span>
145
145
 
146
- <small>TableSetter::Command</small>
146
+ <small>TableSetter::Table</small>
147
147
 
148
148
  </li>
149
149
 
@@ -301,17 +301,17 @@
301
301
 
302
302
 
303
303
  <li class="r1 ">
304
- <span class='object_link'><a href="TableSetter/Table.html#table_path-class_method" title="TableSetter::Table.table_path (method)">table_path</a></span>
304
+ <span class='object_link'><a href="TableSetter.html#table_path-class_method" title="TableSetter.table_path (method)">table_path</a></span>
305
305
 
306
- <small>TableSetter::Table</small>
306
+ <small>TableSetter</small>
307
307
 
308
308
  </li>
309
309
 
310
310
 
311
311
  <li class="r2 ">
312
- <span class='object_link'><a href="TableSetter.html#table_path-class_method" title="TableSetter.table_path (method)">table_path</a></span>
312
+ <span class='object_link'><a href="TableSetter/Table.html#table_path-class_method" title="TableSetter::Table.table_path (method)">table_path</a></span>
313
313
 
314
- <small>TableSetter</small>
314
+ <small>TableSetter::Table</small>
315
315
 
316
316
  </li>
317
317
 
@@ -79,7 +79,7 @@
79
79
  </div>
80
80
 
81
81
  <div id="footer">
82
- Generated on Thu Nov 4 18:34:17 2010 by
82
+ Generated on Thu Apr 14 16:57:06 2011 by
83
83
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
84
84
  0.6.1 (ruby-1.8.7).
85
85
  </div>
@@ -239,6 +239,8 @@ script/generate table-setter</pre>
239
239
  <a href="http://github.com/palewire">Ben Welsh</a>, and
240
240
  <a href="http://github.com/jpmckinney">James McKinney</a>.</p>
241
241
  <h2><a id="changes" href="#toc">Change Log</a></h2>
242
+ <strong>0.2.7</strong>
243
+ <p>404 and 500 pages have no layout now, please update your templates accordingly.</p>
242
244
  <strong>0.2.6</strong>
243
245
  <p>Fixed a bug in <strong>table-setter start</strong> thanks to <a href="http://github.com/jfkeefe">John Keefe</a>
244
246
  merged in some more changes from <a href="http://github.com/jpmckinney">James McKinney</a>
data/index.html CHANGED
@@ -9,7 +9,7 @@
9
9
  </head>
10
10
  <body>
11
11
  <a href="http://www.propublica.org" class="propublica">&nbsp;</a>
12
- <h1>TableSetter <small>&ndash; Version: 0.2.6</small></h1>
12
+ <h1>TableSetter <small>&ndash; Version: 0.2.7</small></h1>
13
13
  <p><a href="https://github.com/propublica/table-setter">TableSetter</a> is a Ruby app that provides an easy way to present CSVs hosted locally or remotely (e.g. on google, etc) in custom HTML. TableSetter in the wild: <a href="http://projects.propublica.org/tables/failed-banks">a list of all stimulus projects from last year</a>, <a href="http://projects.propublica.org/tables/stimulus-spending-progress">the stimulus spending progress</a>, or <a href="http://projects.propublica.org/tables/failed-banks">a list of failed banks due to the last recession</a>.</p>
14
14
  <p>Each table is filterable and sortable on multiple columns. Also each column can be formatted in one of many different styles. In production mode, <strong>TableSetter</strong> provides valid expires headers and can be coupled with an upstream cache like <a href="http://rtomayko.github.com/rack-cache/">Rack::Cache</a> or varnish for speedy presentation.</p>
15
15
  <h2><a id="toc">Table of Contents</a></h2>
@@ -234,6 +234,8 @@ script/generate table-setter</pre>
234
234
  <a href="http://github.com/palewire">Ben Welsh</a>, and
235
235
  <a href="http://github.com/jpmckinney">James McKinney</a>.</p>
236
236
  <h2><a id="changes" href="#toc">Change Log</a></h2>
237
+ <strong>0.2.7</strong>
238
+ <p>404 and 500 pages have no layout now, please update your templates accordingly.</p>
237
239
  <strong>0.2.6</strong>
238
240
  <p>Fixed a bug in <strong>table-setter start</strong> thanks to <a href="http://github.com/jfkeefe">John Keefe</a>
239
241
  merged in some more changes from <a href="http://github.com/jpmckinney">James McKinney</a>
@@ -10,11 +10,11 @@ module TableSetter
10
10
  enable :static
11
11
 
12
12
  not_found do
13
- show :"404"
13
+ erb :"404", {:layout => false}
14
14
  end
15
15
 
16
16
  error do
17
- show :"500"
17
+ erb :"500", {:layout => false}
18
18
  end
19
19
 
20
20
  get "/" do
@@ -74,7 +74,7 @@ options:
74
74
 
75
75
  def build_rack
76
76
  prefix = @prefix
77
- config = File.join(@directory, "config.ru")
77
+ config = File.join(TableSetter.config_path, "config.ru")
78
78
 
79
79
  Rack::Builder.app do
80
80
  map prefix do
data/table_setter.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{table_setter}
8
- s.version = "0.2.6"
8
+ s.version = "0.2.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jeff Larson"]
12
- s.date = %q{2011-04-03}
12
+ s.date = %q{2011-04-14}
13
13
  s.description = %q{A sinatra based app for rendering CSVs hosted on google docs or locally in custom HTML}
14
14
  s.email = %q{thejefflarson@gmail.com}
15
15
  s.executables = ["table-setter", "table-setter"]
data/template/config.ru CHANGED
@@ -16,7 +16,7 @@ require 'rubygems'
16
16
  require 'table_setter'
17
17
  TableSetter.configure(File.dirname(__FILE__))
18
18
 
19
- # Include custom formatters
19
+ # You should put and custom formatters in lib/formatters.rb.
20
20
  require "#{File.expand_path(File.dirname(__FILE__))}/lib/formatters.rb"
21
21
 
22
22
  # You should probably enable Rack::Cache if you're not behind a caching proxy, by uncommenting the
@@ -1,4 +1,8 @@
1
- <h2>404 Not Found</h2>
2
-
3
- <p>The table you asked for could not be found</p>
4
- <p>Go <a href="<%= url_for "/" %>">back</a>.</p>
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <body>
4
+ <h2>404 Not Found</h2>
5
+ <p>The table you asked for could not be found</p>
6
+ <p>Go <a href="<%= url_for "/" %>">back</a>.</p>
7
+ </body>
8
+ </html>
@@ -1,4 +1,9 @@
1
- <h2>500 - Error</h2>
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <body>
4
+ <h2>500 - Error</h2>
2
5
 
3
- <p>The table you asked for could not be found.</p>
4
- <p>Go <a href="<%= url_for "/" %>">back</a>.</p>
6
+ <p>The table you asked for could not be found.</p>
7
+ <p>Go <a href="<%= url_for "/" %>">back</a>.</p>
8
+ </body>
9
+ </html>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: table_setter
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 6
10
- version: 0.2.6
9
+ - 7
10
+ version: 0.2.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jeff Larson
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-03 00:00:00 -04:00
18
+ date: 2011-04-14 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency