table_setter 0.1.10 → 0.1.11

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/Rakefile CHANGED
@@ -11,7 +11,7 @@ begin
11
11
  gem.homepage = "http://propublica.github.com/table-setter/"
12
12
  gem.authors = ["Jeff Larson"]
13
13
  gem.rubyforge_project = "table-setter"
14
- gem.add_development_dependency "rspec", ">= 1.2.9"
14
+ gem.add_development_dependency "rspec", "~> 1.2.9"
15
15
  gem.add_dependency "rack", ">= 1.1.0"
16
16
  gem.add_dependency "thin", ">= 1.2.5"
17
17
  gem.add_dependency "table_fu", ">= 0.2.1"
@@ -22,7 +22,7 @@ begin
22
22
  gem.add_dependency "rdiscount", ">= 1.6.3.1"
23
23
  gem.executables << "table-setter"
24
24
  end
25
-
25
+
26
26
  Jeweler::GemcutterTasks.new
27
27
  rescue LoadError
28
28
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- :build:
3
- :patch: 10
4
2
  :major: 0
5
3
  :minor: 1
4
+ :build:
5
+ :patch: 11
@@ -2,7 +2,7 @@
2
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
3
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
  <head>
5
- <meta name="Content-Type" content="text/html; charset=UTF-8" />
5
+ <meta name="Content-Type" content="text/html; charset=utf-8" />
6
6
  <title>Class: TableFu::Formatting</title>
7
7
  <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
8
8
  <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
@@ -43,7 +43,8 @@
43
43
 
44
44
  <iframe id="search_frame"></iframe>
45
45
 
46
- <div id="content"><h1>Class: TableFu::Formatting
46
+ <div id="content"><h1>Class: TableFu::Formatting
47
+
47
48
 
48
49
 
49
50
  </h1>
@@ -71,6 +72,7 @@
71
72
 
72
73
 
73
74
 
75
+
74
76
  <dt class="r2 last">Defined in:</dt>
75
77
  <dd class="r2 last">lib/table_setter/table.rb</dd>
76
78
 
@@ -80,11 +82,15 @@
80
82
 
81
83
 
82
84
 
83
- <h2>Class Method Summary</h2>
85
+
86
+ <h2>
87
+ Class Method Summary
88
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
89
+ </h2>
84
90
 
85
- <ul class="summary">
86
-
87
- <li class="public ">
91
+ <ul class="summary">
92
+
93
+ <li class="public ">
88
94
  <span class="summary_signature">
89
95
 
90
96
  <a href="#bar-class_method" title="bar (class method)">+ (Object) <strong>bar</strong>(percent) </a>
@@ -97,18 +103,183 @@
97
103
 
98
104
 
99
105
 
106
+
100
107
 
101
108
 
102
- <span class="summary_desc">
109
+ <span class="summary_desc"><div class='inline'><p>
103
110
  In order to show a sideways bar chart, we&#8217;re extending the builtin
104
111
  TableFu formatters.
112
+ </p>
113
+ </div></span>
114
+
115
+ </li>
116
+
117
+
118
+ <li class="public ">
119
+ <span class="summary_signature">
120
+
121
+ <a href="#join-class_method" title="join (class method)">+ (Object) <strong>join</strong>(*args) </a>
122
+
123
+
124
+
125
+ </span>
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+ <span class="summary_desc"><div class='inline'><p>
135
+ join multiple columns, with optional delimiter.
136
+ </p>
137
+ </div></span>
138
+
139
+ </li>
140
+
141
+
142
+ <li class="public ">
143
+ <span class="summary_signature">
144
+
145
+ <a href="#joinbr-class_method" title="joinbr (class method)">+ (Object) <strong>joinbr</strong>(*args) </a>
146
+
147
+
148
+
149
+ </span>
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+ <span class="summary_desc"><div class='inline'></div></span>
159
+
160
+ </li>
161
+
162
+
163
+ <li class="public ">
164
+ <span class="summary_signature">
165
+
166
+ <a href="#joincomma-class_method" title="joincomma (class method)">+ (Object) <strong>joincomma</strong>(*args) </a>
167
+
168
+
169
+
170
+ </span>
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+ <span class="summary_desc"><div class='inline'></div></span>
180
+
181
+ </li>
182
+
183
+
184
+ <li class="public ">
185
+ <span class="summary_signature">
186
+
187
+ <a href="#link-class_method" title="link (class method)">+ (Object) <strong>link</strong>(linkname, href) </a>
188
+
189
+
190
+
191
+ </span>
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+ <span class="summary_desc"><div class='inline'><p>
201
+ format as a link, if the href is empty don&#8217;t make the link active.
202
+ </p>
203
+ </div></span>
204
+
205
+ </li>
206
+
207
+
208
+ <li class="public ">
209
+ <span class="summary_signature">
210
+
211
+ <a href="#markdown-class_method" title="markdown (class method)">+ (Object) <strong>markdown</strong>(cell) </a>
212
+
105
213
 
