table_setter 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. data/.document +5 -0
  2. data/.gitignore +20 -0
  3. data/LICENSE +20 -0
  4. data/README +10 -0
  5. data/Rakefile +66 -0
  6. data/TODO +3 -0
  7. data/VERSION.yml +5 -0
  8. data/bin/table-setter +5 -0
  9. data/doc/TableFu/Formatting.html +178 -0
  10. data/doc/TableSetter/App.html +176 -0
  11. data/doc/TableSetter/Command.html +376 -0
  12. data/doc/TableSetter/Table.html +1813 -0
  13. data/doc/TableSetter.html +292 -0
  14. data/doc/_index.html +146 -0
  15. data/doc/class_list.html +36 -0
  16. data/doc/css/common.css +1 -0
  17. data/doc/css/full_list.css +50 -0
  18. data/doc/css/style.css +268 -0
  19. data/doc/file.README.html +68 -0
  20. data/doc/file_list.html +38 -0
  21. data/doc/frames.html +13 -0
  22. data/doc/index.html +68 -0
  23. data/doc/js/app.js +99 -0
  24. data/doc/js/full_list.js +106 -0
  25. data/doc/js/jquery.js +19 -0
  26. data/doc/method_list.html +291 -0
  27. data/doc/top-level-namespace.html +85 -0
  28. data/documentation/css/dawn.css +121 -0
  29. data/documentation/css/styles.css +63 -0
  30. data/documentation/images/folder.png +0 -0
  31. data/documentation/images/key.png +0 -0
  32. data/documentation/images/proplogo.png +0 -0
  33. data/documentation/images/publish.png +0 -0
  34. data/documentation/images/text-x-generic.png +0 -0
  35. data/documentation/index.html.erb +221 -0
  36. data/documentation/tables/example/index.html +4074 -0
  37. data/documentation/tables/example_faceted/index.html +17239 -0
  38. data/documentation/tables/example_formatted/index.html +861 -0
  39. data/documentation/tables/example_local/1/index.html +6084 -0
  40. data/documentation/tables/example_local/10/index.html +6084 -0
  41. data/documentation/tables/example_local/11/index.html +6084 -0
  42. data/documentation/tables/example_local/12/index.html +6084 -0
  43. data/documentation/tables/example_local/13/index.html +6084 -0
  44. data/documentation/tables/example_local/14/index.html +6084 -0
  45. data/documentation/tables/example_local/15/index.html +6084 -0
  46. data/documentation/tables/example_local/16/index.html +6084 -0
  47. data/documentation/tables/example_local/17/index.html +6084 -0
  48. data/documentation/tables/example_local/18/index.html +6084 -0
  49. data/documentation/tables/example_local/19/index.html +6084 -0
  50. data/documentation/tables/example_local/2/index.html +6084 -0
  51. data/documentation/tables/example_local/20/index.html +6084 -0
  52. data/documentation/tables/example_local/21/index.html +6084 -0
  53. data/documentation/tables/example_local/22/index.html +6084 -0
  54. data/documentation/tables/example_local/23/index.html +6084 -0
  55. data/documentation/tables/example_local/24/index.html +1404 -0
  56. data/documentation/tables/example_local/3/index.html +6084 -0
  57. data/documentation/tables/example_local/4/index.html +6084 -0
  58. data/documentation/tables/example_local/5/index.html +6084 -0
  59. data/documentation/tables/example_local/6/index.html +6084 -0
  60. data/documentation/tables/example_local/7/index.html +6084 -0
  61. data/documentation/tables/example_local/8/index.html +6084 -0
  62. data/documentation/tables/example_local/9/index.html +6084 -0
  63. data/documentation/tables/example_local/index.html +6084 -0
  64. data/documentation/tables/favicon.ico +0 -0
  65. data/documentation/tables/images/th_arrow_asc.gif +0 -0
  66. data/documentation/tables/images/th_arrow_desc.gif +0 -0
  67. data/documentation/tables/index.html +48 -0
  68. data/documentation/tables/javascripts/application.js +32 -0
  69. data/documentation/tables/javascripts/jquery.tablesorter.js +852 -0
  70. data/documentation/tables/javascripts/jquery.tablesorter.multipagefilter.js +111 -0
  71. data/documentation/tables/javascripts/jquery.tablesorter.pager.js +183 -0
  72. data/documentation/tables/stylesheets/stylesheet.css +67 -0
  73. data/index.html +238 -0
  74. data/lib/table_setter/app.rb +54 -0
  75. data/lib/table_setter/command.rb +139 -0
  76. data/lib/table_setter/table.rb +226 -0
  77. data/lib/table_setter.rb +32 -0
  78. data/spec/spec.opts +1 -0
  79. data/spec/spec_helper.rb +11 -0
  80. data/spec/table-setter-app_spec.rb +24 -0
  81. data/spec/table-setter_spec.rb +179 -0
  82. data/table_setter.gemspec +171 -0
  83. data/template/config.ru +33 -0
  84. data/template/public/favicon.ico +0 -0
  85. data/template/public/images/th_arrow_asc.gif +0 -0
  86. data/template/public/images/th_arrow_desc.gif +0 -0
  87. data/template/public/javascripts/application.js +32 -0
  88. data/template/public/javascripts/jquery.tablesorter.js +852 -0
  89. data/template/public/javascripts/jquery.tablesorter.multipagefilter.js +111 -0
  90. data/template/public/javascripts/jquery.tablesorter.pager.js +183 -0
  91. data/template/public/stylesheets/stylesheet.css +74 -0
  92. data/template/tables/example.yml +21 -0
  93. data/template/tables/example_faceted.yml +27 -0
  94. data/template/tables/example_formatted.csv +1 -0
  95. data/template/tables/example_formatted.yml +27 -0
  96. data/template/tables/example_local.csv +5806 -0
  97. data/template/tables/example_local.yml +27 -0
  98. data/template/views/404.erb +4 -0
  99. data/template/views/500.erb +4 -0
  100. data/template/views/index.erb +7 -0
  101. data/template/views/layout.erb +34 -0
  102. data/template/views/table.erb +78 -0
  103. metadata +240 -0
