Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Spreadsheet module tests fail

Reply
Thread Tools

Spreadsheet module tests fail

 
 
El Gato
Guest
Posts: n/a
 
      11-20-2006
I'm trying to use the spreadsheet/excel module by Daniel Berger, but
it's failing its tests on the olewriter. Any thoughts?

# ruby test/ts_all.rb
Loaded suite test/ts_all
Started
...................E/tmp/spreadsheet-0.3.4/lib/spreadsheet/olewriter.rb:22:
[BUG] rb_sys_fail() - errno == 0
ruby 1.8.1 (2003-12-25) [sparc-solaris2.8]




Here's the code around line 22 of olewriter.rb

8 class OLEWriter < IO
9
10 # Not meant for public consumption
11 MaxSize = 7087104
12 BlockSize = 4096
13 BlockDiv = 512
14 ListBlocks = 127
15
16 attr_reader :biff_size, :book_size, :big_blocks, :list_blocks
17 attr_reader :root_start, :size_allowed
18
19 # Accept an IO object, a fileno, or a String
20 def initialize(arg, &block)
21 if arg.kind_of?(String)
22 super(File.open(arg, "w+").fileno, "w+", &block)
23 elsif arg.respond_to?(:fileno)
24 super(arg.fileno, "w+", &block)
25 else
26 super(arg, "w+", &block)
27 end
28 binmode

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Daniel Berger
Guest
Posts: n/a
 
      11-20-2006
El Gato wrote:
> I'm trying to use the spreadsheet/excel module by Daniel Berger, but
> it's failing its tests on the olewriter. Any thoughts?
>
> # ruby test/ts_all.rb
> Loaded suite test/ts_all
> Started
> ..................E/tmp/spreadsheet-0.3.4/lib/spreadsheet/olewriter.rb:22:
> [BUG] rb_sys_fail() - errno == 0
> ruby 1.8.1 (2003-12-25) [sparc-solaris2.8]


<snip>

First, I no longer maintain this package. It's now maintained by
Hannes Wyss.

Second, you've got an old version of spreadsheet. Use 0.3.5, available
at http://rubyforge.org/frs/?group_id=678&release_id=6674

Third, you've got an old version of Ruby. Even blastwave has a 1.8.4
package if you want a more recent version. Or, you could build 1.8.5
by hand.

Regards,

Dan

 
Reply With Quote
 
 
 
 
El Gato
Guest
Posts: n/a
 
      11-20-2006
Daniel Berger wrote:
>
> First, I no longer maintain this package. It's now maintained by
> Hannes Wyss.
>
> Second, you've got an old version of spreadsheet. Use 0.3.5, available
> at http://rubyforge.org/frs/?group_id=678&release_id=6674
>
> Third, you've got an old version of Ruby. Even blastwave has a 1.8.4
> package if you want a more recent version. Or, you could build 1.8.5
> by hand.
>
> Regards,
>
> Dan


Well, I realized that 0.3.5 was out, however, I could not find a way to
download it. As it turns out, I was just not noticing that the
rubyforge spreadsheet entry had the code. When I look at the main
spreadsheet page the download link says:

spreadsheet parseexcel-0.5.1.1 August 29, 2006 Release Notes -
Monitor this package Download

I was under the impression that parseexcel was a different module and
didn't realize that once I clicked the link to download that I would be
presented with the latest version of the spreadsheet module.


As to my version of Ruby... well, that won't change anytime soon.

Thanks, the new version seems to pass the tests.

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to see intermediate fail results from unittest as tests are running? Margie Roginski Python 3 08-25-2010 03:24 PM
rbtree tests fail on 1.8.2, but not on 1.8.4 Toby DiPasquale Ruby 1 03-08-2006 07:08 PM
RubyGems - Tests fail on Gem install only Ross Bamford Ruby 0 11-30-2005 08:44 PM
problems with Tests that fail and prettyprint JSW Ruby 0 11-20-2005 01:48 PM
if (f() != FAIL) or if (FAIL != f())? Wenjie C Programming 3 07-31-2003 09:54 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57