Commits on Jul 25, 2011
  1. Regenerate gemspec

    solnic committed Jul 25, 2011
Commits on Jul 24, 2011
  1. Rename Resource::State -> Resource::PersistenceState.

    emmanuel committed Jul 24, 2011
    Also rename accessor: Resource#persisted_state -> #persistence_state and add previous accessor as a deprecated alias in dm-core/backwards.rb.
Commits on Jul 22, 2011
  1. Always finalize within an adapter spec block

    dkubb committed Jul 22, 2011
    * Remove redundant explicit finalization
Commits on Jul 21, 2011
  1. Setup the allowed writer method in Model#finalize

    dkubb committed Jul 21, 2011
    * This is superior to memoizing the value because Model#finalize should only
      be called when the model has all the properties/methods added to it.
    * Models must be finalize before instances being used. This was always always
      the contract, however the specs never enforced that. Now that this change
      is applied Model#finalize *must* be performed before using the initialized
      objects. Fixed the specs to comply with this.
  2. Extracted common functionality Model#finalize to separate methods

    dkubb committed Jul 21, 2011
    * Make sure OneToMany::Relationship#finalize calls #inverse.finalize in case
      the inverse relationship is not in the child_model RelationshipSet.
    * Removed duplicate functionality from Model#assert_valid and just call
      #finalize directly.
  3. Explicitly auto-migrate models in alternate repositories

    dkubb committed Jul 21, 2011
    * No longer rely on the broken behaviour of auto-migration where it will
      automatically add every model to every repository.
Commits on Jul 19, 2011
  1. Update Resource#attributes= to not use Module#public_method_defined?

    dkubb committed Jul 19, 2011
    * The Module#public_method_defined? method creates an unnecessary Symbol object
      under the hood for non-existent methods, while this new approach does not.
  2. Stripped whitespace

    dkubb committed Jul 19, 2011
Commits on Jul 6, 2011
  1. Merge pull request #129 from leereilly/my_new_branch

    emmanuel committed Jul 6, 2011
    Documentation update; call super when overriding accessors
Commits on Jul 2, 2011
  1. Corrected a spelling mistake

    leereilly committed Jul 2, 2011
Commits on Jul 1, 2011
  1. Added note to documentation; call super when overriding accessors to …

    leereilly committed Jul 1, 2011
    …ensure validators are still active
Commits on Jun 27, 2011
  1. Merge pull request #115 from emmanuel/feature/minimize_chainable_use

    emmanuel committed Jun 27, 2011
    Minimize chainable use
Commits on Jun 23, 2011
Commits on Jun 22, 2011
  1. Merge pull request #126 from emmanuel/feature/finalize_api

    emmanuel committed Jun 22, 2011
    Decentralize DataMapper.finalize to Model#finalize and Relationship#final
Commits on Jun 19, 2011
  1. Updated gemspec

    dkubb committed Jun 19, 2011
  2. Copy default values to class options

    dkubb committed Jun 19, 2011
    * Added specs for Property .options methods
    * Set the String property's default length in the class
    * The Property::String::DEFAULT_LENGTH constant should not be used directly
      but rather the class method should be that returns the default string length.
    * Property.options should return hash entries that are explicitly set to nil
    * Set the precision/scale explicitly for Float and Decimal
    * Do not yet first min/max values for all Numerics, use behaviour similar
      to original code.
  3. Fixed broken shared property spec

    dkubb committed Jun 19, 2011
    * The property options use the type options as defaults *then* merge in
      the user supplied options, not the other way around.
Commits on Jun 17, 2011
  1. DataMapper::Ext.blank? uses the object#blank? method if it exits

    dkubb committed Jun 17, 2011
    * This allows custom objects to define their own #blank? method to specify
      the context in which they would like be considered blank and not-blank.
Commits on May 25, 2011
  1. Revert "Merge pull request #21 from jwkoelewijn/relationships"

    dkubb committed May 25, 2011
    This reverts commit a077b66, reversing
    changes made to 3adb145.
Commits on May 24, 2011
  1. Merge pull request #21 from jwkoelewijn/relationships

    dkubb committed May 24, 2011
    Applied dkubbs patch from to fix relationships
Commits on May 23, 2011
  1. Bump DO dep to 0.10.6 in Gemfile

    solnic committed May 23, 2011
Commits on May 20, 2011