@@ -0,0 +1,376 @@
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>Class: TableSetter::Command</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 (C)</a> &raquo;
27
+ <span class='title'><a href="../TableSetter.html" title="TableSetter (module)">TableSetter</a></span>
28
+ &raquo;
29
+ <span class="title">Command</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>Class: TableSetter::Command
47
+
48
+
49
+ </h1>
50
+
51
+ <dl class="box">
52
+
53
+ <dt class="r1">Inherits:</dt>
54
+ <dd class="r1">
55
+ <span class="inheritName">Object</span>
56
+
57
+ <ul class="fullTree">
58
+ <li>Object</li>
59
+
60
+ <li class="next">TableSetter::Command</li>
61
+
62
+ </ul>
63
+ <a href="#" class="inheritanceTree">show all</a>
64
+
65
+ </dd>
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+ <dt class="r2 last">Defined in:</dt>
75
+ <dd class="r2 last">lib/table_setter/command.rb</dd>
76
+
77
+ </dl>
78
+ <div class="clear"></div>
79
+
80
+
81
+ <h2>Constant Summary</h2>
82
+
83
+ <dl class="constants">
84
+
85
+ <dt id="BANNER-constant" class="">BANNER =
86
+ <span class="summary_desc"></span>
87
+ </dt>
88
+ <dd><pre class="code"><span class='string val'>&quot;table-setter is a Sinatra application for rendering and processing CSVs from google docs into HTML.\n\nUsage:\ntable-setter COMMAND path/to/table-setter/assets OPTIONS\n\ncommands:\nstart run the development server, for deployment use config.ru\ninstall copy the table-setter assets into the the directory\nexport statically build tables in the ./out/\n\noptions:\n&quot;</span>
89
+ </pre></dd>
90
+
91
+ </dl>
92
+
93
+
94
+
95
+
96
+ <h2>Instance Method Summary</h2>
97
+
98
+ <ul class="summary">
99
+
100
+ <li class="public ">
101
+ <span class="summary_signature">
102
+
103
+ <a href="#build_out-instance_method" title="#build_out (instance method)">- (Object) <strong>build_out</strong> </a>
104
+
105
+
106
+
107
+ </span>
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+ <span class="summary_desc"></span>
116
+
117
+ </li>
118
+
119
+
120
+ <li class="public ">
121
+ <span class="summary_signature">
122
+
123
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (Command) <strong>initialize</strong> </a>
124
+
125
+
126
+
127
+ </span>
128
+
129
+ <span class="note title constructor">constructor</span>
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+ <span class="summary_desc">
138
+ A new instance of Command.
139
+
140
+ </span>
141
+
142
+ </li>
143
+
144
+
145
+ <li class="public ">
146
+ <span class="summary_signature">
147
+
148
+ <a href="#install_assets-instance_method" title="#install_assets (instance method)">- (Object) <strong>install_assets</strong> </a>
149
+
150
+
151
+
152
+ </span>
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+ <span class="summary_desc"></span>
161
+
162
+ </li>
163
+
164
+
165
+ <li class="public ">
166
+ <span class="summary_signature">
167
+
168
+ <a href="#start_server-instance_method" title="#start_server (instance method)">- (Object) <strong>start_server</strong> </a>
169
+
170
+
171
+
172
+ </span>
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+ <span class="summary_desc"></span>
181
+
182
+ </li>
183
+
184
+
185
+ </ul>
186
+ <div id="constructor_details" class="method_details_list">
187
+ <h2>Constructor Details</h2>
188
+
189
+ <div class="method_details first">
190
+ <p class="signature first" id="initialize-instance_method">
191
+
192
+ - (<tt><a href="" title="TableSetter::Command (class)">Command</a></tt>) <strong>initialize</strong>
193
+
194
+
195
+
196
+ </p><div class="docstring">
197
+ <div class="discussion">
198
+ <p>
199
+ A new instance of Command
200
+ </p>
201
+
202
+
203
+ </div>
204
+ </div>
205
+ <div class="tags">
206
+
207
+ </div><table class="source_code">
208
+ <tr>
209
+ <td>
210
+ <pre class="lines">
211
+
212
+
213
+ 25
214
+ 26
215
+ 27
216
+ 28
217
+ 29
218
+ 30
219
+ 31
220
+ 32
221
+ 33
222
+ 34
223
+ 35
224
+ 36
225
+ 37</pre>
226
+ </td>
227
+ <td>
228
+ <pre class="code"><span class="info file"># File 'lib/table_setter/command.rb', line 25</span>
229
+
230
+ <span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span>
231
+ <span class='@prefix ivar id'>@prefix</span> <span class='assign token'>=</span> <span class='string val'>&quot;&quot;</span>
232
+ <span class='parse_options identifier id'>parse_options</span>
233
+ <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>
234
+ <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>
235
+ <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>
236
+ <span class='case case kw'>case</span> <span class='command identifier id'>command</span>
237
+ <span class='when when kw'>when</span> <span class='string val'>'start'</span> <span class='then then kw'>then</span> <span class='start_server identifier id'>start_server</span>
238
+ <span class='when when kw'>when</span> <span class='string val'>'install'</span> <span class='then then kw'>then</span> <span class='install_assets identifier id'>install_assets</span>
239
+ <span class='when when kw'>when</span> <span class='string val'>'build'</span> <span class='then then kw'>then</span> <span class='build_out identifier id'>build_out</span>
240
+ <span class='else else kw'>else</span> <span class='puts identifier id'>puts</span> <span class='BANNER constant id'>BANNER</span>
241
+ <span class='end end kw'>end</span>
242
+ <span class='end end kw'>end</span>
243
+ </pre>
244
+ </td>
245
+ </tr>
246
+ </table>
247
+ </div>
248
+
249
+ </div>
250
+
251
+
252
+ <div id="instance_method_details" class="method_details_list">
253
+ <h2>Instance Method Details</h2>
254
+
255
+
256
+ <div class="method_details first">
257
+ <p class="signature first" id="build_out-instance_method">
258
+
259
+ - (<tt>Object</tt>) <strong>build_out</strong>
260
+
261
+
262
+
263
+ </p><table class="source_code">
264
+ <tr>
265
+ <td>
266
+ <pre class="lines">
267
+
268
+
269
+ 54
270
+ 55
271
+ 56
272
+ 57
273
+ 58
274
+ 59
275
+ 60
276
+ 61
277
+ 62</pre>
278
+ </td>
279
+ <td>
280
+ <pre class="code"><span class="info file"># File 'lib/table_setter/command.rb', line 54</span>
281
+
282
+ <span class='def def kw'>def</span> <span class='build_out identifier id'>build_out</span>
283
+ <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>
284
+ <span class='puts identifier id'>puts</span> <span class='string val'>&quot;\nBuilding your TableSetter files...\n\n&quot;</span>
285
+ <span class='app identifier id'>app</span> <span class='assign token'>=</span> <span class='build_rack identifier id'>build_rack</span>
286
+ <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>
287
+ <span class='build_index identifier id'>build_index</span> <span class='request identifier id'>request</span>
288
+ <span class='build_assets identifier id'>build_assets</span>
289
+ <span class='build_tables identifier id'>build_tables</span> <span class='request identifier id'>request</span>
290
+ <span class='end end kw'>end</span>
291
+ </pre>
292
+ </td>
293
+ </tr>
294
+ </table>
295
+ </div>
296
+
297
+ <div class="method_details ">
298
+ <p class="signature " id="install_assets-instance_method">
299
+
300
+ - (<tt>Object</tt>) <strong>install_assets</strong>
301
+
302
+
303
+
304
+ </p><table class="source_code">
305
+ <tr>
306
+ <td>
307
+ <pre class="lines">
308
+
309
+
310
+ 44
311
+ 45
312
+ 46
313
+ 47
314
+ 48
315
+ 49
316
+ 50</pre>
317
+ </td>
318
+ <td>
319
+ <pre class="code"><span class="info file"># File 'lib/table_setter/command.rb', line 44</span>
320
+
321
+ <span class='def def kw'>def</span> <span class='install_assets identifier id'>install_assets</span>
322
+ <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>
323
+ <span class='puts identifier id'>puts</span> <span class='string val'>&quot;\nInstalling TableSetter files...\n\n&quot;</span>
324
+ <span class='base_files identifier id'>base_files</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='path identifier id'>path</span><span class='bitor op'>|</span>
325
+ <span class='copy_file identifier id'>copy_file</span> <span class='path identifier id'>path</span><span class='comma 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='path identifier id'>path</span><span class='dot token'>.</span><span class='gsub identifier id'>gsub</span><span class='lparen token'>(</span><span class='ROOT constant id'>ROOT</span> <span class='plus op'>+</span> <span class='string val'>&quot;/template/&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;/&quot;</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
326
+ <span class='end end kw'>end</span>
327
+ <span class='end end kw'>end</span>
328
+ </pre>
329
+ </td>
330
+ </tr>
331
+ </table>
332
+ </div>
333
+
334
+ <div class="method_details ">
335
+ <p class="signature " id="start_server-instance_method">
336
+
337
+ - (<tt>Object</tt>) <strong>start_server</strong>
338
+
339
+
340
+
341
+ </p><table class="source_code">
342
+ <tr>
343
+ <td>
344
+ <pre class="lines">
345
+
346
+
347
+ 39
348
+ 40
349
+ 41
350
+ 42</pre>
351
+ </td>
352
+ <td>
353
+ <pre class="code"><span class="info file"># File 'lib/table_setter/command.rb', line 39</span>
354
+
355
+ <span class='def def kw'>def</span> <span class='start_server identifier id'>start_server</span>
356
+ <span class='app identifier id'>app</span> <span class='assign token'>=</span> <span class='build_rack identifier id'>build_rack</span>
357
+ <span class='Rack constant id'>Rack</span><span class='colon2 op'>::</span><span class='Handler constant id'>Handler</span><span class='colon2 op'>::</span><span class='Thin constant id'>Thin</span><span class='dot token'>.</span><span class='run identifier id'>run</span> <span class='app identifier id'>app</span><span class='comma token'>,</span> <span class='symbol val'>:Port</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>&quot;3000&quot;</span>
358
+ <span class='end end kw'>end</span>
359
+ </pre>
360
+ </td>
361
+ </tr>
362
+ </table>
363
+ </div>
364
+
365
+ </div>
366
+
367
+ </div>
368
+
369
+ <div id="footer">
370
+ Generated on Tue Mar 9 17:18:08 2010 by
371
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
372
+ 0.5.3 (ruby-1.8.7).
373
+ </div>
374
+
375
+ </body>
376
+ </html>