Permalink
Commits on Apr 10, 2008
  1. Upated rcov settings to show the most to least covered files

    * Makes it easier to determine which specs need the most attention
    Dan Kubb committed Apr 10, 2008
Commits on Apr 9, 2008
  1. Updated more internal methods to be private

    Dan Kubb committed Apr 9, 2008
  2. Updated variable naming conventions in Associations

    * Added "has :thing, 2" to map to one_to_many
    * Aliased OneToMany::Instance#<< to #push
    * Updated OneToMany::Instance#push to accept multiple children
    Dan Kubb committed Apr 9, 2008
  3. Added more argument checks in initialize

    * Moved more intialize methods to the private section
    * Updated one_to_many, many_to_one, and many_to_many to return the
      relationship object
    * Updated Association#has to delegate to many_to_one when the Range
      min is n and the max is 0 or 1
    Dan Kubb committed Apr 9, 2008
  4. Code reformatting, and refactoring of initialization methods

    * Most initialization now have argument checking to ensure the passed-in
      values match what is expected
    * Added scoping support to Resource.first and Resource.all
    * Moved internal methods to bottom of class, and marked as private
    * Updated getter and setter to create minimalistic methods dynamically,
      which resulted in large performance increases in benchmarks
    * Switched is_a? and kind_of? to the more idiomatic ===
    * Updated Association initialize methods to accept a block
    * Reorganized DOA to keep the connection open for the least amount of
      time.
    * Removed default_repository_name for Resource class methods.  Not
      sure what I was thinking when adding these
    Dan Kubb committed Apr 9, 2008
Commits on Apr 8, 2008
  1. Made small change in DM::Property to accomodate changes in auto valid…

    …ation
    Guy van den Berg committed Apr 8, 2008
  2. Renamed DM::QueryPath to DM::Query::Path

    Guy van den Berg committed Apr 8, 2008
  3. Merge branch 'master' of git@github.com:sam/dm-core

    Guy van den Berg committed Apr 8, 2008
  4. Clean up comment + add one more spec to DM::QueryPath

    Guy van den Berg committed Apr 8, 2008
  5. Converted "property chain" string to a DM::QueryPath

    Guy van den Berg committed Apr 8, 2008
  6. Fixed Postgres integration script to no longer emit notices

    * PG was creating the sequences to match the SERIAL columns and sending
      messages to stderr, cluttering up the spec output.  Sequences are now
      explicitly created before the CREATE TABLE statement, and notices are
      now silenced.
    * Updated Resource class methods that required the repository name to
      be passed in to use Resource.default_repository_name by default.  This
      makes the general case usage where you have a single repository
      simpler.
    * Updated exception handling in Property#initialize
    * Changed raise statements to use the exception class, rather than an
      exception object.
    Dan Kubb committed Apr 8, 2008
Commits on Apr 7, 2008
  1. Fixed error checking in Property#initialize

    * Updated ivar/method names to match naming conventions used elsewhere
    Dan Kubb committed Apr 7, 2008
  2. Added failing specs when the DO adapter cannot be loaded

    * This will bring problems with DO adapters to our attention immediately
      rather than silently failing as they do now
    Dan Kubb committed Apr 7, 2008
  3. Merge branch 'master' of git@github.com:sam/dm-core

    Guy van den Berg committed Apr 7, 2008
  4. Added a "property chain" to conditions of a query.

    This is not the the creation of DM::Query::Path. It is the ability
    to specify a path as follows:
    
      Zoo.all('Zoo.animals.name' => 'Monkey')
    
    The key must be given as a string in dot (.) notation. Any table
    that is not linked or included in through :links and :includes option
    is automatically added to the :links option.
    
    With this ability, do we need DM::Query::Path ??
    Guy van den Berg committed Apr 7, 2008
  5. Hooks are about 4x faster now.

    david committed Apr 7, 2008
  6. Merge branch 'master' of git@github.com:sam/dm-core

    Guy van den Berg committed Apr 7, 2008
  7. Updated Relationship#initialize to use positional arguments

    * Refactored Relationship#child_key and Relationship#parent_key
    * Caught other places where variables were named "something_inst", but
      were really "something_resource".  Updated the names accordingly.
    * Added note for further refactoring of Relationship#initialize
    * Fixed rdoc generation
    * Minor documentation updates
    Dan Kubb committed Apr 7, 2008
  8. Reverted change to LoadedSet.new, allow properties_with_indexes again

    * Added benchmark for Resource#first
    * Changed destroy benchmarks to not rely on #first
    * Minor code reformatting
    * Removed debug code
    * Renamed PropertySet ivar to match conventions in LoadedSet
    Dan Kubb committed Apr 7, 2008
Commits on Apr 6, 2008
  1. Added english gem dependency to Rakefile

    Guy van den Berg committed Apr 6, 2008