ActiveRecord::Extensions 0.7.0 Released!
on July 21, 2007 @ 06:37 AM

ActiveRecord::Extensions 0.7.0 is released! Thanks to Michael Flester and Gabe da Silveira for the patches they submitted!

Updates include:

  • Oracle support for better finders (but regexps only work with Oracle 10 or higher) and import (Michael Flester)
  • created_at/updated_at timestamps are now implemented with import functionality if they exist on the tables (Zach Dennis/Michael Flester)
  • fixed padding issue with MySQL by increasing the byte buffer size to 8 bytes. (thanks to Gabe da Silveira)

To install as a gem you can run:

gem install ar-extensions

To update a previously installed gem you can run:

gem update ar-extensions

To install as a script/plugin you can run:

script/plugin install http://arext.rubyforge.org/svn/tags/ar-extensions-0.7.0

To see information on the usage of ar-extensions please refer to the arext page or refer to the RDOC documentation

Enjoy!

For questions, comments please feel free to email me, zach dot dennis at gmail dot com or by submitting to rubyforge project page for arext.


  1. Stijn 07.29.07 / 18PM

    import supported for Oracle is great ! It would be even better if we could use the “on_duplicate_key_update” option with Oracle, is this possible or will this never work with Oracle ?

    Thanks, Stijn

  2. Jason 08.07.07 / 20PM

    Hi,

    I ran into a problem with 0.7.0 (0.6.0 worked fine for me). import.rb, line 272 in 0.7.0: number_inserted = number_inserted + connection.execute(...)

    the connection.execute is returning an array for me (this is when running tests using sqlite3). So I changed the code to not make assumptions about the return value.

    thanks, Jason

  3. Zach Dennis 08.12.07 / 04AM

    Stijn – as far as I know on_duplicate_key_update is not supported natively like it is in MySQL. If someone knows of a way I’d be happy to incorporate it into ar-extensions.

    Jason – thanks for the report. This has been fixed and will be included in the 0.7.1 release.