table_fu 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/.gitignore +4 -0
  2. data/LICENSE +20 -0
  3. data/README +37 -0
  4. data/Rakefile +58 -0
  5. data/VERSION.yml +5 -0
  6. data/doc/TableFu/Datum.html +743 -0
  7. data/doc/TableFu/Formatting.html +469 -0
  8. data/doc/TableFu/Header.html +198 -0
  9. data/doc/TableFu/Row.html +508 -0
  10. data/doc/TableFu.html +1806 -0
  11. data/doc/_index.html +154 -0
  12. data/doc/class_list.html +36 -0
  13. data/doc/css/common.css +1 -0
  14. data/doc/css/full_list.css +50 -0
  15. data/doc/css/style.css +268 -0
  16. data/doc/file.README.html +89 -0
  17. data/doc/file_list.html +38 -0
  18. data/doc/frames.html +13 -0
  19. data/doc/index.html +89 -0
  20. data/doc/js/app.js +99 -0
  21. data/doc/js/full_list.js +106 -0
  22. data/doc/js/jquery.js +19 -0
  23. data/doc/method_list.html +363 -0
  24. data/doc/top-level-namespace.html +85 -0
  25. data/documentation/css/dawn.css +121 -0
  26. data/documentation/css/styles.css +63 -0
  27. data/documentation/images/proplogo.png +0 -0
  28. data/documentation/index.html.erb +148 -0
  29. data/examples/columns.rb +7 -0
  30. data/examples/columns_hidden.rb +5 -0
  31. data/examples/faceting.rb +2 -0
  32. data/examples/formatting_options.rb +6 -0
  33. data/examples/last_name.rb +4 -0
  34. data/examples/link.rb +11 -0
  35. data/examples/only.rb +6 -0
  36. data/examples/rails_helpers.rb +3 -0
  37. data/examples/sort_by_column.rb +11 -0
  38. data/examples/sort_by_number.rb +0 -0
  39. data/examples/totals.rb +2 -0
  40. data/examples/zap_joyce.rb +3 -0
  41. data/index.html +210 -0
  42. data/lib/table_fu/formatting.rb +52 -0
  43. data/lib/table_fu.rb +386 -0
  44. data/spec/assets/sample.csv +476 -0
  45. data/spec/assets/test.csv +8 -0
  46. data/spec/assets/test_macro.csv +8 -0
  47. data/spec/rcov.opts +2 -0
  48. data/spec/readme_example_spec.rb +39 -0
  49. data/spec/spec.opts +4 -0
  50. data/spec/spec_helper.rb +4 -0
  51. data/spec/table_fu_spec.rb +221 -0
  52. data/table_fu.gemspec +112 -0
  53. metadata +141 -0
