Posted on October 7, 2006 at 12:29 pm

New in dbf-0.4.0:

  • Support for dBase III style memo files
  • Documentation in doc/readme.txt
  • Fixed that field lengths were being read as signed integers, when they be should be unsigned
  • Fixed skipping over deleted records

Thank you to everybody that submitted patches and test files. Keep ‘em coming.

3 Comments:
Posted on October 27, 2006 at 10:43 am by dominic

You might want to check out the rubyist magazine issue 11 which has a dbf library which is refactored by Aoki. It is very good. He has before and after code. http://jp.rubyist.net/magazine/ issue 13. Also, there is another library that is just coming out that does dbf. Might want to touch base with this project owner at https://rubyforge.org/projects/rbase/

Here is the url translated by worldlingo
http://www.worldlingo.com/wl/services/SH0gfCf2o9dPiLK1Xn63E_tJUunKkhY_N/translation?wl_srclang=JA&wl_trglang=en&wl_rurl=http%3A%2F%2Fjp.rubyist.net%2Fmagazine%2F.%2F.%2F%3F0013&wl_url=http%3A%2F%2Fjp.rubyist.net%2Fmagazine%2F.%2F.%2F.%2F%3F0013-CodeReview

Posted on November 24, 2006 at 10:01 am by Sam @ work

Hi,

There is a bug in DBF 0.4.0 with memo files. I could send it by mail but … I loose it :(’
(I already contacted you : http://www.infused.org/2006/08/01/ruby-dbf-library#comment-7584)

The bug occurs wih DBF files needing 0×1A character (at least DBase III format). In the file reader.rb, line 53 you do that :

return File.open(filename)

instead of that :

return File.open(filename,’rb’)

In many cases, memo methods returns a concat of more than one memo fields instead of just one. I don’t know if the bug occurs on *nix platforms, but under windows it does.

You can contact me by mail if you need more info.
Sam.

Posted on November 24, 2006 at 5:34 pm by Keith

Hi Sam,

Thanks for pointing it out. The binary mode flag is only needed on Windows systems, and since I very rarely touch Windows these days I hadn’t noticed it. Sorry about that. I just uploaded dbf-0.4.1 to Rubyforge, so you should be able to upgrade shortly.

Thanks again,
Keith

Leave a comment

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>