acts_as_xlsx 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -7,9 +7,9 @@ Acts as xlsx: Office Open XML Spreadsheet Generation plugin for active record
7
7
  **Author**: Randy Morgan
8
8
  **Copyright**: 2011
9
9
  **License**: MIT License
10
- **Latest Version**: 1.0.2
10
+ **Latest Version**: 1.0.3
11
11
  **Ruby Version**: 1.8.7 - 1.9.3
12
- **Release Date**: December 3rd 2011
12
+ **Release Date**: December 6th 2011
13
13
 
14
14
  Synopsis
15
15
  --------
@@ -19,7 +19,7 @@ Acts_as_xlsx is an active record plugin for Axlsx. It makes generating excel spr
19
19
  Feature List
20
20
  ------------
21
21
 
22
- **1. Mixes into active record base to provide to_xlsx methods on both class and instance active record inheritors.
22
+ **1. Mixes into active record base to provide to_xlsx
23
23
 
24
24
  **2. Can work at the end of any series of finder methods.
25
25
 
@@ -27,12 +27,14 @@ Feature List
27
27
 
28
28
  **4. Automates localization of column heading with i18n support
29
29
 
30
- **5. Lets you specify columns the precise columns and/or methods you want to call to populate your table in one go.
30
+ **5. Lets you specify columns and methods chains you want to call to populate your table in one go.
31
31
 
32
32
  **6. Gives you access to the axlsx package so you can add styles, charts and pictures to satisfy those flashy sales guys.
33
33
 
34
34
  **7. Plays nicely with both ruby 1.8.7 + rails 2.3 as well as ruby 1.9.3 + rails 3
35
35
 
36
+ **8. Automatically registers xlsx Mime type for use in respond_to web-service support.
37
+
36
38
  Installing
37
39
  ----------
38
40
 
@@ -45,6 +47,9 @@ Usage
45
47
 
46
48
  ###Examples
47
49
 
50
+ Also see the writeups here:
51
+ http://axlsx.blogspot.com/
52
+
48
53
  A trivial rails example. In a production environment you will want to you stuff like x_sendfile and Tempfile
49
54
  http://www.therailsway.com/2009/2/22/file-downloads-done-right
50
55
 
@@ -106,6 +111,9 @@ This gem has 100% coverage using Test::Unit
106
111
 
107
112
  Changelog
108
113
  ---------
114
+ - **December.6.11**: 1.0.3 release
115
+ - Added Mime type definition for rails to support respond_to |format| style handling in controllers.
116
+
109
117
  - **December.3.11**: 1.0.2 release
110
118
  Added support for chained method columns like :'model.association.attribute'
111
119
 
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/lib/acts_as_xlsx/version.rb')
2
+
1
3
  task :build => :gendoc do
2
4
  system "gem build acts_as_xlsx.gemspec"
3
5
  end
@@ -15,4 +17,8 @@ task :test do
15
17
  end
16
18
  end
17
19
 
20
+ task :release => :build do
21
+ system "gem push acts_as_xlsx-#{Axlsx::Ar::VERSION}.gem"
22
+ end
23
+
18
24
  task :default => :test
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Axlsx
8
8
 
9
- &mdash; Acts As Xlsx (Axlsx)
9
+ &mdash; acts_as_xlsx: a rails plug in for axlsx
10
10
 
11
11
  </title>
12
12
 
@@ -72,7 +72,9 @@
72
72
 
73
73
 
74
74
  <dt class="r1 last">Defined in:</dt>
75
- <dd class="r1 last">lib/acts_as_xlsx.rb</dd>
75
+ <dd class="r1 last">lib/acts_as_xlsx/ar.rb<span class="defines">,<br />
76
+ lib/acts_as_xlsx/version.rb</span>
77
+ </dd>
76
78
 
77
79
  </dl>
78
80
  <div class="clear"></div>
@@ -116,9 +118,9 @@ Adding to the Axlsx module
116
118
  </div>
117
119
 
118
120
  <div id="footer">
119
- Generated on Sat Dec 3 11:39:31 2011 by
121
+ Generated on Tue Dec 6 18:49:19 2011 by
120
122
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
- 0.7.3 (ruby-1.8.7).
123
+ 0.7.4 (ruby-1.8.7).
122
124
  </div>
123
125
 
124
126
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Axlsx::Ar
8
8
 
9
- &mdash; Acts As Xlsx (Axlsx)
9
+ &mdash; acts_as_xlsx: a rails plug in for axlsx
10
10
 
11
11
  </title>
12
12
 
@@ -72,7 +72,9 @@
72
72
 
73
73
 
74
74
  <dt class="r1 last">Defined in:</dt>
75
- <dd class="r1 last">lib/acts_as_xlsx.rb</dd>
75
+ <dd class="r1 last">lib/acts_as_xlsx/ar.rb<span class="defines">,<br />
76
+ lib/acts_as_xlsx/version.rb</span>
77
+ </dd>
76
78
 
