From gerardo.santana at gmail.com Tue Apr 1 01:17:20 2008 From: gerardo.santana at gmail.com (=?ISO-8859-1?Q?Gerardo_Santana_G=F3mez_Garrido?=) Date: Mon, 31 Mar 2008 23:17:20 -0600 Subject: [Ruby-informix-misc] [ANN] Ruby/Informix 0.7.0 Message-ID: I'm pleased to announce another release of Ruby/Informix, a Ruby library for connecting to IBM Informix. In this release you'll find support for the INTERVAL data type, more handy methods and more and better documentation with examples, along with a new web site. Web site: http://ruby-informix.rubyforge.org/ Documentation: http://ruby-informix.rubyforge.org/doc/ Some examples: Connecting to a database: db = Informix.connect('stores') Inserting records stmt = db.prepare('insert into state values(?, ?)') stmt.execute('CA', 'California') Iterating over a table using a hash (shortcut): db.each_hash('select * from customers') do |cust| puts "#{cust['firstname']} #{cust['lastname']}" end Changelog follows: 0.7.0 03/31/2008 ------------------ New features: * Experimental support for the INTERVAL data type: - year_to_month, day_to_fraction, from_months and from_seconds class methods for creating an Interval object - +@ and -@ unary operators - +, * and / operations available with Integer, Rational, Date, Time and DateTime objects - methods for returning the respective fields of an Interval object individually (years, months, days, hours, minutes and seconds) - to_a method for returning the fields of an Interval object as an array - methods for converting the Interval object to the given unit, where apply (to_years, to_months, to_days, to_hours, to_minutes and to_seconds) - to_s method for displaying an Interval object as an string according to ANSI SQL standards - includes Comparable * Database#version returns a struct with version information of the database server. * Database#each and Database#each_hash shortcut methods for declaring and opening a cursor in a single step. Contributed by Reid Morrison * Database#execute is not an alias for Database#immediate any more. It has become a shortcut for preparing and executing a statement in a single step. * SequentialCursor includes Enumerable * Ruby 1.9 compatible * More and better documentation Bugs fixed: * The documentation for class Error was not being recognized by rdoc Remarks: * Database.new deprecated in favor of Database.open * Database#do was removed * A lot of C code has been reimplemented in Ruby * Modules and classes have been reorganized * Database#execute still behaves the same, except that it can also accept input parameters and return at most one record. Database#immediate is more efficient though. -- Gerardo Santana From gerardo.santana at gmail.com Thu Apr 3 12:25:21 2008 From: gerardo.santana at gmail.com (=?ISO-8859-1?Q?Gerardo_Santana_G=F3mez_Garrido?=) Date: Thu, 3 Apr 2008 10:25:21 -0600 Subject: [Ruby-informix-misc] Ruby/Informix 0.7.1 Message-ID: Unfortunately, one of the structural changes introduced in 0.7.0 was not done right and caused that the name of Informix resources were not unique. This is fixed in 0.7.1, along with a documentation bug, and an optimization that speeds up Database#columns (considered a bug also, hence its inclusion in 0.7.1). My apologies for any inconvenience. -- Gerardo Santana From gerardo.santana at gmail.com Sat Apr 19 23:42:51 2008 From: gerardo.santana at gmail.com (=?ISO-8859-1?Q?Gerardo_Santana_G=F3mez_Garrido?=) Date: Sat, 19 Apr 2008 22:42:51 -0500 Subject: [Ruby-informix-misc] SCM moved to github Message-ID: After evaluating git for some days and watching the development of github.com, I have decided to move from Rubyforge's CVS to github.com. Advantages: * Source code is public and browsable, along with all its history. open this URL to browse the code: http://github.com/santana/ruby-informix/tree/master * Forking and contributing is easier run this command to clone the repository: git clone git://github.com/santana/ruby-informix.git * Changes can be followed by RSS feeds add this URL to your favorite RSS reader to track Ruby/Informix development: http://github.com/feeds/santana/commits/ruby-informix/master -- Gerardo Santana