surpass 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (233) hide show
  1. data/lib/surpass/worksheet.rb +1 -1
  2. data/lib/surpass.rb +1 -1
  3. data/out.bin +0 -0
  4. metadata +3 -263
  5. data/examples/big-16mb.rb +0 -25
  6. data/examples/big-random-strings.rb +0 -28
  7. data/examples/blanks.rb +0 -34
  8. data/examples/blanks.xls +0 -0
  9. data/examples/col_width.rb +0 -16
  10. data/examples/col_width.xls +0 -0
  11. data/examples/dates.rb +0 -31
  12. data/examples/dates.xls +0 -0
  13. data/examples/format.rb +0 -23
  14. data/examples/format.xls +0 -0
  15. data/examples/hello-world.rb +0 -9
  16. data/examples/hello-world.xls +0 -0
  17. data/examples/image.rb +0 -10
  18. data/examples/image.xls +0 -0
  19. data/examples/merged.rb +0 -36
  20. data/examples/merged.xls +0 -0
  21. data/examples/merged0.rb +0 -27
  22. data/examples/merged0.xls +0 -0
  23. data/examples/merged1.rb +0 -99
  24. data/examples/merged1.xls +0 -0
  25. data/examples/num_formats.rb +0 -55
  26. data/examples/num_formats.xls +0 -0
  27. data/examples/numbers.rb +0 -24
  28. data/examples/numbers.xls +0 -0
  29. data/examples/outline.rb +0 -110
  30. data/examples/outline.xls +0 -0
  31. data/examples/panes.rb +0 -48
  32. data/examples/panes.xls +0 -0
  33. data/examples/protection.rb +0 -132
  34. data/examples/protection.xls +0 -0
  35. data/examples/python.bmp +0 -0
  36. data/examples/row_styles.rb +0 -16
  37. data/examples/row_styles.xls +0 -0
  38. data/examples/row_styles_empty.rb +0 -15
  39. data/examples/row_styles_empty.xls +0 -0
  40. data/examples/set_cell_and_range_style.rb +0 -12
  41. data/examples/set_cell_and_range_style.xls +0 -0
  42. data/examples/wrapped-text.rb +0 -13
  43. data/examples/wrapped-text.xls +0 -0
  44. data/examples/write_arrays.rb +0 -22
  45. data/examples/write_arrays.xls +0 -0
  46. data/examples/ws_props.rb +0 -80
  47. data/spec/biff_record_spec.rb +0 -268
  48. data/spec/cell_spec.rb +0 -56
  49. data/spec/data/random-strings.txt +0 -10000
  50. data/spec/document_spec.rb +0 -168
  51. data/spec/excel_formula_spec.rb +0 -27
  52. data/spec/formatting_spec.rb +0 -53
  53. data/spec/output/cells-rk.xls +0 -0
  54. data/spec/output/cells.xls +0 -0
  55. data/spec/output/mini.xls +0 -0
  56. data/spec/reference/P-0508-0000507647-3280-5298.xls +0 -0
  57. data/spec/reference/all-cell-styles.bin +0 -0
  58. data/spec/reference/all-number-formats.bin +0 -0
  59. data/spec/reference/all-styles.bin +0 -0
  60. data/spec/reference/mini.xls +0 -0
  61. data/spec/row_spec.rb +0 -19
  62. data/spec/spec_helper.rb +0 -10
  63. data/spec/style_spec.rb +0 -89
  64. data/spec/surpass_spec.rb +0 -7
  65. data/spec/utilities_spec.rb +0 -57
  66. data/spec/workbook_spec.rb +0 -48
  67. data/spec/worksheet_spec.rb +0 -0
  68. data/stats/cloc.txt +0 -8
  69. data/stats/rcov.txt +0 -0
  70. data/stats/specdoc.txt +0 -158
  71. data/webby/README.txt +0 -6
  72. data/webby/Sitefile +0 -43
  73. data/webby/content/css/pygments.txt +0 -6
  74. data/webby/content/css/style.css +0 -279
  75. data/webby/content/examples/autoformat.png +0 -0
  76. data/webby/content/examples/autoformat.rb +0 -32
  77. data/webby/content/examples/autoformat.xls +0 -0
  78. data/webby/content/examples/borders.png +0 -0
  79. data/webby/content/examples/borders.rb +0 -15
  80. data/webby/content/examples/borders.xls +0 -0
  81. data/webby/content/examples/colours.png +0 -0
  82. data/webby/content/examples/colours.rb +0 -23
  83. data/webby/content/examples/colours.xls +0 -0
  84. data/webby/content/examples/data.png +0 -0
  85. data/webby/content/examples/data.rb +0 -11
  86. data/webby/content/examples/data.xls +0 -0
  87. data/webby/content/examples/formatting.png +0 -0
  88. data/webby/content/examples/formatting.rb +0 -78
  89. data/webby/content/examples/formatting.xls +0 -0
  90. data/webby/content/examples/hello-world.png +0 -0
  91. data/webby/content/examples/hello-world.py +0 -8
  92. data/webby/content/examples/hello-world.rb +0 -9
  93. data/webby/content/examples/hello-world.xls +0 -0
  94. data/webby/content/examples/number-format-string.png +0 -0
  95. data/webby/content/examples/number-format-string.rb +0 -14
  96. data/webby/content/examples/number-format-string.xls +0 -0
  97. data/webby/content/examples/patterns.png +0 -0
  98. data/webby/content/examples/patterns.rb +0 -26
  99. data/webby/content/examples/patterns.xls +0 -0
  100. data/webby/content/examples/show-greens.sh +0 -1
  101. data/webby/content/examples/surpass-info.sh +0 -1
  102. data/webby/content/img/Thumbs.db +0 -0
  103. data/webby/content/img/bg_menu.gif +0 -0
  104. data/webby/content/img/bg_t.gif +0 -0
  105. data/webby/content/img/bullet.gif +0 -0
  106. data/webby/content/img/logo.png +0 -0
  107. data/webby/content/img/logo_.jpg +0 -0
  108. data/webby/content/img/top_bg.gif +0 -0
  109. data/webby/content/img/top_bg_.gif +0 -0
  110. data/webby/content/index.txt +0 -16
  111. data/webby/content/installation/index.txt +0 -24
  112. data/webby/content/source/ExcelFormulaLexer.txt +0 -7
  113. data/webby/content/source/ExcelFormulaParser.txt +0 -7
  114. data/webby/content/source/biff_record.txt +0 -7
  115. data/webby/content/source/bitmap.txt +0 -7
  116. data/webby/content/source/cell.txt +0 -7
  117. data/webby/content/source/chart.txt +0 -7
  118. data/webby/content/source/column.txt +0 -7
  119. data/webby/content/source/document.txt +0 -7
  120. data/webby/content/source/excel_formula.txt +0 -7
  121. data/webby/content/source/excel_magic.txt +0 -7
  122. data/webby/content/source/formatting.txt +0 -7
  123. data/webby/content/source/row.txt +0 -7
  124. data/webby/content/source/style.txt +0 -7
  125. data/webby/content/source/utilities.txt +0 -7
  126. data/webby/content/source/workbook.txt +0 -7
  127. data/webby/content/source/worksheet.txt +0 -7
  128. data/webby/content/surpass-manual.erb +0 -198
  129. data/webby/layouts/book.txt +0 -29
  130. data/webby/layouts/default.txt +0 -27
  131. data/webby/layouts/two_column.txt +0 -25
  132. data/webby/layouts/web.txt +0 -66
  133. data/webby/output/.cairn +0 -0
  134. data/webby/output/css/blueprint/ie.css +0 -26
  135. data/webby/output/css/blueprint/plugins/buttons/icons/cross.png +0 -0
  136. data/webby/output/css/blueprint/plugins/buttons/icons/key.png +0 -0
  137. data/webby/output/css/blueprint/plugins/buttons/icons/tick.png +0 -0
  138. data/webby/output/css/blueprint/plugins/buttons/readme.txt +0 -32
  139. data/webby/output/css/blueprint/plugins/buttons/screen.css +0 -97
  140. data/webby/output/css/blueprint/plugins/fancy-type/readme.txt +0 -14
  141. data/webby/output/css/blueprint/plugins/fancy-type/screen.css +0 -71
  142. data/webby/output/css/blueprint/plugins/link-icons/icons/doc.png +0 -0
  143. data/webby/output/css/blueprint/plugins/link-icons/icons/email.png +0 -0
  144. data/webby/output/css/blueprint/plugins/link-icons/icons/external.png +0 -0
  145. data/webby/output/css/blueprint/plugins/link-icons/icons/feed.png +0 -0
  146. data/webby/output/css/blueprint/plugins/link-icons/icons/im.png +0 -0
  147. data/webby/output/css/blueprint/plugins/link-icons/icons/pdf.png +0 -0
  148. data/webby/output/css/blueprint/plugins/link-icons/icons/visited.png +0 -0
  149. data/webby/output/css/blueprint/plugins/link-icons/icons/xls.png +0 -0
  150. data/webby/output/css/blueprint/plugins/link-icons/readme.txt +0 -18
  151. data/webby/output/css/blueprint/plugins/link-icons/screen.css +0 -40
  152. data/webby/output/css/blueprint/plugins/rtl/readme.txt +0 -10
  153. data/webby/output/css/blueprint/plugins/rtl/screen.css +0 -109
  154. data/webby/output/css/blueprint/print.css +0 -30
  155. data/webby/output/css/blueprint/screen.css +0 -251
  156. data/webby/output/css/blueprint/src/forms.css +0 -49
  157. data/webby/output/css/blueprint/src/grid.css +0 -212
  158. data/webby/output/css/blueprint/src/grid.png +0 -0
  159. data/webby/output/css/blueprint/src/ie.css +0 -59
  160. data/webby/output/css/blueprint/src/print.css +0 -85
  161. data/webby/output/css/blueprint/src/reset.css +0 -38
  162. data/webby/output/css/blueprint/src/typography.css +0 -105
  163. data/webby/output/css/pygments.css +0 -59
  164. data/webby/output/css/site.css +0 -62
  165. data/webby/output/css/style.css +0 -279
  166. data/webby/output/examples/autoformat.png +0 -0
  167. data/webby/output/examples/autoformat.rb +0 -32
  168. data/webby/output/examples/autoformat.xls +0 -0
  169. data/webby/output/examples/borders.png +0 -0
  170. data/webby/output/examples/borders.rb +0 -15
  171. data/webby/output/examples/borders.xls +0 -0
  172. data/webby/output/examples/colours.png +0 -0
  173. data/webby/output/examples/colours.rb +0 -23
  174. data/webby/output/examples/colours.xls +0 -0
  175. data/webby/output/examples/data.png +0 -0
  176. data/webby/output/examples/data.rb +0 -11
  177. data/webby/output/examples/data.xls +0 -0
  178. data/webby/output/examples/formatting.png +0 -0
  179. data/webby/output/examples/formatting.rb +0 -78
  180. data/webby/output/examples/formatting.xls +0 -0
  181. data/webby/output/examples/hello-world.png +0 -0
  182. data/webby/output/examples/hello-world.py +0 -8
  183. data/webby/output/examples/hello-world.rb +0 -9
  184. data/webby/output/examples/hello-world.xls +0 -0
  185. data/webby/output/examples/number-format-string.png +0 -0
  186. data/webby/output/examples/number-format-string.rb +0 -14
  187. data/webby/output/examples/number-format-string.xls +0 -0
  188. data/webby/output/examples/patterns.png +0 -0
  189. data/webby/output/examples/patterns.rb +0 -26
  190. data/webby/output/examples/patterns.xls +0 -0
  191. data/webby/output/examples/show-greens.sh +0 -1
  192. data/webby/output/examples/surpass-info.sh +0 -1
  193. data/webby/output/img/Thumbs.db +0 -0
  194. data/webby/output/img/bg_menu.gif +0 -0
  195. data/webby/output/img/bg_t.gif +0 -0
  196. data/webby/output/img/bullet.gif +0 -0
  197. data/webby/output/img/logo.png +0 -0
  198. data/webby/output/img/logo_.jpg +0 -0
  199. data/webby/output/img/top_bg.gif +0 -0
  200. data/webby/output/img/top_bg_.gif +0 -0
  201. data/webby/output/index.html +0 -138
  202. data/webby/output/installation/index.html +0 -64
  203. data/webby/output/installation/installation.html +0 -1
  204. data/webby/output/installation.html +0 -1
  205. data/webby/output/source/ExcelFormulaLexer.html +0 -981
  206. data/webby/output/source/ExcelFormulaParser.html +0 -661
  207. data/webby/output/source/biff_record.html +0 -462
  208. data/webby/output/source/bitmap.html +0 -277
  209. data/webby/output/source/cell.html +0 -241
  210. data/webby/output/source/chart.html +0 -64
  211. data/webby/output/source/column.html +0 -99
  212. data/webby/output/source/document.html +0 -465
  213. data/webby/output/source/excel_formula.html +0 -82
  214. data/webby/output/source/excel_magic.html +0 -1072
  215. data/webby/output/source/formatting.html +0 -664
  216. data/webby/output/source/row.html +0 -169
  217. data/webby/output/source/style.html +0 -158
  218. data/webby/output/source/surpass.html +0 -110
  219. data/webby/output/source/utilities.html +0 -145
  220. data/webby/output/source/workbook.html +0 -265
  221. data/webby/output/source/worksheet.html +0 -331
  222. data/webby/output/surpass-manual-0-0-5.pdf +0 -0
  223. data/webby/output/surpass-manual.aux +0 -50
  224. data/webby/output/surpass-manual.log +0 -366
  225. data/webby/output/surpass-manual.out +0 -20
  226. data/webby/output/surpass-manual.tex +0 -582
  227. data/webby/output/surpass-manual.toc +0 -20
  228. data/webby/rsync-exclude +0 -7
  229. data/webby/tasks/latex.rake +0 -14
  230. data/webby/tasks/screenshots.rb +0 -58
  231. data/webby/templates/article.erb +0 -15
  232. data/webby/templates/book.erb +0 -16
  233. data/webby/templates/page.erb +0 -9