77
79
  </dl>
78
80
  <div class="clear"></div>
@@ -102,6 +104,31 @@ support to both AR classes and instances
102
104
 
103
105
  </p>
104
106
 
107
+ <h2>Constant Summary</h2>
108
+
109
+ <dl class="constants">
110
+
111
+ <dt id="VERSION-constant" class="">VERSION =
112
+ <div class="docstring">
113
+ <div class="discussion">
114
+ <p>
115
+ The current version of the gem
116
+ </p>
117
+
118
+
119
+ </div>
120
+ </div>
121
+ <div class="tags">
122
+
123
+
124
+ </div>
125
+ </dt>
126
+ <dd><pre class="code"><span class='string val'>&quot;1.0.3&quot;</span>
127
+ </pre></dd>
128
+
129
+ </dl>
130
+
131
+
105
132
 
106
133
 
107
134
 
@@ -177,11 +204,11 @@ support to both AR classes and instances
177
204
  17</pre>
178
205
  </td>
179
206
  <td>
180
- <pre class="code"><span class="info file"># File 'lib/acts_as_xlsx.rb', line 15</span>
207
+ <pre class="code"><span class="info file"># File 'lib/acts_as_xlsx/ar.rb', line 15</span>
181
208
 
182
- <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='included identifier id'>included</span><span class='lparen token'>(</span><span class='base identifier id'>base</span><span class='rparen token'>)</span> <span class='comment val'># :nodoc:</span>
183
- <span class='base identifier id'>base</span><span class='dot token'>.</span><span class='send identifier id'>send</span> <span class='symbol val'>:extend</span><span class='comma token'>,</span> <span class='ClassMethods constant id'>ClassMethods</span>
184
- <span class='end end kw'>end</span>
209
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_included identifier id'>included</span><span class='lparen token'>(</span><span class='rubyid_base identifier id'>base</span><span class='rparen token'>)</span> <span class='comment val'># :nodoc:</span>
210
+ <span class='rubyid_base identifier id'>base</span><span class='dot token'>.</span><span class='rubyid_send identifier id'>send</span> <span class='symbol val'>:extend</span><span class='comma token'>,</span> <span class='rubyid_ClassMethods constant id'>ClassMethods</span>
211
+ <span class='rubyid_end end kw'>end</span>
185
212
  </pre>
186
213
  </td>
187
214
  </tr>
@@ -193,9 +220,9 @@ support to both AR classes and instances
193
220
  </div>
194
221
 
195
222
  <div id="footer">
196
- Generated on Sat Dec 3 11:39:31 2011 by
223
+ Generated on Tue Dec 6 18:49:19 2011 by
197
224
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
198
- 0.7.3 (ruby-1.8.7).
225
+ 0.7.4 (ruby-1.8.7).
199
226
  </div>
200
227
 
201
228
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Axlsx::Ar::ClassMethods
8
8
 
9
- &mdash; Acts As Xlsx (Axlsx)
9
+ &mdash; acts_as_xlsx: a rails plug in for axlsx
10
10
 
11
11
  </title>
12
12
 
@@ -72,7 +72,7 @@
72
72
 
73
73
 
74
74
  <dt class="r1 last">Defined in:</dt>
75
- <dd class="r1 last">lib/acts_as_xlsx.rb</dd>
75
+ <dd class="r1 last">lib/acts_as_xlsx/ar.rb</dd>
76
76
 
77
77
  </dl>
78
78
  <div class="clear"></div>
@@ -157,8 +157,8 @@ defines the class method to inject to_xlsx
157
157
  <h3>Examples:</h3>
158
158
 
159
159
  <h4><div class='inline'></div></h4>
