Permalink
Commits on Jul 24, 2008
  1. Raise a more meaningful exception

    In a DM::Resource when an associated class is missing, it is non-obvious where it is
    failing.
    halorgium committed Jul 24, 2008
Commits on Jul 23, 2008
  1. Added deprecation warning for Model#create!. Removed all calls to cre…

    …ate! in specs. This resolves #428.
    bernerdschaefer committed Jul 23, 2008
  2. Tweaked the SPECS document and added a rough outline for the new spec…

    … organization
    Carl Lerche committed Jul 23, 2008
  3. Merge branch 'master' of git@github.com:sam/dm-core

    Carl Lerche committed Jul 23, 2008
Commits on Jul 22, 2008
  1. Updated Property#set to load lazy values before setting the new value.

    *  Extracted lazy loading from Property#get to Property#lazy_load(resource)
    *  Fixed unit/property_spec
    *  Added spec to property_spec for lazy loading.
    bernerdschaefer committed Jul 22, 2008
Commits on Jul 21, 2008
  1. remove scale from required parameters for a float. Default the scale …

    …parameter
    
    of float to nil.
    mayo committed Jul 21, 2008
  2. fix #459 : type and id should be undef'd by Path ( to allow Model.joi…

    …n.id )
    Aadithya Deshpande committed Jul 21, 2008
Commits on Jul 20, 2008
  1. Fixed hoe tasks to ignore .db files, updated Manifest.txt to include …

    …new spec files.
    Bernerd Schaefer committed Jul 20, 2008
  2. Fixing type on windows install.rb tasks

    Bernerd Schaefer committed Jul 20, 2008
Commits on Jul 16, 2008
  1. Fixed the argument signatures on after hooks

    Carl Lerche committed Jul 16, 2008
  2. Starting to rework the DataMapper::Resource specs

    Carl Lerche committed Jul 16, 2008
Commits on Jul 15, 2008
  1. Ensure GROUP BY only happens with Query#fields contains a Property

    * Added specs for GROUP BY change, and moved the classes to the top
      of the file and namespaced them to avoid colissions.
    Dan Kubb committed Jul 15, 2008
  2. Added specs for Query::Operator#==

    * Updated Query::Operator#== to only return true if the other's class
      is equal to, or a descendant of self.class
    Dan Kubb committed Jul 15, 2008
  3. Refactored SQL generation

    * Loosened constraints on Query object that would allow #fields and
      #order to be empty arrays in very specific circumstances. (needed for
      dm-aggregates)
    * Split up query generation for ORDER BY part
    * Allow Query::Operator objects to be passed through when in Query#fields
    Dan Kubb committed Jul 15, 2008
  4. Starting to clean up the integration specs: Starting with resource_sp…

    …ec. Creating a new model metaphor: Zoo
    Carl Lerche committed Jul 15, 2008
  5. Stripped whitespace with "sake strip"

    Dan Kubb committed Jul 15, 2008
  6. Fixed errors in ManyToMany::Proxy class and specs

    * Earlier spec runs were affecting later spec runs because the data
      wasn't being cleared after a run.  This affected the counts and
      expected numbers of associations.  Updating to auto-migrate after
      each spec run corrects this error.
    * Updated specs to check before and after conditions to ensure the
      mutator methods were having a real effect.  Caught several bugs with
      this approach.
    * Added specs for ManyToMany::Proxy#replace
    * Fixed ManyToMany::Proxy#replace to actually create the "through"
      resource the same was ManyToMany::Proxy#<< does.  Refactored common
      code into private method ManyToMany::Proxy#relate_resource
    * Updated ManyToMany::Proxy#replace to accept a Hash instead of a
      Resource object.
    Dan Kubb committed Jul 15, 2008
Commits on Jul 14, 2008
  1. prevent duplicates ids in the parent lookup and make more consistent …

    …with get_children
    Wesley Beary committed Jul 14, 2008
  2. Altering the Rakefile/hoe setup to be more portable

    Bernerd Schaefer committed Jul 14, 2008
  3. Removing sqlite db's in spec from Manifest.txt

    Bernerd Schaefer committed Jul 14, 2008
  4. Removed requires of rake packaging tasks

    Bernerd Schaefer committed Jul 14, 2008
  5. Explicitly require rake tasks for clarity

    Bernerd Schaefer committed Jul 14, 2008
  6. Preparing dm-core for use with Hoe.

    * Renamed CHANGELOG to History.txt
    * Renamed README to Readme.txt
    * Added tasks/hoe.rb
    * Added tasks/install.rb
    Bernerd Schaefer committed Jul 14, 2008
  7. Removed unneccesary spec added to assocation_spec. Changed push/unshi…

    …ft to reject! saved resources already in the collection.
    Bernerd Schaefer committed Jul 14, 2008
  8. Fixed last commit: #<< on OneToMany should only reject duplicates if …

    …they're saved records. Added dbussink's spec from #394.
    Bernerd Schaefer committed Jul 14, 2008
  9. OneToMany::Proxy#<< returns if it already includes the resource added…

    …. Resolves #394.
    Bernerd Schaefer committed Jul 14, 2008