Permalink
Commits on Apr 18, 2008
  1. Made Resource::ClassMethods#find_by_sql slightly more practically useful

    by allowing the user to define what properties the query returns.
    
     * Added :property as an option to the call signature.
    Martin Kihlgren committed Apr 18, 2008
  2. Added Resource::ClassMethods#find_by_sql.

     * If DataMapper::Adapters::DataObjectsAdapter is loaded,
       Resource::ClassMethods will get #find_by_sql defined.
     * #find_by_sql only works if the DataMapper::Repository has
       an adapter that is a DataMapper::Adapters::DataObjectsAdapter.
     * #find_by_sql takes a few different arguments structures,
       see documentation comment for details, among them the one
       familiar from ActiveRecord.
    Martin Kihlgren committed Apr 18, 2008
  3. Added better documentation for Resource.including_classes.

    Fixed the resource_spec to be more stable.
    Martin Kihlgren committed Apr 18, 2008
  4. Enabled DataMapper::Resource to know what classes have included it.

     * Added DataMapper::Resource.including_classes that returns a Set
       with the classes having included it.
    Martin Kihlgren committed Apr 18, 2008
Commits on Apr 17, 2008
  1. Merge branch 'master' of git://github.com/krobertson/dm-core

    Conflicts:
    
    	lib/data_mapper/property.rb
    	lib/data_mapper/resource.rb
    sam committed Apr 17, 2008
  2. Resolved ticket #210.

     * Made DataObjectsAdapter#update do nothing when no properties
       are updated.
    Martin Kihlgren committed Apr 17, 2008
  3. Resolved ticket #212.

     * Made Property hashable by providing #hash and #eql? methods.
     * Made @dirty_attributes of Resource a Set to let users replace
       old dirty attributes with new ones.
    Martin Kihlgren committed Apr 17, 2008
Commits on Apr 16, 2008
  1. Added specs for Property type casting

    Dan Kubb committed Apr 16, 2008
  2. Fixed failing specs

    * Updated Property#typecast to use a case statement
    * Updated BigDecimal object to be created rather than a Float when the
      property type is BigDecimal
    * Updated Property#typecase to pass-through nil values
    * Simplified dynamically created getter/setter to use the standard
      Resource#[] and #[]=.  This will probably hurt the benchmarks but
      is probably a better long term solution since the code duplication
      resulted in this bug.
    * Updated Resource#attributes= to use the actual mutator rather than to
      bypass it and use Resource#[]= directly.
    Dan Kubb committed Apr 16, 2008
  3. Fixes stupid thing I did.

    wycats committed Apr 16, 2008
  4. Assorted fixes.

      * A method advised with after now returns its value, and not after's.
      * We now detect bad arguments passed to before/after.
      * Methods ending in = can now be advised.
    David Leal committed Apr 16, 2008
Commits on Apr 15, 2008
  1. Improve property-setting

    wycats committed Apr 15, 2008
Commits on Apr 14, 2008
  1. Fixed spelling mistake, now normalize_uri, was normilize_uri

    * Updated normalize_uri to be protected
    Dan Kubb committed Apr 14, 2008
Commits on Apr 13, 2008
  1. Moved OneToMany::Instance to ParentToChildAssociation

    * Code was nearly identical in both modules.  Since OneToOne and
      OneToMany also need this code, I decided to use
      ParentToChildAssociation as the base
    Dan Kubb committed Apr 13, 2008
  2. Renamed #uri to #normilize_uri on AbstractAdapter. Exposed @uri read …

    …only as uri
    Guy van den Berg committed Apr 13, 2008
  3. oops... exposing the uri caused a method name conflict. My bad.

    Guy van den Berg committed Apr 13, 2008
  4. Exposed @uri as uri in the abstract adapter. Read only.

    Guy van den Berg committed Apr 13, 2008
Commits on Apr 12, 2008
  1. Renamed Resource::ClassMethods#resource_name as #storage_name

    * Added Repository.default_name
    * Updated Resource::ClassMethods methods that accepted repository_name
      as an argument to use default_repository_name if no argument passed
    Dan Kubb committed Apr 12, 2008
Commits on Apr 11, 2008
  1. property declaration now users :validates => [contexts] instead of :v…

    …alidation_contexts => [contexts]
    Guy van den Berg committed Apr 11, 2008
  2. Fixed documentation concerning lazy loading

    Guy van den Berg committed Apr 11, 2008
  3. Changed the Thread.current hash keys to use the dm prefix

    * Moved class variable declation to Resoruce::ClassMethods#included
    * Object#extend is public, updated calls to not use Object#send
    * Updated Resource::ClassMethods#method_missing to be private
    * Minor cleanup
    Dan Kubb committed Apr 11, 2008
Commits on Apr 10, 2008
  1. Should fix an issue with enumerable.

    sam committed Apr 10, 2008
  2. Added documentation for the new property parameter

    Ken Robertson committed Apr 10, 2008
  3. Added support to pass property information own to custom types in the…

    … dump/load
    Ken Robertson committed Apr 10, 2008