Good Evening,
The OpenBaseAdapter is almost ready to be submitted as a patch. It
passes all the tests except for 9 expected failures. There is a bug
in the way OpenBase processes limit/offset clauses. I have a ticket
number on this and it should be fixed in the next release of OpenBase.
However...
The adapter only passes all the tests if I run them one at a time. I
have a perl script (hey, you do what you know, right?) that executes
each _test.rb file in it's own ruby process. If I use rake or the
all.sh file, then the process will eventually crash with a Bus
Error. I'm thinking there may be a memory leak in the Ruby-OpenBase
library I'm using, but I'm not sure. I can't tell for sure which
test file is crashing, although i've had crashes at different points
in the testing progress.
Usually it crashes at the same line of my adapter:
col_infos.each_index do |index|
where col_infos is an array of OpenBaseColumnInfo objects (a class
defined in the Ruby-OpenBase library). However, I have occasionally
seen crashes (and memory warnings) in other files which seem to be
part of the ruby language, i.e. outside of rails completely.
Anyway, since I've only been programming in Ruby for 2 weeks, I
figured I'd throw this out and see if the experts have any insight to
share.
-Derrick
"Perl's grammar can not be reduced to BNF.
The work of parsing perl is distributed between
yacc, the lexer, smoke and mirrors.''
-Chaim Frenkel
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core