160
- <pre class="example code"><span class='class class kw'>class</span> <span class='MyModel constant id'>MyModel</span> <span class='lt op'>&lt;</span> <span class='ActiveRecord constant id'>ActiveRecord</span><span class='colon2 op'>::</span><span class='Base constant id'>Base</span>
161
- <span class='acts_as_xlsx identifier id'>acts_as_xlsx</span> <span class='symbol val'>:columns=</span><span class='gt op'>&gt;</span> <span class='lbrack token'>[</span><span class='symbol val'>:id</span><span class='comma token'>,</span> <span class='symbol val'>:created_at</span><span class='comma token'>,</span> <span class='symbol val'>:updated_at</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='symbol val'>:i18n</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'activerecord.attributes'</span>
160
+ <pre class="example code"><span class='rubyid_class class kw'>class</span> <span class='rubyid_MyModel constant id'>MyModel</span> <span class='lt op'>&lt;</span> <span class='rubyid_ActiveRecord constant id'>ActiveRecord</span><span class='colon2 op'>::</span><span class='rubyid_Base constant id'>Base</span>
161
+ <span class='rubyid_acts_as_xlsx identifier id'>acts_as_xlsx</span> <span class='symbol val'>:columns=</span><span class='gt op'>&gt;</span> <span class='lbrack token'>[</span><span class='symbol val'>:id</span><span class='comma token'>,</span> <span class='symbol val'>:created_at</span><span class='comma token'>,</span> <span class='symbol val'>:updated_at</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='symbol val'>:i18n</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'activerecord.attributes'</span>
162
162
  </pre>
163
163
 
164
164
  </div>
@@ -239,14 +239,14 @@ will be used to determine the labels for columns.
239
239
  33</pre>
240
240
  </td>
241
241
  <td>
242
- <pre class="code"><span class="info file"># File 'lib/acts_as_xlsx.rb', line 28</span>
243
-
244
- <span class='def def kw'>def</span> <span class='acts_as_xlsx identifier id'>acts_as_xlsx</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='assign token'>=</span><span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
245
- <span class='cattr_accessor identifier id'>cattr_accessor</span> <span class='symbol val'>:xlsx_i18n</span><span class='comma token'>,</span> <span class='symbol val'>:xlsx_columns</span>
246
- <span class='self self kw'>self</span><span class='dot token'>.</span><span class='xlsx_i18n identifier id'>xlsx_i18n</span> <span class='assign token'>=</span> <span class='options identifier id'>options</span><span class='dot token'>.</span><span class='delete identifier id'>delete</span><span class='lparen token'>(</span><span class='symbol val'>:i18n</span><span class='rparen token'>)</span> <span class='orop op'>||</span> <span class='false false kw'>false</span>
247
- <span class='self self kw'>self</span><span class='dot token'>.</span><span class='xlsx_columns identifier id'>xlsx_columns</span> <span class='assign token'>=</span> <span class='options identifier id'>options</span><span class='dot token'>.</span><span class='delete identifier id'>delete</span><span class='lparen token'>(</span><span class='symbol val'>:columns</span><span class='rparen token'>)</span> <span class='orop op'>||</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='column_names identifier id'>column_names</span><span class='dot token'>.</span><span class='map identifier id'>map</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='c identifier id'>c</span><span class='bitor op'>|</span> <span class='c identifier id'>c</span> <span class='assign token'>=</span> <span class='c identifier id'>c</span><span class='dot token'>.</span><span class='to_sym identifier id'>to_sym</span> <span class='rbrace token'>}</span>
248
- <span class='extend identifier id'>extend</span> <span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='Ar constant id'>Ar</span><span class='colon2 op'>::</span><span class='SingletonMethods constant id'>SingletonMethods</span>
249
- <span class='end end kw'>end</span>
242
+ <pre class="code"><span class="info file"># File 'lib/acts_as_xlsx/ar.rb', line 28</span>
243
+
244
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_acts_as_xlsx identifier id'>acts_as_xlsx</span><span class='lparen token'>(</span><span class='rubyid_options identifier id'>options</span><span class='assign token'>=</span><span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
245
+ <span class='rubyid_cattr_accessor identifier id'>cattr_accessor</span> <span class='symbol val'>:xlsx_i18n</span><span class='comma token'>,</span> <span class='symbol val'>:xlsx_columns</span>
246
+ <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_xlsx_i18n identifier id'>xlsx_i18n</span> <span class='assign token'>=</span> <span class='rubyid_options identifier id'>options</span><span class='dot token'>.</span><span class='rubyid_delete identifier id'>delete</span><span class='lparen token'>(</span><span class='symbol val'>:i18n</span><span class='rparen token'>)</span> <span class='orop op'>||</span> <span class='rubyid_false false kw'>false</span>
247
+ <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_xlsx_columns identifier id'>xlsx_columns</span> <span class='assign token'>=</span> <span class='rubyid_options identifier id'>options</span><span class='dot token'>.</span><span class='rubyid_delete identifier id'>delete</span><span class='lparen token'>(</span><span class='symbol val'>:columns</span><span class='rparen token'>)</span> <span class='orop op'>||</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_column_names identifier id'>column_names</span><span class='dot token'>.</span><span class='rubyid_map identifier id'>map</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='rubyid_c identifier id'>c</span><span class='bitor op'>|</span> <span class='rubyid_c identifier id'>c</span> <span class='assign token'>=</span> <span class='rubyid_c identifier id'>c</span><span class='dot token'>.</span><span class='rubyid_to_sym identifier id'>to_sym</span> <span class='rbrace token'>}</span>
248
+ <span class='rubyid_extend identifier id'>extend</span> <span class='rubyid_Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='rubyid_Ar constant id'>Ar</span><span class='colon2 op'>::</span><span class='rubyid_SingletonMethods constant id'>SingletonMethods</span>
249
+ <span class='rubyid_end end kw'>end</span>
250
250
  </pre>
251
251
  </td>
252
252
  </tr>
@@ -258,9 +258,9 @@ will be used to determine the labels for columns.
258
258
  </div>
259
259
 
260
260
  <div id="footer">