@@ -0,0 +1,363 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html>
4
+ <head>
5
+ <meta name="Content-Type" content="text/html; charset=UTF-8" />
6
+ <link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
7
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
8
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
9
+ <script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
10
+ <base id="base_target" target="_parent" />
11
+ </head>
12
+ <body>
13
+ <script type="text/javascript" charset="utf-8">
14
+ if (window.top.frames.main) {
15
+ document.getElementById('base_target').target = 'main';
16
+ document.body.className = 'frames';
17
+ }
18
+ </script>
19
+ <div id="content">
20
+ <h1 id="full_list_header">Method List</h1>
21
+ <div id="nav">
22
+ <a target="_self" href="class_list.html">Classes</a> |
23
+ <a target="_self" href="method_list.html">Methods</a> |
24
+ <a target="_self" href="file_list.html">Files</a>
25
+ </div>
26
+ <div id="search">Search: <input type="text" /></div>
27
+
28
+ <ul id="full_list" class="methods">
29
+
30
+
31
+ <li class="r1 ">
32
+ <a href="TableFu/Row.html#%3C%3D%3E-instance_method" title="TableFu::Row#<=> (method)">#<=></a>
33
+
34
+ <small>TableFu::Row</small>
35
+
36
+ </li>
37
+
38
+
39
+ <li class="r2 ">
40
+ <a href="TableFu.html#col_opts-instance_method" title="TableFu#col_opts (method)">#col_opts</a>
41
+
42
+ <small>TableFu</small>
43
+
44
+ </li>
45
+
46
+
47
+ <li class="r1 ">
48
+ <a href="TableFu.html#column_headers-instance_method" title="TableFu#column_headers (method)">#column_headers</a>
49
+
50
+ <small>TableFu</small>
51
+
52
+ </li>
53
+
54
+
55
+ <li class="r2 ">
56
+ <a href="TableFu/Datum.html#column_name-instance_method" title="TableFu::Datum#column_name (method)">#column_name</a>
57
+
58
+ <small>TableFu::Datum</small>
59
+
60
+ </li>
61
+
62
+
63
+ <li class="r1 ">
64
+ <a href="TableFu.html#columns-instance_method" title="TableFu#columns (method)">#columns</a>
65
+
66
+ <small>TableFu</small>
67
+
68
+ </li>
69
+
70
+
71
+ <li class="r2 ">
72
+ <a href="TableFu/Row.html#columns-instance_method" title="TableFu::Row#columns (method)">#columns</a>
73
+
74
+ <small>TableFu::Row</small>
75
+
76
+ </li>
77
+
78
+
79
+ <li class="r1 ">
80
+ <a href="TableFu.html#columns%3D-instance_method" title="TableFu#columns= (method)">#columns=</a>
81
+
82
+ <small>TableFu</small>
83
+
84
+ </li>
85
+
86
+
87
+ <li class="r2 ">
88
+ <a href="TableFu/Formatting.html#currency-class_method" title="TableFu::Formatting.currency (method)">currency</a>
89
+
90
+ <small>TableFu::Formatting</small>
91
+
92
+ </li>
93
+
94
+
95
+ <li class="r1 ">
96
+ <a href="TableFu/Row.html#datum_for-instance_method" title="TableFu::Row#datum_for (method)">#datum_for</a>
97
+
98
+ <small>TableFu::Row</small>
99
+
100
+ </li>
101
+
102
+
103
+ <li class="r2 ">
104
+ <a href="TableFu.html#delete_rows%21-instance_method" title="TableFu#delete_rows! (method)">#delete_rows!</a>
105
+
106
+ <small>TableFu</small>
107
+
108
+ </li>
109
+
110
+
111
+ <li class="r1 ">
112
+ <a href="TableFu.html#deleted_rows-instance_method" title="TableFu#deleted_rows (method)">#deleted_rows</a>
113
+
114
+ <small>TableFu</small>
115
+
116
+ </li>
117
+
118
+
119
+ <li class="r2 ">
120
+ <a href="TableFu.html#faceted%3F-instance_method" title="TableFu#faceted? (method)">#faceted?</a>
121
+
122
+ <small>TableFu</small>
123
+
124
+ </li>
125
+
126
+
127
+ <li class="r1 ">
128
+ <a href="TableFu.html#faceted_by-instance_method" title="TableFu#faceted_by (method)">#faceted_by</a>
129
+
130
+ <small>TableFu</small>
131
+
132
+ </li>
133
+
134
+
135
+ <li class="r2 ">
136
+ <a href="TableFu.html#faceted_on-instance_method" title="TableFu#faceted_on (method)">#faceted_on</a>
137
+
138
+ <small>TableFu</small>
139
+
140
+ </li>
141
+
142
+
143
+ <li class="r1 ">
144
+ <a href="TableFu.html#formatting-instance_method" title="TableFu#formatting (method)">#formatting</a>
145
+
146
+ <small>TableFu</small>
147
+
148
+ </li>
149
+
150
+
151
+ <li class="r2 ">
152
+ <a href="TableFu.html#formatting%3D-instance_method" title="TableFu#formatting= (method)">#formatting=</a>
153
+
154
+ <small>TableFu</small>
155
+
156
+ </li>
157
+
158
+
159
+ <li class="r1 ">
160
+ <a href="TableFu.html#headers-instance_method" title="TableFu#headers (method)">#headers</a>
161
+
162
+ <small>TableFu</small>
163
+
164
+ </li>
165
+
166
+
167
+ <li class="r2 ">
168
+ <a href="TableFu/Datum.html#initialize-instance_method" title="TableFu::Datum#initialize (method)">#initialize</a>
169
+
170
+ <small>TableFu::Datum</small>
171
+
172
+ </li>
173
+
174
+
175
+ <li class="r1 ">
176
+ <a href="TableFu.html#initialize-instance_method" title="TableFu#initialize (method)">#initialize</a>
177
+
178
+ <small>TableFu</small>
179
+
180
+ </li>
181
+
182
+
183
+ <li class="r2 ">
184
+ <a href="TableFu/Row.html#initialize-instance_method" title="TableFu::Row#initialize (method)">#initialize</a>
185
+
186
+ <small>TableFu::Row</small>
187
+
188
+ </li>
189
+
190
+
191
+ <li class="r1 ">
192
+ <a href="TableFu/Formatting.html#last_name-class_method" title="TableFu::Formatting.last_name (method)">last_name</a>
193
+
194
+ <small>TableFu::Formatting</small>
195
+
196
+ </li>
197
+
198
+
199
+ <li class="r2 ">
200
+ <a href="TableFu/Formatting.html#last_name_first_name-class_method" title="TableFu::Formatting.last_name_first_name (method)">last_name_first_name</a>
201
+
202
+ <small>TableFu::Formatting</small>
203
+
204
+ </li>
205
+
206
+
207
+ <li class="r1 ">
208
+ <a href="TableFu/Formatting.html#link-class_method" title="TableFu::Formatting.link (method)">link</a>
209
+
210
+ <small>TableFu::Formatting</small>
211
+
212
+ </li>
213
+
214
+
215
+ <li class="r2 ">
216
+ <a href="TableFu/Datum.html#macro_value-instance_method" title="TableFu::Datum#macro_value (method)">#macro_value</a>
217
+
218
+ <small>TableFu::Datum</small>
219
+
220
+ </li>
221
+
222
+
223
+ <li class="r1 ">
224
+ <a href="TableFu/Datum.html#method_missing-instance_method" title="TableFu::Datum#method_missing (method)">#method_missing</a>
225
+
226
+ <small>TableFu::Datum</small>
227
+
228
+ </li>
229
+
230
+
231
+ <li class="r2 ">
232
+ <a href="TableFu/Formatting.html#method_missing-class_method" title="TableFu::Formatting.method_missing (method)">method_missing</a>
233
+
234
+ <small>TableFu::Formatting</small>
235
+
236
+ </li>
237
+
238
+
239
+ <li class="r1 ">
240
+ <a href="TableFu.html#only%21-instance_method" title="TableFu#only! (method)">#only!</a>
241
+
242
+ <small>TableFu</small>
243
+
244
+ </li>
245
+
246
+
247
+ <li class="r2 ">
248
+ <a href="TableFu/Datum.html#options-instance_method" title="TableFu::Datum#options (method)">#options</a>
249
+
250
+ <small>TableFu::Datum</small>
251
+
252
+ </li>
253
+
254
+
255
+ <li class="r1 ">
256
+ <a href="TableFu.html#row_at-instance_method" title="TableFu#row_at (method)">#row_at</a>
257
+
258
+ <small>TableFu</small>
259
+
260
+ </li>
261
+
262
+
263
+ <li class="r2 ">
264
+ <a href="TableFu/Row.html#row_num-instance_method" title="TableFu::Row#row_num (method)">#row_num</a>
265
+
266
+ <small>TableFu::Row</small>
267
+
268
+ </li>
269
+
270
+
271
+ <li class="r1 ">
272
+ <a href="TableFu.html#rows-instance_method" title="TableFu#rows (method)">#rows</a>
273
+
274
+ <small>TableFu</small>
275
+
276
+ </li>
277
+
278
+
279
+ <li class="r2 ">
280
+ <a href="TableFu.html#sorted_by-instance_method" title="TableFu#sorted_by (method)">#sorted_by</a>
281
+
282
+ <small>TableFu</small>
283
+
284
+ </li>
285
+
286
+
287
+ <li class="r1 ">
288
+ <a href="TableFu.html#sorted_by%3D-instance_method" title="TableFu#sorted_by= (method)">#sorted_by=</a>
289
+
290
+ <small>TableFu</small>
291
+
292
+ </li>
293
+
294
+
295
+ <li class="r2 ">
296
+ <a href="TableFu.html#sum_totals_for-instance_method" title="TableFu#sum_totals_for (method)">#sum_totals_for</a>
297
+
298
+ <small>TableFu</small>
299
+
300
+ </li>
301
+
302
+
303
+ <li class="r1 ">
304
+ <a href="TableFu.html#table-instance_method" title="TableFu#table (method)">#table</a>
305
+
306
+ <small>TableFu</small>
307
+
308
+ </li>
309
+
310
+
311
+ <li class="r2 ">
312
+ <a href="TableFu.html#to_numeric-instance_method" title="TableFu#to_numeric (method)">#to_numeric</a>
313
+
314
+ <small>TableFu</small>
315
+
316
+ </li>
317
+
318
+
319
+ <li class="r1 ">
320
+ <a href="TableFu/Datum.html#to_s-instance_method" title="TableFu::Datum#to_s (method)">#to_s</a>
321
+
322
+ <small>TableFu::Datum</small>
323
+
324
+ </li>
325
+
326
+
327
+ <li class="r2 ">
328
+ <a href="TableFu/Header.html#to_s-instance_method" title="TableFu::Header#to_s (method)">#to_s</a>
329
+
330
+ <small>TableFu::Header</small>
331
+
332
+ </li>
333
+
334
+
335
+ <li class="r1 ">
336
+ <a href="TableFu.html#total_for-instance_method" title="TableFu#total_for (method)">#total_for</a>
337
+
338
+ <small>TableFu</small>
339
+
340
+ </li>
341
+
342
+
343
+ <li class="r2 ">
344
+ <a href="TableFu.html#totals-instance_method" title="TableFu#totals (method)">#totals</a>
345
+
346
+ <small>TableFu</small>
347
+
348
+ </li>
349
+
350
+
351
+ <li class="r1 ">
352
+ <a href="TableFu/Datum.html#value-instance_method" title="TableFu::Datum#value (method)">#value</a>
353
+
354
+ <small>TableFu::Datum</small>
355
+
356
+ </li>
357
+
358
+
359
+ </ul>
360
+ </div>
361
+ </body>
362
+ </html>
363
+
@@ -0,0 +1,85 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta name="Content-Type" content="text/html; charset=UTF-8" />
6
+ <title>Top Level Namespace</title>
7
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <script type="text/javascript" charset="utf-8">
20
+ if (window.top.frames.main) document.body.className = 'frames';
21
+ </script>
22
+
23
+ <div id="header">
24
+ <div id="menu">
25
+
26
+ <a href="_index.html">Index</a> &raquo;
27
+
28
+
29
+ <span class="title">Top Level Namespace</span>
30
+
31
+
32
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
33
+ </div>
34
+
35
+ <div id="search">
36
+ <a id="class_list_link" href="#">Class List</a>
37
+ <a id="method_list_link" href="#">Method List</a>
38
+ <a id ="file_list_link" href="#">File List</a>
39
+ </div>
40
+
41
+ <div class="clear"></div>
42
+ </div>
43
+
44
+ <iframe id="search_frame"></iframe>
45
+
46
+ <div id="content"><h1>Top Level Namespace
47
+
48
+
49
+ </h1>
50
+
51
+ <dl class="box">
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+ </dl>
60
+ <div class="clear"></div>
61
+
62
+ <h2>Defined Under Namespace</h2>
63
+ <p class="children">
64
+
65
+
66
+
67
+
68
+ <strong class="classes">Classes:</strong> <a href="TableFu.html" title="TableFu (class)">TableFu</a>
69
+
70
+
71
+ </p>
72
+
73
+
74
+
75
+
76
+ </div>
77
+
78
+ <div id="footer">
79
+ Generated on Tue Mar 9 17:16:38 2010 by
80
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
81
+ 0.5.3 (ruby-1.8.7).
82
+ </div>
83
+
84
+ </body>
85
+ </html>
@@ -0,0 +1,121 @@
1
+ pre.dawn .MetaSeparator {
2
+ font-weight: bold;
3
+ background-color: #DCDCDC;
4
+ color: #19356D;
5
+ }
6
+ pre.dawn .SupportVariable {
7
+ color: #234A97;
8
+ }
9
+ pre.dawn .Constant {
10
+ font-weight: bold;
11
+ color: #811F24;
12
+ }
13
+ pre.dawn .EmbeddedSource {
14
+ background-color: #829AC2;
15
+ }
16
+ pre.dawn .StringRegexpConstantCharacterEscape {
17
+ font-weight: bold;
18
+ color: #811F24;
19
+ }
20
+ pre.dawn .Support {
21
+ color: #691C97;
22
+ }
23
+ pre.dawn .MarkupList {
24
+ color: #693A17;
25
+ }
26
+ pre.dawn .Storage {
27
+ color: #A71D5D;
28
+ font-style: italic;
29
+ }
30
+ pre.dawn .line-numbers {
31
+ background-color: #7496CF;
32
+ color: #000000;
33
+ }
34
+ pre.dawn .StringConstant {
35
+ font-weight: bold;
36
+ color: #696969;
37
+ }
38
+ pre.dawn .MarkupUnderline {
39
+ text-decoration: underline;
40
+ color: #080808;
41
+ }
42
+ pre.dawn .MarkupHeading {
43
+ font-weight: bold;
44
+ color: #19356D;
45
+ }
46
+ pre.dawn .SupportConstant {
47
+ color: #B4371F;
48
+ }
49
+ pre.dawn .MarkupQuote {
50
+ background-color: #C5C5C5;
51
+ color: #0B6125;
52
+ font-style: italic;
53
+ }
54
+ pre.dawn .StringRegexpSpecial {
55
+ font-weight: bold;
56
+ color: #CF5628;
57
+ }
58
+ pre.dawn .InvalidIllegal {
59
+ background-color: #B52A1D;
60
+ color: #F8F8F8;
61
+ font-style: italic;
62
+ }
63
+ pre.dawn .MarkupDeleted {
64
+ color: #B52A1D;
65
+ }
66
+ pre.dawn .MarkupRaw {
67
+ background-color: #C5C5C5;
68
+ color: #234A97;
69
+ }
70
+ pre.dawn .SupportFunction {
71
+ color: #693A17;
72
+ }
73
+ pre.dawn .PunctuationSeparator {
74
+ color: #794938;
75
+ }
76
+ pre.dawn .StringRegexp {
77
+ color: #CF5628;
78
+ }
79
+ pre.dawn .StringEmbeddedSource {
80
+ background-color: #829AC2;
81
+ color: #080808;
82
+ }
83
+ pre.dawn .MarkupLink {
84
+ color: #234A97;
85
+ font-style: italic;
86
+ }
87
+ pre.dawn .MarkupBold {
88
+ font-weight: bold;
89
+ color: #080808;
90
+ }
91
+ pre.dawn .StringVariable {
92
+ color: #234A97;
93
+ }
94
+ pre.dawn .String {
95
+ color: #0B6125;
96
+ }
97
+ pre.dawn .Keyword {
98
+ color: #794938;
99
+ }
100
+ pre.dawn {
101
+ background-color: #F5F5F5;
102
+ color: #080808;
103
+ }
104
+ pre.dawn .MarkupItalic {
105
+ color: #080808;
106
+ font-style: italic;
107
+ }
108
+ pre.dawn .InvalidDeprecated {
109
+ font-weight: bold;
110
+ color: #B52A1D;
111
+ }
112
+ pre.dawn .Variable {
113
+ color: #234A97;
114
+ }
115
+ pre.dawn .Entity {
116
+ color: #BF4F24;
117
+ }
118
+ pre.dawn .Comment {
119
+ color: #5A525F;
120
+ font-style: italic;
121
+ }
@@ -0,0 +1,63 @@
1
+ body {
2
+ font-family: Garamond, Baskerville, "Baskerville Old Face", "Hoefler Text", "Times New Roman", serif;
3
+ font-size: 16px;
4
+ line-height:20px;
5
+ width: 600px;
6
+ margin-left:auto;
7
+ margin-right:auto;
8
+ background: #efefef;
9
+ }
10
+ a.propublica{
11
+ position:absolute;
12
+ background: transparent url(../images/proplogo.png) no-repeat -40px -20px;
13
+ top: 0;
14
+ left: 0;
15
+ width: 160px;
16
+ height: 141px;
17
+ }
18
+
19
+
20
+ .dir, .file{
21
+ padding-left: 25px;
22
+ background: transparent url(../images/folder.png) no-repeat 3px 0px;
23
+ margin-top: .25em;
24
+ margin-bottom: .25em;
25
+
26
+ }
27
+
28
+ .file{
29
+ background: transparent url(../images/text-x-generic.png) no-repeat 6px 3px;
30
+ }
31
+
32
+ pre {
33
+ font-family: Monaco, Courier, monospace;
34
+ font-size: 12px;
35
+ line-height: 16px;
36
+ padding:0.5em 1em;
37
+ overflow: auto;
38
+ border-left: 4px solid #143D8D;
39
+ margin-left: 1em;
40
+ }
41
+ a {
42
+ color: #143D8D;
43
+ text-decoration: none;
44
+ font-weight: bold;
45
+ }
46
+ ul {
47
+ margin:0 1em;
48
+ padding:0;
49
+ list-style: none;
50
+ }
51
+ li {
52
+ margin:0;
53
+ padding:0;
54
+ }
55
+ strong {
56
+ font-family: Monaco, Courier, monospace;
57
+ font-weight: normal;
58
+ background: #dadee5;
59
+ border: 1px solid #aaa;
60
+ padding: 1px 2px;
61
+ font-size: 12px;
62
+
63
+ }
Binary file