Permalink
Commits on May 27, 2010
  1. Version bump to 1.0.0.rc3

    dkubb committed May 27, 2010
Commits on May 26, 2010
  1. Add Model to case statement to force it to be treated as a scalar value

    dkubb committed May 26, 2010
    * Remove unnecessary conditional logic that defined a different method
      based on the RUBY_VERSION. In all cases, the remaining code should
      work with all versions of ruby.
  2. Remove unnecessary test

    dkubb committed May 26, 2010
    * Kernel::Array() will handle an Enumerable fine without a special test.
  3. Add DataMapper.finalize to public api

    namelessjon committed May 26, 2010
    This method takes care of initializing all foreign key and anonymous
    join tables for DataMapper models.  This initialization can only be done
    after all models are loaded, due the need to identify primary key types,
    amongst other things.
    
    * assert_valid is left in the private api, but will be removed soon.
Commits on May 25, 2010
  1. Updated Property option :unique_index to default to the :unique value

    dkubb committed May 25, 2010
    * If a property is a key, then :unique and :unique_index will be set
      to :key because there may be a composite PK and all properties would
      need to be validated as being unique together.
    * If :unique is not set, then it defaults to false, which also makes
      :unique_index default to false
    * If :index is not set it will also default to false for consistency
      with :unique_index
  2. Added Model#each

    dkubb committed May 25, 2010
    * Added specs for #each to finder interface
  3. Ensure Model is Enumerable

    dkubb committed May 25, 2010
  4. Added Model#values_at

    dkubb committed May 25, 2010
    * Added specs for #values_at to finder interface
  5. Added Model#fetch

    dkubb committed May 25, 2010
    * Added specs for #fetch to finder interface
Commits on May 24, 2010
Commits on May 23, 2010
Commits on May 22, 2010
  1. Track AbstractAdapter descendants

    dkubb committed May 22, 2010
    * This is useful for plugins to be able to see which adapters have already
      been required, even if they have not been setup explicitly.
    
    [#1280]
  2. Do not use Property#primitive to determine if a property is Boolean

    dkubb committed May 22, 2010
    * Do not use alias to make new methods, since that does not work
      properly with inheritance.
  3. Simplified logic to determine if a model/resource method exists

    dkubb committed May 22, 2010
    [#1282 state:resolved]
  4. Simplifying State objects

    dkubb committed May 22, 2010
    * Heckling state specs reveals a few paths that are uncovered, and
      refactored code/specs to ensure all branches have full coverage.
  5. Ensure Model#new behaves the same when passed nil or an empty Hash

    dkubb committed May 22, 2010
    * Normally I like to specify methods as being strict in what they
      accept, so that if the system gets in an invalid state we know
      immediately rather than sometime later, far away from the code that
      allowed the problem to sneak in. However in this case, the constructor
      is used in so many different ways, that I think it's ok to be a bit
      more permissive than usual.
    * Added explicit specs for Model#new. It was very tested as a side effect
      of other specs, but did not have any direct specs itself.
  6. Remove code from specs that explicitly removes Resource#send

    dkubb committed May 22, 2010
    * RSpec requires #send be available for some helper methods, and besides
      I'm not entirely sure it's a good idea for the specs themselves to
      enforce this globally. If anything this should be done in the resource
      specs if it's ever added back in.
Commits on May 21, 2010
  1. Moved guard clauses for state transition into State #commit methods

    dkubb committed May 21, 2010
    * Update state objects to handle setting the FKs directly.
    * Make sure the child key changes if the parent key changes.
    
    [#1284 state:resolved]
  2. Fixed problem with #last wrongly updating queries

    RipTheJacker committed with dkubb May 21, 2010
    [#1210 state:resolved]
    
    Signed-off-by: Dan Kubb <dan.kubb@gmail.com>