261
- Generated on Sat Dec 3 11:39:31 2011 by
261
+ Generated on Tue Dec 6 18:49:19 2011 by
262
262
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
263
- 0.7.3 (ruby-1.8.7).
263
+ 0.7.4 (ruby-1.8.7).
264
264
  </div>
265
265
 
266
266
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Axlsx::Ar::SingletonMethods
8
8
 
9
- &mdash; Acts As Xlsx (Axlsx)
9
+ &mdash; acts_as_xlsx: a rails plug in for axlsx
10
10
 
11
11
  </title>
12
12
 
@@ -72,7 +72,7 @@
72
72
 
73
73
 
74
74
  <dt class="r1 last">Defined in:</dt>
75
- <dd class="r1 last">lib/acts_as_xlsx.rb</dd>
75
+ <dd class="r1 last">lib/acts_as_xlsx/ar.rb</dd>
76
76
 
77
77
  </dl>
78
78
  <div class="clear"></div>
@@ -213,14 +213,14 @@ to apply to the first row of field names
213
213
  </li>
214
214
 
215
215
  <li>
216
- <span class="name">an</span>
216
+ <span class="name">types</span>
217
217
  <span class="type">(<tt>Array</tt>, <tt>Symbol</tt>)</span>
218
218
  <span class="default">
219
219
 
220
220
  </span>
221
221
  &mdash; <div class='inline'><p>
222
- array of Axlsx types for each cell in data rows or a single type that will
223
- be applied to all types.
222
+ an array of Axlsx types for each cell in data rows or a single type that
223
+ will be applied to all types.
224
224
  </p>
225
225
  </div>
226
226
  </li>
@@ -309,49 +309,49 @@ The path to i18n attributes. (usually activerecord.attributes)
309
309
  87</pre>
310
310
  </td>
311
311
  <td>
312
- <pre class="code"><span class="info file"># File 'lib/acts_as_xlsx.rb', line 47</span>
312
+ <pre class="code"><span class="info file"># File 'lib/acts_as_xlsx/ar.rb', line 47</span>
313
313
 