106
- </span>
214
+
215
+ </span>
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+ <span class="summary_desc"><div class='inline'><p>
225
+ markdown formatting in tablefu cells.
226
+ </p>
227
+ </div></span>
107
228
 
108
229
  </li>
109
230
 
231
+
232
+ <li class="public ">
233
+ <span class="summary_signature">
234
+
235
+ <a href="#small-class_method" title="small (class method)">+ (Object) <strong>small</strong>(cell) </a>
236
+
237
+
238
+
239
+ </span>
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+ <span class="summary_desc"><div class='inline'><p>
249
+ make it small.
250
+ </p>
251
+ </div></span>
252
+
253
+ </li>
254
+
255
+
256
+ <li class="public ">
257
+ <span class="summary_signature">
258
+
259
+ <a href="#strong-class_method" title="strong (class method)">+ (Object) <strong>strong</strong>(cell) </a>
260
+
261
+
110
262
 
111
- </ul>
263
+ </span>
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+ <span class="summary_desc"><div class='inline'><p>
273
+ make it strong.
274
+ </p>
275
+ </div></span>
276
+
277
+ </li>
278
+
279
+
280
+ </ul>
281
+
282
+
112
283
 
113
284
 
114
285
  <div id="class_method_details" class="method_details_list">
@@ -162,6 +333,274 @@ TableFu formatters.
162
333
  </td>
163
334
  </tr>
164
335
  </table>
