ANN: Sequel 1.0 Released!

Discussion in 'Ruby' started by Sharon Rosner, Jan 2, 2008.

  1. I'm pleased to announce that Sequel version 1.0 has just been
    released. Sequel is a lightweight database access and ORM library for
    Ruby. Sequel provides thread safety, connection pooling and a simple
    and expressive API for constructing database queries and table
    schemas.

    This milestone release separates Sequel into two separate libraries:
    sequel_core and sequel_model. Also new in this release are refactored
    model hooks (callbacks), a few minor bug fixes, and 100% code
    coverage! To update your sequel gem execute the following command:

    sudo gem update sequel

    Following is a discussion of the main changes:

    === New code organization

    Sequel is now divided into two parts: sequel_core and sequel_model.
    These two parts are distributed as two separate gems. The sequel gem
    bundles sequel_core and sequel_model together. If you don't use
    Sequel::Model in your code, you can just install and use sequel_core.

    === New model hooks implementation

    The hooks implementation have been rewritten from scratch, is much
    more robust and offers a few new features:

    * More ways to define hooks: hooks can now be defined by supplying a
    block or a method name, or by overriding the hook instance method.

    * Inheritable hooks: Hooks can now be inherited, which means that you
    can define general hooks in a model superclass, and use them in
    subclasses. You can also define global hooks on Sequel::Model that
    will be invoked for all model classes.

    * Hook chains can be broken by returning false from within the hook.

    * New after_initialize hook, invoked after instance initialization.

    * The hook invocation order can no longer be changed. Hooks are
    invoked in order of definition, from the top of the class hierarchy
    (that is, from Sequel::Model) down to the specific class.

    === Miscellanea

    * Removed deprecated adapter stubs, and all other deprecations in both
    sequel_core and sequel_model.

    * Fixed String#to_time to raise error correctly for invalid time
    stamps.

    * Fixed error behavior when parse_tree or ruby2ruby are not available.

    === More info on Sequel

    Sequel project page:
    <http://code.google.com/p/ruby-sequel>

    Sequel documentation:
    <http://sequel.rubyforge.org>

    Join the Sequel-talk group:
    <http://groups.google.com/group/sequel-talk>

    Join Sequel discussion on IRC at #sequel.

    Install the gem:
    sudo gem install sequel

    Or check out the source and install manually:
    svn co http://ruby-sequel.googlecode.com/svn/trunk sequel
    cd sequel
    rake install
    Sharon Rosner, Jan 2, 2008
    #1
    1. Advertising

  2. [Note: parts of this message were removed to make it a legal post.]

    100% code coverage, that just gives a warm and fuzzy feeling :)

    ~Wayne
    Wayne E. Seguin, Jan 2, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sharon Rosner
    Replies:
    0
    Views:
    146
    Sharon Rosner
    Apr 16, 2007
  2. Sharon Rosner

    ANN: Sequel 0.0.20 Released

    Sharon Rosner, Apr 18, 2007, in forum: Ruby
    Replies:
    0
    Views:
    107
    Sharon Rosner
    Apr 18, 2007
  3. Sharon Rosner

    ANN: Sequel 0.1.0 Released

    Sharon Rosner, Apr 22, 2007, in forum: Ruby
    Replies:
    0
    Views:
    97
    Sharon Rosner
    Apr 22, 2007
  4. Sharon Rosner

    ANN: Sequel 0.1.2 Released

    Sharon Rosner, May 19, 2007, in forum: Ruby
    Replies:
    0
    Views:
    118
    Sharon Rosner
    May 19, 2007
  5. Sharon Rosner
    Replies:
    0
    Views:
    104
    Sharon Rosner
    May 20, 2007
Loading...

Share This Page