314
- <span class='def def kw'>def</span> <span class='to_xlsx identifier id'>to_xlsx</span><span class='lparen token'>(</span><span class='options identifier id'>options</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
314
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_to_xlsx identifier id'>to_xlsx</span><span class='lparen token'>(</span><span class='rubyid_options identifier id'>options</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
315
315
 
316
- <span class='row_style identifier id'>row_style</span> <span class='assign token'>=</span> <span class='options identifier id'>options</span><span class='dot token'>.</span><span class='delete identifier id'>delete</span><span class='lparen token'>(</span><span class='symbol val'>:style</span><span class='rparen token'>)</span>
317
- <span class='header_style identifier id'>header_style</span> <span class='assign token'>=</span> <span class='options identifier id'>options</span><span class='dot token'>.</span><span class='delete identifier id'>delete</span><span class='lparen token'>(</span><span class='symbol val'>:header_style</span><span class='rparen token'>)</span> <span class='orop op'>||</span> <span class='row_style identifier id'>row_style</span>
318
- <span class='types identifier id'>types</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='options identifier id'>options</span><span class='dot token'>.</span><span class='delete identifier id'>delete</span><span class='lparen token'>(</span><span class='symbol val'>:types</span><span class='rparen token'>)</span> <span class='orop op'>||</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='flatten identifier id'>flatten</span>
316
+ <span class='rubyid_row_style identifier id'>row_style</span> <span class='assign token'>=</span> <span class='rubyid_options identifier id'>options</span><span class='dot token'>.</span><span class='rubyid_delete identifier id'>delete</span><span class='lparen token'>(</span><span class='symbol val'>:style</span><span class='rparen token'>)</span>
317
+ <span class='rubyid_header_style identifier id'>header_style</span> <span class='assign token'>=</span> <span class='rubyid_options identifier id'>options</span><span class='dot token'>.</span><span class='rubyid_delete identifier id'>delete</span><span class='lparen token'>(</span><span class='symbol val'>:header_style</span><span class='rparen token'>)</span> <span class='orop op'>||</span> <span class='rubyid_row_style identifier id'>row_style</span>
318
+ <span class='rubyid_types identifier id'>types</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rubyid_options identifier id'>options</span><span class='dot token'>.</span><span class='rubyid_delete identifier id'>delete</span><span class='lparen token'>(</span><span class='symbol val'>:types</span><span class='rparen token'>)</span> <span class='orop op'>||</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_flatten identifier id'>flatten</span>
319
319
 
320
- <span class='i18n identifier id'>i18n</span> <span class='assign token'>=</span> <span class='options identifier id'>options</span><span class='dot token'>.</span><span class='delete identifier id'>delete</span><span class='lparen token'>(</span><span class='symbol val'>:i18n</span><span class='rparen token'>)</span> <span class='orop op'>||</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='xlsx_i18n identifier id'>xlsx_i18n</span>
321
- <span class='columns identifier id'>columns</span> <span class='assign token'>=</span> <span class='options identifier id'>options</span><span class='dot token'>.</span><span class='delete identifier id'>delete</span><span class='lparen token'>(</span><span class='symbol val'>:columns</span><span class='rparen token'>)</span> <span class='orop op'>||</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='xlsx_columns identifier id'>xlsx_columns</span>
320
+ <span class='rubyid_i18n identifier id'>i18n</span> <span class='assign token'>=</span> <span class='rubyid_options identifier id'>options</span><span class='dot token'>.</span><span class='rubyid_delete identifier id'>delete</span><span class='lparen token'>(</span><span class='symbol val'>:i18n</span><span class='rparen token'>)</span> <span class='orop op'>||</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_xlsx_i18n identifier id'>xlsx_i18n</span>
321
+ <span class='rubyid_columns identifier id'>columns</span> <span class='assign token'>=</span> <span class='rubyid_options identifier id'>options</span><span class='dot token'>.</span><span class='rubyid_delete identifier id'>delete</span><span class='lparen token'>(</span><span class='symbol val'>:columns</span><span class='rparen token'>)</span> <span class='orop op'>||</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_xlsx_columns identifier id'>xlsx_columns</span>
322
322
 
323
- <span class='p identifier id'>p</span> <span class='assign token'>=</span> <span class='Package constant id'>Package</span><span class='dot token'>.</span><span class='new identifier id'>new</span>
324
- <span class='row_style identifier id'>row_style</span> <span class='assign token'>=</span> <span class='p identifier id'>p</span><span class='dot token'>.</span><span class='workbook identifier id'>workbook</span><span class='dot token'>.</span><span class='styles identifier id'>styles</span><span class='dot token'>.</span><span class='add_style identifier id'>add_style</span><span class='lparen token'>(</span><span class='row_style identifier id'>row_style</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='row_style identifier id'>row_style</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
325
- <span class='header_style identifier id'>header_style</span> <span class='assign token'>=</span> <span class='p identifier id'>p</span><span class='dot token'>.</span><span class='workbook identifier id'>workbook</span><span class='dot token'>.</span><span class='styles identifier id'>styles</span><span class='dot token'>.</span><span class='add_style identifier id'>add_style</span><span class='lparen token'>(</span><span class='header_style identifier id'>header_style</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='header_style identifier id'>header_style</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
323
+ <span class='rubyid_p identifier id'>p</span> <span class='assign token'>=</span> <span class='rubyid_Package constant id'>Package</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span>
324
+ <span class='rubyid_row_style identifier id'>row_style</span> <span class='assign token'>=</span> <span class='rubyid_p identifier id'>p</span><span class='dot token'>.</span><span class='rubyid_workbook identifier id'>workbook</span><span class='dot token'>.</span><span class='rubyid_styles identifier id'>styles</span><span class='dot token'>.</span><span class='rubyid_add_style identifier id'>add_style</span><span class='lparen token'>(</span><span class='rubyid_row_style identifier id'>row_style</span><span class='rparen token'>)</span> <span class='rubyid_unless unless_mod kw'>unless</span> <span class='rubyid_row_style identifier id'>row_style</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
325
+ <span class='rubyid_header_style identifier id'>header_style</span> <span class='assign token'>=</span> <span class='rubyid_p identifier id'>p</span><span class='dot token'>.</span><span class='rubyid_workbook identifier id'>workbook</span><span class='dot token'>.</span><span class='rubyid_styles identifier id'>styles</span><span class='dot token'>.</span><span class='rubyid_add_style identifier id'>add_style</span><span class='lparen token'>(</span><span class='rubyid_header_style identifier id'>header_style</span><span class='rparen token'>)</span> <span class='rubyid_unless unless_mod kw'>unless</span> <span class='rubyid_header_style identifier id'>header_style</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
326
326
 
327
- <span class='data identifier id'>data</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='mult op'>*</span><span class='find identifier id'>find</span><span class='lparen token'>(</span><span class='symbol val'>:all</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='rparen token'>)</span><span class='rbrack token'>]</span>
328
- <span class='data identifier id'>data</span><span class='dot token'>.</span><span class='compact! fid id'>compact!</span>
329
- <span class='data identifier id'>data</span><span class='dot token'>.</span><span class='flatten! fid id'>flatten!</span>
327
+ <span class='rubyid_data identifier id'>data</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='mult op'>*</span><span class='rubyid_find identifier id'>find</span><span class='lparen token'>(</span><span class='symbol val'>:all</span><span class='comma token'>,</span> <span class='rubyid_options identifier id'>options</span><span class='rparen token'>)</span><span class='rbrack token'>]</span>
328
+ <span class='rubyid_data identifier id'>data</span><span class='dot token'>.</span><span class='rubyid_compact! fid id'>compact!</span>
329
+ <span class='rubyid_data identifier id'>data</span><span class='dot token'>.</span><span class='rubyid_flatten! fid id'>flatten!</span>
330
330
 
331
- <span class='return return kw'>return</span> <span class='p identifier id'>p</span> <span class='if if_mod kw'>if</span> <span class='data identifier id'>data</span><span class='dot token'>.</span><span class='empty? fid id'>empty?</span>
332
- <span class='p identifier id'>p</span><span class='dot token'>.</span><span class='workbook identifier id'>workbook</span><span class='dot token'>.</span><span class='add_worksheet identifier id'>add_worksheet</span><span class='lparen token'>(</span><span class='symbol val'>:name=</span><span class='gt op'>&gt;</span><span class='table_name identifier id'>table_name</span><span class='dot token'>.</span><span class='humanize identifier id'>humanize</span><span class='rparen token'>)</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='sheet identifier id'>sheet</span><span class='bitor op'>|</span>
331
+ <span class='rubyid_return return kw'>return</span> <span class='rubyid_p identifier id'>p</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_data identifier id'>data</span><span class='dot token'>.</span><span class='rubyid_empty? fid id'>empty?</span>
332
+ <span class='rubyid_p identifier id'>p</span><span class='dot token'>.</span><span class='rubyid_workbook identifier id'>workbook</span><span class='dot token'>.</span><span class='rubyid_add_worksheet identifier id'>add_worksheet</span><span class='lparen token'>(</span><span class='symbol val'>:name=</span><span class='gt op'>&gt;</span><span class='rubyid_table_name identifier id'>table_name</span><span class='dot token'>.</span><span class='rubyid_humanize identifier id'>humanize</span><span class='rparen token'>)</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_sheet identifier id'>sheet</span><span class='bitor op'>|</span>
333
333
 
334
- <span class='col_labels identifier id'>col_labels</span> <span class='assign token'>=</span> <span class='if if kw'>if</span> <span class='i18n identifier id'>i18n</span>
335
- <span class='columns identifier id'>columns</span><span class='dot token'>.</span><span class='map identifier id'>map</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='c identifier id'>c</span><span class='bitor op'>|</span> <span class='I18n constant id'>I18n</span><span class='dot token'>.</span><span class='t identifier id'>t</span><span class='lparen token'>(</span><span class='dstring node'>&quot;#{i18n}.#{self.name.underscore}.#{c}&quot;</span><span class='rparen token'>)</span> <span class='rbrace token'>}</span>
336
- <span class='else else kw'>else</span>
337
- <span class='columns identifier id'>columns</span><span class='dot token'>.</span><span class='map identifier id'>map</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='c identifier id'>c</span><span class='bitor op'>|</span> <span class='c identifier id'>c</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='humanize identifier id'>humanize</span> <span class='rbrace token'>}</span>
338
- <span class='end end kw'>end</span>
334
+ <span class='rubyid_col_labels identifier id'>col_labels</span> <span class='assign token'>=</span> <span class='rubyid_if if kw'>if</span> <span class='rubyid_i18n identifier id'>i18n</span>
335
+ <span class='rubyid_columns identifier id'>columns</span><span class='dot token'>.</span><span class='rubyid_map identifier id'>map</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='rubyid_c identifier id'>c</span><span class='bitor op'>|</span> <span class='rubyid_I18n constant id'>I18n</span><span class='dot token'>.</span><span class='rubyid_t identifier id'>t</span><span class='lparen token'>(</span><span class='dstring node'>&quot;#{i18n}.#{self.name.underscore}.#{c}&quot;</span><span class='rparen token'>)</span> <span class='rbrace token'>}</span>
336
+ <span class='rubyid_else else kw'>else</span>
337
+ <span class='rubyid_columns identifier id'>columns</span><span class='dot token'>.</span><span class='rubyid_map identifier id'>map</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='rubyid_c identifier id'>c</span><span class='bitor op'>|</span> <span class='rubyid_c identifier id'>c</span><span class='dot token'>.</span><span class='rubyid_to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='rubyid_humanize identifier id'>humanize</span> <span class='rbrace token'>}</span>
338
+ <span class='rubyid_end end kw'>end</span>
339
339
 
340
- <span class='sheet identifier id'>sheet</span><span class='dot token'>.</span><span class='add_row identifier id'>add_row</span> <span class='col_labels identifier id'>col_labels</span><span class='comma token'>,</span> <span class='symbol val'>:style=</span><span class='gt op'>&gt;</span><span class='header_style identifier id'>header_style</span>
340
+ <span class='rubyid_sheet identifier id'>sheet</span><span class='dot token'>.</span><span class='rubyid_add_row identifier id'>add_row</span> <span class='rubyid_col_labels identifier id'>col_labels</span><span class='comma token'>,</span> <span class='symbol val'>:style=</span><span class='gt op'>&gt;</span><span class='rubyid_header_style identifier id'>header_style</span>
341
341
 
342
- <span class='data identifier id'>data</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='r identifier id'>r</span><span class='bitor op'>|</span>
343
- <span class='row_data identifier id'>row_data</span> <span class='assign token'>=</span> <span class='columns identifier id'>columns</span><span class='dot token'>.</span><span class='map identifier id'>map</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='c identifier id'>c</span><span class='bitor op'>|</span>
344
- <span class='if if kw'>if</span> <span class='c identifier id'>c</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span> <span class='match op'>=~</span> <span class='regexp val'>/\./</span>
345
- <span class='v identifier id'>v</span> <span class='assign token'>=</span> <span class='r identifier id'>r</span><span class='semicolon token'>;</span> <span class='c identifier id'>c</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='split identifier id'>split</span><span class='lparen token'>(</span><span class='string val'>'.'</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='method identifier id'>method</span><span class='bitor op'>|</span> <span class='v identifier id'>v</span> <span class='assign token'>=</span> <span class='v identifier id'>v</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='method identifier id'>method</span><span class='rparen token'>)</span> <span class='rbrace token'>}</span><span class='semicolon token'>;</span> <span class='v identifier id'>v</span>
346
- <span class='else else kw'>else</span>
347
- <span class='r identifier id'>r</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='c identifier id'>c</span><span class='rparen token'>)</span>
348
- <span class='end end kw'>end</span>
349
- <span class='end end kw'>end</span>
350
- <span class='sheet identifier id'>sheet</span><span class='dot token'>.</span><span class='add_row identifier id'>add_row</span> <span class='row_data identifier id'>row_data</span><span class='comma token'>,</span> <span class='symbol val'>:style=</span><span class='gt op'>&gt;</span><span class='row_style identifier id'>row_style</span><span class='comma token'>,</span> <span class='symbol val'>:types=</span><span class='gt op'>&gt;</span><span class='types identifier id'>types</span>
351
- <span class='end end kw'>end</span>
352
- <span class='end end kw'>end</span>
353
- <span class='p identifier id'>p</span>
354
- <span class='end end kw'>end</span>
342
+ <span class='rubyid_data identifier id'>data</span><span class='dot token'>.</span><span class='rubyid_each identifier id'>each</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_r identifier id'>r</span><span class='bitor op'>|</span>
343
+ <span class='rubyid_row_data identifier id'>row_data</span> <span class='assign token'>=</span> <span class='rubyid_columns identifier id'>columns</span><span class='dot token'>.</span><span class='rubyid_map identifier id'>map</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_c identifier id'>c</span><span class='bitor op'>|</span>
344
+ <span class='rubyid_if if kw'>if</span> <span class='rubyid_c identifier id'>c</span><span class='dot token'>.</span><span class='rubyid_to_s identifier id'>to_s</span> <span class='match op'>=~</span> <span class='regexp val'>/\./</span>
345
+ <span class='rubyid_v identifier id'>v</span> <span class='assign token'>=</span> <span class='rubyid_r identifier id'>r</span><span class='semicolon token'>;</span> <span class='rubyid_c identifier id'>c</span><span class='dot token'>.</span><span class='rubyid_to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='rubyid_split identifier id'>split</span><span class='lparen token'>(</span><span class='string val'>'.'</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_each identifier id'>each</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='rubyid_method identifier id'>method</span><span class='bitor op'>|</span> <span class='rubyid_v identifier id'>v</span> <span class='assign token'>=</span> <span class='rubyid_v identifier id'>v</span><span class='dot token'>.</span><span class='rubyid_send identifier id'>send</span><span class='lparen token'>(</span><span class='rubyid_method identifier id'>method</span><span class='rparen token'>)</span> <span class='rbrace token'>}</span><span class='semicolon token'>;</span> <span class='rubyid_v identifier id'>v</span>
346
+ <span class='rubyid_else else kw'>else</span>
347
+ <span class='rubyid_r identifier id'>r</span><span class='dot token'>.</span><span class='rubyid_send identifier id'>send</span><span class='lparen token'>(</span><span class='rubyid_c identifier id'>c</span><span class='rparen token'>)</span>
348
+ <span class='rubyid_end end kw'>end</span>
349
+ <span class='rubyid_end end kw'>end</span>
350
+ <span class='rubyid_sheet identifier id'>sheet</span><span class='dot token'>.</span><span class='rubyid_add_row identifier id'>add_row</span> <span class='rubyid_row_data identifier id'>row_data</span><span class='comma token'>,</span> <span class='symbol val'>:style=</span><span class='gt op'>&gt;</span><span class='rubyid_row_style identifier id'>row_style</span><span class='comma token'>,</span> <span class='symbol val'>:types=</span><span class='gt op'>&gt;</span><span class='rubyid_types identifier id'>types</span>
351
+ <span class='rubyid_end end kw'>end</span>
352
+ <span class='rubyid_end end kw'>end</span>
353
+ <span class='rubyid_p identifier id'>p</span>
354
+ <span class='rubyid_end end kw'>end</span>
355
355
  </pre>
