From gerardo.santana at gmail.com Mon Feb 1 18:14:48 2010 From: gerardo.santana at gmail.com (=?ISO-8859-1?Q?Gerardo_Santana_G=F3mez_Garrido?=) Date: Mon, 1 Feb 2010 17:14:48 -0600 Subject: [Ruby-informix-misc] Conflict between Cursor#drop and Enumerable#drop Message-ID: I was recently enlightened about the Argument Error problem in Ruby/Informix 0.7.2 on Ruby 1.8.7. The reason is that Ruby 1.8.7 added the "drop" method to Enumerable, which is a module included in Informix::CursorBase. I want to make a case for renaming CursorBase#drop to CursorBase#free: * Removing Enumerable is not convenient, because thanks to Enumerable, CursorBase gets many useful methods for free (all?, any?, map, find, etc.) * CursorBase#drop closes and frees a cursor; CursorBase#free looks like good name for such function. * CursorBase#drop should be rarely called explicitly anyways, because Ruby/Informix API implements RAII. Any comment is welcome. -- Gerardo Santana From gerardo.santana at gmail.com Tue Feb 2 21:36:10 2010 From: gerardo.santana at gmail.com (=?ISO-8859-1?Q?Gerardo_Santana_G=F3mez_Garrido?=) Date: Tue, 2 Feb 2010 20:36:10 -0600 Subject: [Ruby-informix-misc] Ruby/Informix 0.7.3 released Message-ID: This is a minor change to make it work with Ruby 1.8.7. 0.7.3 2010-02-02 ------------------ Bugs fixed: * CursorBase#drop was raising an ArgumentError exception on Ruby 1.8.7 Caveats: * Database#each and Database#each_hash removed. Use Database#foreach and Database#foreach_hash instead. -- Gerardo Santana