@@ -1,7 +0,0 @@
1
- ---
2
- title: bitmap.rb
3
- layout: web
4
- filter:
5
- - erb
6
- ---
7
- <%= gorg("/Users/ana/work/surpass/lib/surpass/bitmap.rb") %>
@@ -1,7 +0,0 @@
1
- ---
2
- title: cell.rb
3
- layout: web
4
- filter:
5
- - erb
6
- ---
7
- <%= gorg("/Users/ana/work/surpass/lib/surpass/cell.rb") %>
@@ -1,7 +0,0 @@
1
- ---
2
- title: chart.rb
3
- layout: web
4
- filter:
5
- - erb
6
- ---
7
- <%= gorg("/Users/ana/work/surpass/lib/surpass/chart.rb") %>
@@ -1,7 +0,0 @@
1
- ---
2
- title: column.rb
3
- layout: web
4
- filter:
5
- - erb
6
- ---
7
- <%= gorg("/Users/ana/work/surpass/lib/surpass/column.rb") %>
@@ -1,7 +0,0 @@
1
- ---
2
- title: document.rb
3
- layout: web
4
- filter:
5
- - erb
6
- ---
7
- <%= gorg("/Users/ana/work/surpass/lib/surpass/document.rb") %>
@@ -1,7 +0,0 @@
1
- ---
2
- title: excel_formula.rb
3
- layout: web
4
- filter:
5
- - erb
6
- ---
7
- <%= gorg("/Users/ana/work/surpass/lib/surpass/excel_formula.rb") %>
@@ -1,7 +0,0 @@
1
- ---
2
- title: excel_magic.rb
3
- layout: web
4
- filter:
5
- - erb
6
- ---
7
- <%= gorg("/Users/ana/work/surpass/lib/surpass/excel_magic.rb") %>
@@ -1,7 +0,0 @@
1
- ---
2
- title: formatting.rb
3
- layout: web
4
- filter:
5
- - erb
6
- ---
7
- <%= gorg("/Users/ana/work/surpass/lib/surpass/formatting.rb") %>
@@ -1,7 +0,0 @@
1
- ---
2
- title: row.rb
3
- layout: web
4
- filter:
5
- - erb
6
- ---
7
- <%= gorg("/Users/ana/work/surpass/lib/surpass/row.rb") %>
@@ -1,7 +0,0 @@
1
- ---
2
- title: style.rb
3
- layout: web
4
- filter:
5
- - erb
6
- ---
7
- <%= gorg("/Users/ana/work/surpass/lib/surpass/style.rb") %>
@@ -1,7 +0,0 @@
1
- ---
2
- title: utilities.rb
3
- layout: web
4
- filter:
5
- - erb
6
- ---
7
- <%= gorg("/Users/ana/work/surpass/lib/surpass/utilities.rb") %>
@@ -1,7 +0,0 @@
1
- ---
2
- title: workbook.rb
3
- layout: web
4
- filter:
5
- - erb
6
- ---
7
- <%= gorg("/Users/ana/work/surpass/lib/surpass/workbook.rb") %>
@@ -1,7 +0,0 @@
1
- ---
2
- title: worksheet.rb
3
- layout: web
4
- filter:
5
- - erb
6
- ---
7
- <%= gorg("/Users/ana/work/surpass/lib/surpass/worksheet.rb") %>
@@ -1,198 +0,0 @@
1
- ---
2
- title: Surpass Manual
3
- author: Ana Nelson
4
- created_at: 2009-01-30 13:08:32.468894 +00:00
5
- layout: book
6
- filter:
7
- - erb
8
- ---
9
- To compile this documentation requires \LaTeX and the gems Gorgyrella and Webby.
10
-
11
- This documentation refers to Surpass version <%= Surpass::VERSION %>.
12
-
13
- \chapter{Installation and Hello World} % (fold)
14
- \label{cha:installation_and_hello_world}
15
-
16
- \section{Dependencies} % (fold)
17
- \label{sec:dependencies}
18
-
19
- Surpass only needs basic Ruby. It has been tested using Ruby 1.8.6 and JRuby 1.1.5.
20
-
21
- For development, you will want to have access to something that can open Microsoft Excel files. This could be Microsoft Excel, Open Office, Google Docs or even a gmail account.
22
-
23
- % section dependencies (end)
24
-
25
- \section{Gem Installation}
26
-
27
- \begin{verbatim}
28
- sudo gem install surpass
29
- \end{verbatim}
30
-
31
- \section{Source Installation}
32
-
33
- \begin{verbatim}
34
- bzr branch http://ananelson.com/code/surpass
35
- cd surpass
36
- sudo rake gem:install
37
- \end{verbatim}
38
-
39
- \section{Hello World}
40
-
41
- Let's do a minimal "Hello World" script. We'll need to take care of any imports, initialize a Workbook object, create a Worksheet within the workbook, then write some text. Here's how.
42
-
43
- \subsection{Surpass}
44
-
45
- <%= gorgl("content/examples/hello-world.rb")%>
46
-
47
- \subsection{Result}
48
-
49
- And, here's how it looks.
50
-
51
- \includegraphics[width=15cm]{examples/hello-world.png}
52
-
53
- % chapter installation_and_hello_world (end)
54
-
55
- \chapter{Writing Data} % (fold)
56
- \label{cha:writing_data}
57
-
58
- \section{write} % (fold)
59
- \label{sec:write}
60
-
61
- The basic method for writing data to cells is the worksheet's write method.
62
-
63
- <%= gorgl("../lib/surpass/worksheet.rb", "write-method")%>
64
-
65
- There are two required arguments, the row and column. These are zero-based indexes for the row and column. To write to the first cell in the spreadsheet, you would pass 0, 0. The next argument is the label, this is the value you want written in the cell. This defaults to an empty string (for no particular reason). You can write nil, a String, a Boolean, a Numeric or a Date format. If you pass an object belonging to an unsupported class, you will get an error message, and in this case you should call some method on your object which will return a String or whatever the appropriate label is. The fourth argument is for style, which should be either nil, true, a hash or an instance of the StyleFormat class. See the chapter on Formatting for more information. The style parameter defaults to nil, which means that the default Excel format will be applied.
66
-
67
- \section{Writing Arrays of Data} % (fold)
68
- \label{sec:writing_arrays_of_data}
69
-
70
- Frequently, you may want to write more than one value at a time, and so Surpass has convenience methods which handle arrays for you. In the background, these are just looping over the array and calling write() for each value you pass. There's no magic here and, for now at least, no clever optimization. The available methods are write\_array\_to\_row, write\_array\_to\_column, and write\_arrays. The write\_arrays method expects an array of arrays, the first two expect a single array.
71
-
72
- <%= gorgl("../lib/surpass/worksheet.rb", "write-arrays") %>
73
-
74
-
75
- % section writing_arrays_of_data (end)
76
-
77
- % section write (end)
78
-
79
- \section{Autoformatting} % (fold)
80
- \label{sec:autoformatting}
81
-
82
- Autoformats are number formats which are automatically applied to Dates, Floats and similar classes. To have autoformats applied, then pass true as the style parameter to the write function.
83
-
84
- Here is the relevant code from row.rb:
85
- <%= gorgl("../lib/surpass/row.rb", "autoformats") %>
86
-
87
- And here are the default formats being defined in style.rb:
88
- <%= gorgl("../lib/surpass/style.rb", "autoformats") %>
89
-
90
- If you use any of the array-writing methods, then autoformatting will be applied by default. To override this behaviour you can pass your own StyleFormat or nil to use the generic default format.
91
-
92
- <%= gorgl("content/examples/autoformat.rb") %>
93
-
94
- \includegraphics[width=15cm]{examples/autoformat.png}
95
-
96
- % section autoformatting (end)
97
-
98
- % chapter writing_data (end)
99
-
100
-
101
- \chapter{Formatting} % (fold)
102
- \label{cha:formatting}
103
-
104
- \section{Reference}
105
-
106
- There is a command line tool included with Surpass which provides some useful reference data:
107
-
108
- <%= gorgl("content/examples/surpass-info.sh") %>
109
- \begin{verbatim}
110
- <%= IO.popen("cd ..; bash webby/content/examples/surpass-info.sh").read %>
111
- \end{verbatim}
112
-
113
- And since you are running this on the command line, you can save or pipe the output to other commands:
114
-
115
- <%= gorgl("content/examples/show-greens.sh") %>
116
- \begin{verbatim}
117
- <%= IO.popen("cd ..; bash webby/content/examples/show-greens.sh").read %>
118
- \end{verbatim}
119
-
120
- \section{StyleFormat Class}
121
-
122
- The StyleFormat class is a wrapper for the various types of formatting you can apply to a cell. StyleFormat has attributes:
123
-
124
- \begin{itemize}
125
- \item number\_format\_string
126
- \item font
127
- \item alignment
128
- \item borders
129
- \item pattern
130
- \item protection
131
- \end{itemize}
132
-
133
- Each of these attributes (except for number\_format\_string) has a corresponding class, and you can look in lib/surpass/formatting.rb for the source.
134
-
135
- There are two basic ways to set formatting options. You can pass a hash with formatting options when you initialize a new StyleFormat instance, or you can set individual attributes of the formatting classes. You can also combine both approaches, initializing with a hash and then modifying attributes.
136
-
137
- \section{Number Format Strings} % (fold)
138
- \label{sec:number_format_strings}
139
-
140
- This attribute is a simple string, specifying the numeric/date format to be applied to the value stored in a cell.
141
-
142
- \newpage
143
-
144
- <%= gorgl("content/examples/number-format-string.rb") %>
145
- \includegraphics[width=16cm]{examples/number-format-string.png}
146
-
147
- % section number_format_strings (end)
148
-
149
-
150
- \subsection{Specifying Colours}
151
-
152
- Here is a list of available colours:
153
-
154
- \begin{multicols}{3}
155
- \begin{verbatim}
156
- <%= Formatting::COLOURS.keys.sort.join("\n") %>
157
- \end{verbatim}
158
- \end{multicols}
159
-
160
- \includegraphics[width=16cm]{examples/colours.png}
161
-
162
- \subsection{Border Formats}
163
-
164
- Here is a list of available border line types:
165
- \begin{verbatim}
166
- <%= Borders.line_type_directives.join("\n") %>
167
- \end{verbatim}
168
- \includegraphics[width=16cm]{examples/borders.png}
169
-
170
- \subsection{Fill Patterns}
171
-
172
- Here is a list of available fill patterns:
173
- \begin{verbatim}
174
- <%= Pattern.fill_directives.join("\n") %>
175
- \end{verbatim}
176
- \includegraphics[width=16cm]{examples/patterns.png}
177
-
178
- \subsection{Surpass}
179
- <%= gorgl("content/examples/formatting.rb")%>
180
-
181
- And, here's how it looks.
182
-
183
- \includegraphics[width=16cm]{examples/formatting.png}
184
-
185
- % chapter formatting (end)
186
-
187
- \chapter{Saving} % (fold)
188
- \label{cha:saving}
189
-
190
- Typically, you will call the workbook's save() method to write that workbook to a file. You can pass the filename as an argument to save(), or as an argument to new() when you first instantiate a workbook object.
191
-
192
- However, you can also call a workbook's data() method, which gives you direct access to a workbook's binary data. You can write this to a file manually, as in this example:
193
-
194
- <%= gorgl("content/examples/data.rb") %>
195
-
196
- Or, you could use this data as an argument to Rails' send\_data method.
197
-
198
- % chapter saving (end)
@@ -1,29 +0,0 @@
1
- ---
2
- extension: tex
3
- filter: erb
4
- ---
5
- \documentclass[a4paper]{book}
6
- \usepackage{fullpage}
7
- \usepackage{fancyvrb}
8
- \usepackage{color}
9
- \usepackage[ascii]{inputenc}
10
- \usepackage{hyperref}
11
- \usepackage[pdftex]{graphicx}
12
- \usepackage{wrapfig}
13
- \usepackage{multicol}
14
-
15
- <%= pygments_latex_styles %>
16
-
17
-
18
- \title{<%= @page.title %>}
19
- \author{<%= @page.author %>}
20
-
21
- \begin{document}
22
-
23
- \maketitle
24
-
25
- \tableofcontents
26
-
27
- <%= @content %>
28
-
29
- \end{document}
@@ -1,27 +0,0 @@
1
- ---
2
- extension: tex
3
- filter: erb
4
- ---
5
- \documentclass[a4paper]{article}
6
- \usepackage{fullpage}
7
- \usepackage{fancyvrb}
8
- \usepackage{color}
9
- \usepackage[ascii]{inputenc}
10
- \usepackage{hyperref}
11
- \usepackage[pdftex]{graphicx}
12
- \usepackage{wrapfig}
13
- \usepackage{multicol}
14
-
15
- <%= pygments_latex_styles %>
16
-
17
-
18
- \title{<%= @page.title %>}
19
- \author{<%= @page.author %>}
20
-
21
- \begin{document}
22
-
23
- \maketitle
24
-
25
- <%= @content %>
26
-
27
- \end{document}
@@ -1,25 +0,0 @@
1
- ---
2
- extension: tex
3
- filter: erb
4
- ---
5
- \documentclass[a4paper, twocolumn]{article}
6
- \usepackage{fullpage}
7
- \usepackage{fancyvrb}
8
- \usepackage{color}
9
- \usepackage[ascii]{inputenc}
10
- \usepackage{hyperref}
11
- \usepackage[pdftex]{graphicx}
12
-
13
- <%= pygments_latex_styles %>
14
-
15
-
16
- \title{<%= @page.title %>}
17
- \author{<%= @page.author %>}
18
-
19
- \begin{document}
20
-
21
- \maketitle
22
-
23
- <%= @content %>
24
-
25
- \end{document}
@@ -1,66 +0,0 @@
1
- ---
2
- extension: html
3
- filter: erb
4
- ---
5
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
6
-
7
- <!-- ========================================================== -->
8
- <!-- Created by Devit Schizoper -->
9
- <!-- Created HomePages http://LoadFoo.starzonewebhost.com -->
10
- <!-- Created Day 01.12.2006 -->
11
- <!-- ========================================================== -->
12
-
13
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
14
- <head>
15
- <meta http-equiv="content-type" content="text/html;charset=utf-8" />
16
- <meta name="author" content="LoadFoO" />
17
- <meta name="description" content="Site description" />
18
- <meta name="keywords" content="key, words" />
19
- <title>Surpass :: <%= @page.title %></title>
20
- <link rel="stylesheet" type="text/css" href="/css/style.css" media="screen" />
21
- <link rel="stylesheet" href="/css/pygments.css" type="text/css" />
22
- <link rel="shortcut icon" href="favicon.ico" />
23
- </head>
24
-
25
- <body>
26
- <div id="wrap">
27
- <div id="top">
28
- <h2><a href="/" title="Back to main page">Surpass</a></h2>
29
- <div id="menu">
30
- <ul>
31
- <% [
32
- ['/installation', "Installation"],
33
- ['/examples', "Examples"],
34
- ['/source', "Source"],
35
- ].each do |a, t| -%>
36
- <li><a href="<%= a %>"><%= t %></a></li>
37
- <% end -%>
38
- </ul>
39
- </div>
40
- </div>
41
- <div id="content">
42
- <div id="left">
43
- <h2><%= @page.title %></h2>
44
- <%= @content %>
45
- </div>
46
- <div id="right">
47
- <ul id="nav">
48
- <li><a href="<%= manual_filename %>">Download PDF Manual</a></li>
49
- <li><a href="http://rubyforge.org/projects/surpass">Rubyforge Project Page</a></li>
50
- <li><a href="<%= gzipped_source %>">Download Latest Source (tgz)</a></li>
51
- </ul>
52
- <div class="box">
53
- <h2 style="margin-top:17px">Latest News</h2>
54
- <ul>
55
- <li>...</li>
56
- </ul>
57
- </div>
58
- </div>
59
- <div id="clear"></div></div>
60
- <div id="footer">
61
- <p>Site template designed by <a href="http://loadfoo.org/" rel="external">LoadFoO</a>. Valid <a href="http://jigsaw.w3.org/css-validator/check/referer" rel="external">CSS</a> &amp; <a href="http://validator.w3.org/check?uri=referer" rel="external">XHTML</a></p>
62
- </div>
63
- </div>
64
-
65
- </body>
66
- </html>
data/webby/output/.cairn DELETED
File without changes
@@ -1,26 +0,0 @@
1
- /* -----------------------------------------------------------------------
2
-
3
-
4
- Blueprint CSS Framework 0.8
5
- http://blueprintcss.org
6
-
7
- * Copyright (c) 2007-Present. See LICENSE for more info.
8
- * See README for instructions on how to use Blueprint.
9
- * For credits and origins, see AUTHORS.
10
- * This is a compressed file. See the sources in the 'src' directory.
11
-
12
- ----------------------------------------------------------------------- */
13
-
14
- /* ie.css */
15
- body {text-align:center;}
16
- .container {text-align:left;}
17
- * html .column, * html div.span-1, * html div.span-2, * html div.span-3, * html div.span-4, * html div.span-5, * html div.span-6, * html div.span-7, * html div.span-8, * html div.span-9, * html div.span-10, * html div.span-11, * html div.span-12, * html div.span-13, * html div.span-14, * html div.span-15, * html div.span-16, * html div.span-17, * html div.span-18, * html div.span-19, * html div.span-20, * html div.span-21, * html div.span-22, * html div.span-23, * html div.span-24 {overflow-x:hidden;}
18
- * html legend {margin:-18px -8px 16px 0;padding:0;}
19
- ol {margin-left:2em;}
20
- sup {vertical-align:text-top;}
21
- sub {vertical-align:text-bottom;}
22
- html>body p code {*white-space:normal;}
23
- hr {margin:-8px auto 11px;}
24
- .clearfix, .container {display:inline-block;}
25
- * html .clearfix, * html .container {height:1%;}
26
- fieldset {padding-top:0;}
@@ -1,32 +0,0 @@
1
- Buttons
2
-
3
- * Gives you great looking CSS buttons, for both <a> and <button>.
4
- * Demo: particletree.com/features/rediscovering-the-button-element
5
-
6
-
7
- Credits
8
- ----------------------------------------------------------------
9
-
10
- * Created by Kevin Hale [particletree.com]
11
- * Adapted for Blueprint by Olav Bjorkoy [bjorkoy.com]
12
-
13
-
14
- Usage
15
- ----------------------------------------------------------------
16
-
17
- 1) Add this plugin to lib/settings.yml.
18
- See compress.rb for instructions.
19
-
20
- 2) Use the following HTML code to place the buttons on your site:
21
-
22
- <button type="submit" class="button positive">
23
- <img src="css/blueprint/plugins/buttons/icons/tick.png" alt=""/> Save
24
- </button>
25
-
26
- <a class="button" href="/password/reset/">
27
- <img src="css/blueprint/plugins/buttons/icons/key.png" alt=""/> Change Password
28
- </a>
29
-
30
- <a href="#" class="button negative">
31
- <img src="css/blueprint/plugins/buttons/icons/cross.png" alt=""/> Cancel
32
- </a>
@@ -1,97 +0,0 @@
1
- /* --------------------------------------------------------------
2
-
3
- buttons.css
4
- * Gives you some great CSS-only buttons.
5
-
6
- Created by Kevin Hale [particletree.com]
7
- * particletree.com/features/rediscovering-the-button-element
8
-
9
- See Readme.txt in this folder for instructions.
10
-
11
- -------------------------------------------------------------- */
12
-
13
- a.button, button {
14
- display:block;
15
- float:left;
16
- margin: 0.7em 0.5em 0.7em 0;
17
- padding:5px 10px 5px 7px; /* Links */
18
-
19
- border:1px solid #dedede;
20
- border-top:1px solid #eee;
21
- border-left:1px solid #eee;
22
-
23
- background-color:#f5f5f5;
24
- font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
25
- font-size:100%;
26
- line-height:130%;
27
- text-decoration:none;
28
- font-weight:bold;
29
- color:#565656;
30
- cursor:pointer;
31
- }
32
- button {
33
- width:auto;
34
- overflow:visible;
35
- padding:4px 10px 3px 7px; /* IE6 */
36
- }
37
- button[type] {
38
- padding:4px 10px 4px 7px; /* Firefox */
39
- line-height:17px; /* Safari */
40
- }
41
- *:first-child+html button[type] {
42
- padding:4px 10px 3px 7px; /* IE7 */
43
- }
44
- button img, a.button img{
45
- margin:0 3px -3px 0 !important;
46
- padding:0;
47
- border:none;
48
- width:16px;
49
- height:16px;
50
- float:none;
51
- }
52
-
53
-
54
- /* Button colors
55
- -------------------------------------------------------------- */
56
-
57
- /* Standard */
58
- button:hover, a.button:hover{
59
- background-color:#dff4ff;
60
- border:1px solid #c2e1ef;
61
- color:#336699;
62
- }
63
- a.button:active{
64
- background-color:#6299c5;
65
- border:1px solid #6299c5;
66
- color:#fff;
67
- }
68
-
69
- /* Positive */
70
- body .positive {
71
- color:#529214;
72
- }
73
- a.positive:hover, button.positive:hover {
74
- background-color:#E6EFC2;
75
- border:1px solid #C6D880;
76
- color:#529214;
77
- }
78
- a.positive:active {
79
- background-color:#529214;
80
- border:1px solid #529214;
81
- color:#fff;
82
- }
83
-
84
- /* Negative */
85
- body .negative {
86
- color:#d12f19;
87
- }
88
- a.negative:hover, button.negative:hover {
89
- background:#fbe3e4;
90
- border:1px solid #fbc2c4;
91
- color:#d12f19;
92
- }
93
- a.negative:active {
94
- background-color:#d12f19;
95
- border:1px solid #d12f19;
96
- color:#fff;
97
- }
@@ -1,14 +0,0 @@
1
- Fancy Type
2
-
3
- * Gives you classes to use if you'd like some
4
- extra fancy typography.
5
-
6
- Credits and instructions are specified above each class
7
- in the fancy-type.css file in this directory.
8
-
9
-
10
- Usage
11
- ----------------------------------------------------------------
12
-
13
- 1) Add this plugin to lib/settings.yml.
14
- See compress.rb for instructions.