Commits on May 3, 2014
  1. Add NamingConventions::Field::FQN

    * a model with storage_name = ‘accounts’
    * a property with name = ‘name’
    returns ‘account_name’
    This is useful for defining database schemas which need minimal
    renaming for natural joins
    snusnu committed May 3, 2014
Commits on Mar 22, 2014
  1. Respect :unique_index option in #belongs_to

    This simply passes the :unique_index passed to
    #belongs_to on to ManyToOne#source_key_options
    I have no time for refamiliarizing myself with the
    testsuite, but it works for our app.
    snusnu committed Mar 22, 2014
Commits on Jul 9, 2013
  1. Remove rcov gem dependency

    dkubb committed Jul 9, 2013
  2. Fix ci task to run spec task

    * The metrics:all task was removed earlier.
    dkubb committed Jul 9, 2013
  3. Fix usage of zip for Ruby 2.0

    * In Ruby 2.0 it does not automatically coerce arguments to an
      Array, so it needs to be done manually, which is good since the
      resulting code is nicer anyway.
    dkubb committed Jul 9, 2013
Commits on Jun 18, 2013
Commits on Jun 15, 2013
  1. Update shared adapter specs to ensure the resource are saved

    * Later tests can fail, and it's not always clear why. This will
      help isolate the failure more closely.
    dkubb committed Jun 15, 2013
Commits on Jun 14, 2013
  1. Update references to localhost to be

    * Not all hosts seem to have localhost mapped to
      (travis-ci?) in all environments.
    dkubb committed Jun 14, 2013
  2. Fix spec to use include after merging in master changes

    * There were so many changes between master and release-1.2 I
      must've missed this regression.
    dkubb committed Jun 14, 2013
Commits on Jun 13, 2013
  1. Change specs from be_include to include

    * This provides better feedback on failure
    dkubb committed Jun 13, 2013
  2. Add cleanup to shared adapter specs

    * The specs now properly clean up after themselves.
    dkubb committed Jun 13, 2013
Commits on Jun 10, 2013
  1. No need to build 1.9.2

    solnic committed Jun 10, 2013
  2. Relax dep on addressable

    solnic committed Jun 10, 2013
Commits on Apr 12, 2013
  1. Fix Property#typecast to pass-through values that cannot be handled

    * This fixes a related problem to #242. Most of properties that ship
      with dm-core define #typecast_to_primitive, but custom properties
      may not and I believe we should pass-through the value when it
      cannot be handled.
    dkubb committed Apr 12, 2013
Commits on Mar 18, 2013
Commits on Mar 16, 2013
  1. Avoid unnecessary dirty state when mutating properties to an equal va…

    Mutators check whether the new value equals the current value and change
    the state accordingly. The typecast in Property#set occurs after this check
    which results in unnecessary dirty flagging when the new value equals the
    current one after casting.
    Typecasting now happens in property mutators (and Resource#attribute_set)
    at the earliest point possible.
    gix committed with dkubb Nov 8, 2010
Commits on Feb 8, 2013
  1. Update specs to use Collection#get! when the record is expected

    * Some of the specs on rbx (on travis) are blowing up with weird
      results because earlier attempts to load the record silently
      failed. This puts the error closer to where it happens and makes
      it more clear when there is a problem with persistence.
    dkubb committed Feb 8, 2013
Commits on Feb 7, 2013
  1. Change Mash#to_hash to use Hash#replace

    * This should silence a problem with rbx on travis-ci. Also it's
      faster and more precise.
    dkubb committed Feb 7, 2013