roo 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -0
- data/lib/roo/excel.rb +0 -2
- data/lib/roo/version.rb +1 -1
- data/website/index.html +32 -2
- data/website/index.txt +28 -0
- metadata +1 -1
data/History.txt
CHANGED
data/lib/roo/excel.rb
CHANGED
@@ -16,7 +16,6 @@ class Excel < Openoffice
|
|
16
16
|
warn "are you sure, this is an excel file?"
|
17
17
|
end
|
18
18
|
@filename = filename
|
19
|
-
p filename
|
20
19
|
@workbook = Spreadsheet::ParseExcel.parse(filename)
|
21
20
|
@default_sheet = nil
|
22
21
|
# no need to set default_sheet if there is only one sheet in the document
|
@@ -257,7 +256,6 @@ private
|
|
257
256
|
file = File.open(File.join(@tmpdir, path),"w")
|
258
257
|
file.write(zip.read(path))
|
259
258
|
file.close
|
260
|
-
p File.join(@tmpdir, path)
|
261
259
|
return File.join(@tmpdir, path)
|
262
260
|
else
|
263
261
|
unless path.empty?
|
data/lib/roo/version.rb
CHANGED
data/website/index.html
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
<h1>roo</h1>
|
34
34
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/roo"; return false'>
|
35
35
|
Get Version
|
36
|
-
<a href="http://rubyforge.org/projects/roo" class="numbers">0.5.
|
36
|
+
<a href="http://rubyforge.org/projects/roo" class="numbers">0.5.2</a>
|
37
37
|
</div>
|
38
38
|
<h2>What</h2>
|
39
39
|
|
@@ -268,6 +268,33 @@ is the setting of the default-worksheet. OpenOffice uses the name of the workshe
|
|
268
268
|
<p>Old .sxc OpenOffice files are currently not supported – please load these files and save it as an “OpenDocument Spreadsheet (.ods)”.</p>
|
269
269
|
|
270
270
|
|
271
|
+
<h3>Accessing Spreadsheet over the Web</h3>
|
272
|
+
|
273
|
+
|
274
|
+
You can even read excel-spreadsheets from a http-address:
|
275
|
+
<pre>
|
276
|
+
<code>oo = Excel.new("http://www.somedomain.com/simple_spreadsheet.xls").
|
277
|
+
</code>
|
278
|
+
</pre>
|
279
|
+
|
280
|
+
or a zipped file:
|
281
|
+
<pre>
|
282
|
+
<code>oo = Excel.new("http://www.somedomain.com/simple_spreadsheet.xls.zip",:zip).
|
283
|
+
</code>
|
284
|
+
</pre>
|
285
|
+
|
286
|
+
after working with a spreadsheet from the web you have to call
|
287
|
+
<pre>
|
288
|
+
<code>oo.remove_tmp
|
289
|
+
</code>
|
290
|
+
</pre>
|
291
|
+
|
292
|
+
<p>to delete the temporary local copy of the spreadsheet file. If you dont call
|
293
|
+
this method you will have subdirectories names ‘oo_xxxxx’ which you can remove manually.
|
294
|
+
Calling remove_tmp is not the best solution to clean temporary files – i will
|
295
|
+
provide a better solution in the next releases.</p>
|
296
|
+
|
297
|
+
|
271
298
|
<h3>Remote Access</h3>
|
272
299
|
|
273
300
|
|
@@ -318,6 +345,9 @@ Remote access with <span class="caps">SOAP</span> is nothing specific to roo, yo
|
|
318
345
|
<p><a href="rdoc/index.html">rdoc</a></p>
|
319
346
|
|
320
347
|
|
348
|
+
<p>Only the Openoffice- and Excel-parts of this gem are currently working – the Google-Spreadheets are experimental and are currently <span class="caps">NOT</span> working. Don’t use this!</p>
|
349
|
+
|
350
|
+
|
321
351
|
<h2>Feature Requests / Bugs</h2>
|
322
352
|
|
323
353
|
|
@@ -366,7 +396,7 @@ Remote access with <span class="caps">SOAP</span> is nothing specific to roo, yo
|
|
366
396
|
<li>Dirk Huth fürs Testen unter Windows</li>
|
367
397
|
</ul>
|
368
398
|
<p class="coda">
|
369
|
-
<a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>,
|
399
|
+
<a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 26th August 2007<br>
|
370
400
|
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
371
401
|
</p>
|
372
402
|
</div>
|
data/website/index.txt
CHANGED
@@ -170,6 +170,32 @@ table(border:1px solid black).
|
|
170
170
|
|
171
171
|
Old .sxc OpenOffice files are currently not supported - please load these files and save it as an "OpenDocument Spreadsheet (.ods)".
|
172
172
|
|
173
|
+
h3. Accessing Spreadsheet over the Web
|
174
|
+
|
175
|
+
You can even read excel-spreadsheets from a http-address:
|
176
|
+
<pre>
|
177
|
+
<code>oo = Excel.new("http://www.somedomain.com/simple_spreadsheet.xls").
|
178
|
+
</code>
|
179
|
+
</pre>
|
180
|
+
|
181
|
+
or a zipped file:
|
182
|
+
<pre>
|
183
|
+
<code>oo = Excel.new("http://www.somedomain.com/simple_spreadsheet.xls.zip",:zip).
|
184
|
+
</code>
|
185
|
+
</pre>
|
186
|
+
|
187
|
+
after working with a spreadsheet from the web you have to call
|
188
|
+
<pre>
|
189
|
+
<code>oo.remove_tmp
|
190
|
+
</code>
|
191
|
+
</pre>
|
192
|
+
|
193
|
+
to delete the temporary local copy of the spreadsheet file. If you dont call
|
194
|
+
this method you will have subdirectories names 'oo_xxxxx' which you can remove manually.
|
195
|
+
Calling remove_tmp is not the best solution to clean temporary files - i will
|
196
|
+
provide a better solution in the next releases.
|
197
|
+
|
198
|
+
|
173
199
|
h3. Remote Access
|
174
200
|
|
175
201
|
You can even access your spreadsheet data from a remote machine via SOAP. The examples directory shows a little example how to do this. If you like, you can extend these functions or restrict the access to certain cells.
|
@@ -204,6 +230,8 @@ h2. Documentation
|
|
204
230
|
|
205
231
|
"rdoc":rdoc/index.html
|
206
232
|
|
233
|
+
Only the Openoffice- and Excel-parts of this gem are currently working - the Google-Spreadheets are experimental and are currently NOT working. Don't use this!
|
234
|
+
|
207
235
|
h2. Feature Requests / Bugs
|
208
236
|
|
209
237
|
Submit Feature Requests and bugs here: "http://rubyforge.org/tracker/?group_id=3729":http://rubyforge.org/tracker/?group_id=3729
|
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: roo
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.5.
|
6
|
+
version: 0.5.2
|
7
7
|
date: 2007-08-26 00:00:00 +02:00
|
8
8
|
summary: roo can access the contents of OpenOffice-Spreadsheets and Excel-Spreadsheets
|
9
9
|
require_paths:
|