356
356
  </td>
357
357
  </tr>
@@ -363,9 +363,9 @@ The path to i18n attributes. (usually activerecord.attributes)
363
363
  </div>
364
364
 
365
365
  <div id="footer">
366
- Generated on Sat Dec 3 11:39:32 2011 by
366
+ Generated on Tue Dec 6 18:49:19 2011 by
367
367
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
368
- 0.7.3 (ruby-1.8.7).
368
+ 0.7.4 (ruby-1.8.7).
369
369
  </div>
370
370
 
371
371
  </body>
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
6
  <title>
7
- Acts As Xlsx (Axlsx)
7
+ acts_as_xlsx: a rails plug in for axlsx
8
8
 
9
9
  </title>
10
10
 
@@ -52,7 +52,7 @@
52
52
 
53
53
  <iframe id="search_frame"></iframe>
54
54
 
55
- <div id="content"><h1 class="noborder title">Acts As Xlsx (Axlsx)</h1>
55
+ <div id="content"><h1 class="noborder title">acts_as_xlsx: a rails plug in for axlsx</h1>
56
56
  <div id="listing">
57
57
  <h1 class="alphaindex">Alphabetic Index</h1>
58
58
 
@@ -66,6 +66,9 @@
66
66
  <li class="r2"><a href="file.LICENSE.html" title="LICENSE">LICENSE</a></li>