336
+ </div>
337
+
338
+ <div class="method_details ">
339
+ <p class="signature " id="join-class_method">
340
+
341
+ + (<tt>Object</tt>) <strong>join</strong>(*args)
342
+
343
+
344
+
345
+ </p><div class="docstring">
346
+ <div class="discussion">
347
+ <p>
348
+ join multiple columns, with optional delimiter
349
+ </p>
350
+
351
+
352
+ </div>
353
+ </div>
354
+ <div class="tags">
355
+
356
+ </div><table class="source_code">
357
+ <tr>
358
+ <td>
359
+ <pre class="lines">
360
+
361
+
362
+ 251
363
+ 252
364
+ 253</pre>
365
+ </td>
366
+ <td>
367
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 251</span>
368
+
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
+ <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>
371
+ <span class='end end kw'>end</span>
372
+ </pre>
373
+ </td>
374
+ </tr>
375
+ </table>
376
+ </div>
377
+
378
+ <div class="method_details ">
379
+ <p class="signature " id="joinbr-class_method">
380
+
381
+ + (<tt>Object</tt>) <strong>joinbr</strong>(*args)
382
+
383
+
384
+
385
+ </p><table class="source_code">
386
+ <tr>
387
+ <td>
388
+ <pre class="lines">
389
+
390
+
391
+ 255
392
+ 256
393
+ 257</pre>
394
+ </td>
395
+ <td>
396
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 255</span>
397
+
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
+ <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>
400
+ <span class='end end kw'>end</span>
401
+ </pre>
402
+ </td>
403
+ </tr>
404
+ </table>
405
+ </div>
406
+
407
+ <div class="method_details ">
408
+ <p class="signature " id="joincomma-class_method">
409
+
410
+ + (<tt>Object</tt>) <strong>joincomma</strong>(*args)
411
+
412
+
413
+
414
+ </p><table class="source_code">
415
+ <tr>
416
+ <td>
417
+ <pre class="lines">
418
+
419
+
420
+ 259
421
+ 260
422
+ 261</pre>
423
+ </td>
424
+ <td>
425
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 259</span>
426
+
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
+ <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>
429
+ <span class='end end kw'>end</span>
430
+ </pre>
431
+ </td>
432
+ </tr>
433
+ </table>
434
+ </div>
435
+
436
+ <div class="method_details ">
437
+ <p class="signature " id="link-class_method">
438
+
439
+ + (<tt>Object</tt>) <strong>link</strong>(linkname, href)
440
+
441
+
442
+
443
+ </p><div class="docstring">
444
+ <div class="discussion">
445
+ <p>
446
+ format as a link, if the href is empty don&#8217;t make the link active
447
+ </p>
448
+
449
+
450
+ </div>
451
+ </div>
452
+ <div class="tags">
453
+
454
+ </div><table class="source_code">
455
+ <tr>
456
+ <td>
457
+ <pre class="lines">
458
+
459
+
460
+ 231
461
+ 232
462
+ 233
463
+ 234
464
+ 235
465
+ 236
466
+ 237
467
+ 238</pre>
468
+ </td>
469
+ <td>
470
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 231</span>
471
+
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
+ <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>
474
+ <span class='if if kw'>if</span> <span class='notop op'>!</span><span class='href identifier id'>href</span><span class='dot token'>.</span><span class='value identifier id'>value</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span> <span class='andop op'>&amp;&amp;</span> <span class='notop op'>!</span><span class='href identifier id'>href</span><span class='dot token'>.</span><span class='value identifier id'>value</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='lparen token'>(</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='empty? fid id'>empty?</span>
475
+ <span class='dstring node'>&quot;&lt;a href=\&quot;#{href}\&quot; title=\&quot;#{title}\&quot;&gt;#{linkname}&lt;/a&gt;&quot;</span>
476
+ <span class='else else kw'>else</span>
477
+ <span class='dstring node'>&quot;&lt;a title=\&quot;#{title}\&quot;&gt;#{linkname}&lt;/a&gt;&quot;</span>
478
+ <span class='end end kw'>end</span>
479
+ <span class='end end kw'>end</span>
480
+ </pre>
481
+ </td>
482
+ </tr>
483
+ </table>
484
+ </div>
485
+
486
+ <div class="method_details ">
487
+ <p class="signature " id="markdown-class_method">
488
+
489
+ + (<tt>Object</tt>) <strong>markdown</strong>(cell)
490
+
491
+
492
+
493
+ </p><div class="docstring">
494
+ <div class="discussion">
495
+ <p>
496
+ markdown formatting in tablefu cells
497
+ </p>
498
+
499
+
500
+ </div>
501
+ </div>
502
+ <div class="tags">
503
+
504
+ </div><table class="source_code">
505
+ <tr>
506
+ <td>
507
+ <pre class="lines">
508
+
509
+
510
+ 226
511
+ 227
512
+ 228</pre>
513
+ </td>
514
+ <td>
515
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 226</span>
516
+
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
+ <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>
519
+ <span class='end end kw'>end</span>
520
+ </pre>
521
+ </td>
522
+ </tr>
523
+ </table>
524
+ </div>
525
+
526
+ <div class="method_details ">
527
+ <p class="signature " id="small-class_method">
528
+
529
+ + (<tt>Object</tt>) <strong>small</strong>(cell)
530
+
531
+
532
+
533
+ </p><div class="docstring">
534
+ <div class="discussion">
535
+ <p>
536
+ make it small
537
+ </p>
538
+
539
+
540
+ </div>
541
+ </div>
542
+ <div class="tags">
543
+
544
+ </div><table class="source_code">
545
+ <tr>
546
+ <td>
547
+ <pre class="lines">
548
+
549
+
550
+ 246
551
+ 247
552
+ 248</pre>
553
+ </td>
554
+ <td>
555
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 246</span>
556
+
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
+ <span class='dstring node'>&quot;&lt;small&gt;#{cell}&lt;/small&gt;&quot;</span>
559
+ <span class='end end kw'>end</span>
560
+ </pre>
561
+ </td>
562
+ </tr>
563
+ </table>
564
+ </div>
565
+
566
+ <div class="method_details ">
567
+ <p class="signature " id="strong-class_method">
568
+
569
+ + (<tt>Object</tt>) <strong>strong</strong>(cell)
570
+
571
+
572
+
573
+ </p><div class="docstring">
574
+ <div class="discussion">
575
+ <p>
576
+ make it strong
577
+ </p>
578
+
579
+
580
+ </div>
581
+ </div>
582
+ <div class="tags">
583
+
584
+ </div><table class="source_code">
585
+ <tr>
586
+ <td>
587
+ <pre class="lines">
588
+
589
+
590
+ 241
591
+ 242
592
+ 243</pre>
593
+ </td>
594
+ <td>
595
+ <pre class="code"><span class="info file"># File 'lib/table_setter/table.rb', line 241</span>
596
+
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
+ <span class='dstring node'>&quot;&lt;strong&gt;#{cell}&lt;/strong&gt;&quot;</span>
599
+ <span class='end end kw'>end</span>
600
+ </pre>
601
+ </td>
602
+ </tr>
603
+ </table>
165
604
  </div>
166
605
 
167
606
  </div>
@@ -169,9 +608,9 @@ TableFu formatters.
169
608
  </div>
170
609
 
171
610
  <div id="footer">
172
- Generated on Tue Mar 9 17:18:07 2010 by
173
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
174
- 0.5.3 (ruby-1.8.7).
611
+ Generated on Thu Nov 4 18:34:17 2010 by
612
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
613
+ 0.6.1 (ruby-1.8.7).
175
614
  </div>
176
615
 
177
616
  </body>