workbook 0.4.13 → 0.4.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -1
  3. data/lib/workbook/modules/cell.rb +14 -0
  4. data/lib/workbook/version.rb +1 -1
  5. data/test/test_modules_cache.rb +14 -14
  6. data/test/test_modules_cell.rb +9 -2
  7. data/test/test_readers_xls_reader.rb +1 -1
  8. metadata +4 -46
  9. data/doc/RubyXL/Cell.html +0 -201
  10. data/doc/RubyXL/Workbook.html +0 -449
  11. data/doc/RubyXL.html +0 -128
  12. data/doc/Workbook/Book.html +0 -1852
  13. data/doc/Workbook/Cell.html +0 -1553
  14. data/doc/Workbook/Format.html +0 -1168
  15. data/doc/Workbook/Modules/RawObjectsStorage.html +0 -502
  16. data/doc/Workbook/Modules/TableDiffSort.html +0 -758
  17. data/doc/Workbook/Modules/TypeParser.html +0 -1063
  18. data/doc/Workbook/Modules.html +0 -117
  19. data/doc/Workbook/NilValue.html +0 -434
  20. data/doc/Workbook/Readers/CsvReader.html +0 -324
  21. data/doc/Workbook/Readers/OdsReader.html +0 -1066
  22. data/doc/Workbook/Readers/TxtReader.html +0 -236
  23. data/doc/Workbook/Readers/XlsReader.html +0 -378
  24. data/doc/Workbook/Readers/XlsShared.html +0 -188
  25. data/doc/Workbook/Readers/XlsxReader.html +0 -302
  26. data/doc/Workbook/Readers.html +0 -117
  27. data/doc/Workbook/Row.html +0 -2392
  28. data/doc/Workbook/Sheet.html +0 -875
  29. data/doc/Workbook/Table.html +0 -1732
  30. data/doc/Workbook/Template.html +0 -634
  31. data/doc/Workbook/Writers/CsvTableWriter.html +0 -200
  32. data/doc/Workbook/Writers/HtmlWriter.html +0 -407
  33. data/doc/Workbook/Writers/XlsWriter.html +0 -905
  34. data/doc/Workbook/Writers.html +0 -117
  35. data/doc/Workbook.html +0 -142
  36. data/doc/_index.html +0 -381
  37. data/doc/class_list.html +0 -53
  38. data/doc/css/common.css +0 -1
  39. data/doc/css/full_list.css +0 -57
  40. data/doc/css/style.css +0 -338
  41. data/doc/file.README.html +0 -245
  42. data/doc/file_list.html +0 -55
  43. data/doc/frames.html +0 -28
  44. data/doc/index.html +0 -245
  45. data/doc/js/app.js +0 -214
  46. data/doc/js/full_list.js +0 -173
  47. data/doc/js/jquery.js +0 -4
  48. data/doc/method_list.html +0 -1308
  49. data/doc/top-level-namespace.html +0 -112
  50. data/test/artifacts/floats_problem.xls +0 -0