67
67
 
68
68
 
69
+ <li class="r1"><a href="file.CHANGELOG.html" title="CHANGELOG">CHANGELOG</a></li>
70
+
71
+
69
72
  </ul>
70
73
 
71
74
  <div class="clear"></div>
@@ -137,9 +140,9 @@
137
140
  </div>
138
141
 
139
142
  <div id="footer">
140
- Generated on Sat Dec 3 11:39:31 2011 by
143
+ Generated on Tue Dec 6 18:49:18 2011 by
141
144
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
142
- 0.7.3 (ruby-1.8.7).
145
+ 0.7.4 (ruby-1.8.7).
143
146
  </div>
144
147
 
145
148
  </body>
@@ -163,7 +163,7 @@ p.signature .aliases .names { font-family: Monaco, Consolas, Courier, monospace;
163
163
 
164
164
  #content a:link, #content a:visited { text-decoration: none; color: #05a; }
165
165
  #content a:hover { background: #ffffa5; }
166
- .docstring { margin-right: 6em; }
166
+ div.docstring, p.docstring { margin-right: 6em; }
167
167
 
168
168
  ul.summary {
169
169
  list-style: none;
@@ -294,7 +294,7 @@ li.r2 { background: #fafafa; }
294
294
  #filecontents pre.code, .docstring pre.code { display: block; }
295
295
  .source_code .lines { padding-right: 12px; color: #555; text-align: right; }
296
296
  #filecontents pre.code, .docstring pre.code,
297
- .tags .example { padding: 5px 12px; margin-top: 4px; border: 1px solid #eef; background: #f5f5ff; }
297
+ .tags pre.example { padding: 5px 12px; margin-top: 4px; border: 1px solid #eef; background: #f5f5ff; }
298
298
  pre.code { color: #000; }
299
299
  pre.code .info.file { color: #555; }
300
300
  pre.code .val { color: #036A07; }
@@ -302,21 +302,21 @@ pre.code .tstring_content,
302
302
  pre.code .heredoc_beg, pre.code .heredoc_end,
303
303
  pre.code .qwords_beg, pre.code .qwords_end,
304
304
  pre.code .tstring, pre.code .dstring { color: #036A07; }
305
- pre.code .fid, pre.code .id.new, pre.code .id.to_s,
306
- pre.code .id.to_sym, pre.code .id.to_f,
305
+ pre.code .fid, pre.code .rubyid_new, pre.code .rubyid_to_s,
306
+ pre.code .rubyid_to_sym, pre.code .rubyid_to_f,
307
307
  pre.code .dot + pre.code .id,
308
- pre.code .id.to_i pre.code .id.each { color: #0085FF; }
308
+ pre.code .rubyid_to_i pre.code .rubyid_each { color: #0085FF; }
309
309
  pre.code .comment { color: #0066FF; }
310
310
  pre.code .const, pre.code .constant { color: #585CF6; }
311
311
  pre.code .symbol { color: #C5060B; }
312
312
  pre.code .kw,
313
313
  pre.code .label,
314
- pre.code .id.require,
315
- pre.code .id.extend,
316
- pre.code .id.include { color: #0000FF; }
314
+ pre.code .rubyid_require,
315
+ pre.code .rubyid_extend,
316
+ pre.code .rubyid_include { color: #0000FF; }
317
317
  pre.code .ivar { color: #318495; }
318
318
  pre.code .gvar,
319
- pre.code .id.backref,
320
- pre.code .id.nth_ref { color: #6D79DE; }
319
+ pre.code .rubyid_backref,
320
+ pre.code .rubyid_nth_ref { color: #6D79DE; }
321
321
  pre.code .regexp, .dregexp { color: #036A07; }
322
322
  pre.code a { border-bottom: 1px dotted #bbf; }