Commits on Jul 25, 2011
  1. Regenerate gemspec

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

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

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

    * 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.
    dkubb committed Jul 21, 2011
  2. Extracted common functionality Model#finalize to separate methods

    * 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.
    dkubb committed Jul 21, 2011
  3. Explicitly auto-migrate models in alternate repositories

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

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

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

    Documentation update; call super when overriding accessors
    emmanuel committed Jul 6, 2011
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 …

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

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

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

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

    * 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.
    dkubb committed Jun 19, 2011
  3. Fixed broken shared property spec

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

    * 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.
    dkubb committed Jun 17, 2011
Commits on May 25, 2011
  1. Revert "Merge pull request #21 from jwkoelewijn/relationships"

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

    Applied dkubbs patch from to fix relationships
    dkubb committed May 24, 2011
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