@@ -1,324 +0,0 @@
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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Module: Workbook::Readers::CsvReader
8
-
9
- &mdash; Documentation by YARD 0.8.5.2
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
19
- relpath = '../../';
20
- framesUrl = "../../frames.html#!" + escape(window.location.href);
21
- </script>
22
-
23
-
24
- <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <div id="header">
32
- <div id="menu">
33
-
34
- <a href="../../_index.html">Index (C)</a> &raquo;
35
- <span class='title'><span class='object_link'><a href="../../Workbook.html" title="Workbook (module)">Workbook</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Readers.html" title="Workbook::Readers (module)">Readers</a></span></span>
36
- &raquo;
37
- <span class="title">CsvReader</span>
38
-
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
- </div>
42
-
43
- <div id="search">
44
-
45
- <a class="full_list_link" id="class_list_link"
46
- href="../../class_list.html">
47
- Class List
48
- </a>
49
-
50
- <a class="full_list_link" id="method_list_link"
51
- href="../../method_list.html">
52
- Method List
53
- </a>
54
-
55
- <a class="full_list_link" id="file_list_link"
56
- href="../../file_list.html">
57
- File List
58
- </a>
59
-
60
- </div>
61
- <div class="clear"></div>
62
- </div>
63
-
64
- <iframe id="search_frame"></iframe>
65
-
66
- <div id="content"><h1>Module: Workbook::Readers::CsvReader
67
-
68
-
69
-
70
- </h1>
71
-
72
- <dl class="box">
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
- <dt class="r1">Included in:</dt>
81
- <dd class="r1"><span class='object_link'><a href="../Book.html" title="Workbook::Book (class)">Book</a></span></dd>
82
-
83
-
84
-
85
- <dt class="r2 last">Defined in:</dt>
86
- <dd class="r2 last">lib/workbook/readers/csv_reader.rb</dd>
87
-
88
- </dl>
89
- <div class="clear"></div>
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
- <h2>
100
- Instance Method Summary
101
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
102
- </h2>
103
-
104
- <ul class="summary">
105
-
106
- <li class="public ">
107
- <span class="summary_signature">
108
-
109
- <a href="#csv_lib-instance_method" title="#csv_lib (instance method)">- (Object) <strong>csv_lib</strong> </a>
110
-
111
-
112
-
113
- </span>
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
- <span class="summary_desc"><div class='inline'></div></span>
124
-
125
- </li>
126
-
127
-
128
- <li class="public ">
129
- <span class="summary_signature">
130
-
131
- <a href="#load_csv-instance_method" title="#load_csv (instance method)">- (Object) <strong>load_csv</strong>(text) </a>
132
-
133
-
134
-
135
- </span>
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
- <span class="summary_desc"><div class='inline'></div></span>
146
-
147
- </li>
148
-
149
-
150
- <li class="public ">
151
- <span class="summary_signature">
152
-
153
- <a href="#parse_csv-instance_method" title="#parse_csv (instance method)">- (Object) <strong>parse_csv</strong>(csv_raw) </a>
154
-
155
-
156
-
157
- </span>
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
- <span class="summary_desc"><div class='inline'></div></span>
168
-
169
- </li>
170
-
171
-
172
- </ul>
173
-
174
-
175
-
176
-
177
- <div id="instance_method_details" class="method_details_list">
178
- <h2>Instance Method Details</h2>
179
-
180
-
181
- <div class="method_details first">
182
- <h3 class="signature first" id="csv_lib-instance_method">
183
-
184
- - (<tt>Object</tt>) <strong>csv_lib</strong>
185
-
186
-
187
-
188
-
189
-
190
- </h3><table class="source_code">
191
- <tr>
192
- <td>
193
- <pre class="lines">
194
-
195
-
196
- 11
197
- 12
198
- 13
199
- 14
200
- 15
201
- 16
202
- 17
203
- 18</pre>
204
- </td>
205
- <td>
206
- <pre class="code"><span class="info file"># File 'lib/workbook/readers/csv_reader.rb', line 11</span>
207
-
208
- <span class='kw'>def</span> <span class='id identifier rubyid_csv_lib'>csv_lib</span>
209
- <span class='kw'>if</span> <span class='const'>RUBY_VERSION</span> <span class='op'>&lt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>1.9</span><span class='tstring_end'>'</span></span>
210
- <span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>faster_csv</span><span class='tstring_end'>'</span></span>
211
- <span class='kw'>return</span> <span class='const'>FasterCSV</span>
212
- <span class='kw'>else</span>
213
- <span class='kw'>return</span> <span class='const'>CSV</span>
214
- <span class='kw'>end</span>
215
- <span class='kw'>end</span></pre>
216
- </td>
217
- </tr>
218
- </table>
219
- </div>
220
-
221
- <div class="method_details ">
222
- <h3 class="signature " id="load_csv-instance_method">
223
-
224
- - (<tt>Object</tt>) <strong>load_csv</strong>(text)
225
-
226
-
227
-
228
-
229
-
230
- </h3><table class="source_code">
231
- <tr>
232
- <td>
233
- <pre class="lines">
234
-
235
-
236
- 6
237
- 7
238
- 8
239
- 9</pre>
240
- </td>
241
- <td>
242
- <pre class="code"><span class="info file"># File 'lib/workbook/readers/csv_reader.rb', line 6</span>
243
-
244
- <span class='kw'>def</span> <span class='id identifier rubyid_load_csv'>load_csv</span> <span class='id identifier rubyid_text'>text</span>
245
- <span class='id identifier rubyid_csv'>csv</span> <span class='op'>=</span> <span class='id identifier rubyid_text'>text</span>
246
- <span class='id identifier rubyid_parse_csv'>parse_csv</span> <span class='id identifier rubyid_csv'>csv</span>
247
- <span class='kw'>end</span></pre>
248
- </td>
249
- </tr>
250
- </table>
251
- </div>
252
-
253
- <div class="method_details ">
254
- <h3 class="signature " id="parse_csv-instance_method">
255
-
256
- - (<tt>Object</tt>) <strong>parse_csv</strong>(csv_raw)
257
-
258
-
259
-
260
-
261
-
262
- </h3><table class="source_code">
263
- <tr>
264
- <td>
265
- <pre class="lines">
266
-
267
-
268
- 20
269
- 21
270
- 22
271
- 23
272
- 24
273
- 25
274
- 26
275
- 27
276
- 28
277
- 29
278
- 30
279
- 31
280
- 32
281
- 33
282
- 34
283
- 35
284
- 36
285
- 37</pre>
286
- </td>
287
- <td>
288
- <pre class="code"><span class="info file"># File 'lib/workbook/readers/csv_reader.rb', line 20</span>
289
-
290
- <span class='kw'>def</span> <span class='id identifier rubyid_parse_csv'>parse_csv</span> <span class='id identifier rubyid_csv_raw'>csv_raw</span>
291
- <span class='id identifier rubyid_custom_date_converter'>custom_date_converter</span> <span class='op'>=</span> <span class='const'>Workbook</span><span class='op'>::</span><span class='const'>Cell</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='period'>.</span><span class='id identifier rubyid_string_optimistic_date_converter'>string_optimistic_date_converter</span>
292
- <span class='id identifier rubyid_converters'>converters</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='symbol'>:float</span><span class='comma'>,</span><span class='symbol'>:integer</span><span class='comma'>,</span><span class='symbol'>:date</span><span class='comma'>,</span><span class='symbol'>:date_time</span><span class='comma'>,</span><span class='id identifier rubyid_custom_date_converter'>custom_date_converter</span><span class='rbracket'>]</span>
293
- <span class='id identifier rubyid_csv'>csv</span><span class='op'>=</span><span class='kw'>nil</span>
294
- <span class='comment'>#begin
295
- </span> <span class='id identifier rubyid_csv'>csv</span> <span class='op'>=</span> <span class='id identifier rubyid_csv_lib'>csv_lib</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_csv_raw'>csv_raw</span><span class='comma'>,</span><span class='lbrace'>{</span><span class='symbol'>:converters</span><span class='op'>=&gt;</span><span class='id identifier rubyid_converters'>converters</span><span class='rbrace'>}</span><span class='rparen'>)</span>
296
-
297
- <span class='comment'>#rescue
298
- </span> <span class='comment'># we're going to have another shot at it...
299
- </span> <span class='comment'>#end
300
- </span>
301
- <span class='kw'>if</span> <span class='id identifier rubyid_csv'>csv</span><span class='op'>==</span><span class='kw'>nil</span> <span class='kw'>or</span> <span class='id identifier rubyid_csv'>csv</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_count'>count</span> <span class='op'>==</span> <span class='int'>1</span>
302
- <span class='id identifier rubyid_csv_excel'>csv_excel</span> <span class='op'>=</span> <span class='id identifier rubyid_csv_lib'>csv_lib</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_csv_raw'>csv_raw</span><span class='comma'>,</span><span class='lbrace'>{</span><span class='symbol'>:converters</span><span class='op'>=&gt;</span><span class='id identifier rubyid_converters'>converters</span><span class='comma'>,</span><span class='symbol'>:col_sep</span><span class='op'>=&gt;</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>;</span><span class='tstring_end'>'</span></span><span class='rbrace'>}</span><span class='rparen'>)</span>
303
- <span class='id identifier rubyid_csv'>csv</span> <span class='op'>=</span> <span class='id identifier rubyid_csv_excel'>csv_excel</span> <span class='kw'>if</span> <span class='id identifier rubyid_csv_excel'>csv_excel</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_count'>count</span> <span class='op'>&gt;</span> <span class='int'>1</span>
304
- <span class='kw'>end</span>
305
-
306
- <span class='kw'>self</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='op'>=</span><span class='const'>Workbook</span><span class='op'>::</span><span class='const'>Sheet</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_csv'>csv</span><span class='comma'>,</span><span class='kw'>self</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_sheet'>sheet</span><span class='period'>.</span><span class='id identifier rubyid_has_contents?'>has_contents?</span>
307
- <span class='kw'>end</span></pre>
308
- </td>
309
- </tr>
310
- </table>
311
- </div>
312
-
313
- </div>
314
-
315
- </div>
316
-
317
- <div id="footer">
318
- Generated on Sun May 19 23:16:28 2013 by
319
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
320
- 0.8.5.2 (ruby-1.9.3).
321
- </div>
322
-
323
- </body>
324
- </html>