This repository has been archived by the owner. It is now read-only.
Commits on Sep 7, 2010
Commits on Sep 3, 2010
  1. Version bump to 1.0.1

    dkubb committed Sep 3, 2010
Commits on Sep 1, 2010
Commits on Aug 30, 2010
  1. Updated gem dependencies

    dkubb committed Aug 30, 2010
Commits on Aug 27, 2010
  1. Added Property#to_child_key.

    solnic committed Aug 27, 2010
    The method by default returns the property class but there might be
    some exceptions like Serial, which returns Integer. This is required
    so that custom properties that are used as PKs can work correctly with
    ManyToOne assocations - UUID from dm-types is a good example.
    [#1348 status:resolved]
Commits on Aug 25, 2010
  1. Updated Gemfile for rails rc2

    dkubb committed Aug 25, 2010
Commits on Aug 20, 2010
  1. Removed the Property#instance_of? method

    dkubb committed Aug 20, 2010
    * Normal ruby semantics is that obj.instance_of?(other) only return true
      if obj.class.equal?(other.class) also returns true (objects are of the
      exact same type). This class was doing that but also returning true
      when the DM::Property class object was provided, which is not part of
      normal ruby behaviour.
    * Updated the #instance_of? specs to show the expected behaviour.
    * Updated the #kind_of? specs to use a more modern style of rspec, and
      to show the contrast with #instance_of?
  2. Removed the overridden Property#kind_of? method

    dkubb committed Aug 20, 2010
    * All specs pass without this method explicitly defined, so it is safe
      to remove this. Besides, it's rare to override #kind_of? except in cases
      where you are proxying to another object, which is not the case here.
Commits on Aug 18, 2010
  1. Updated Model descendants to not include self

    dkubb committed Aug 18, 2010
    * This brings the behaviour back inline with what was intended and allows
      logic to be simplified within DescendantSet and Model
  2. Updated gemspec

    dkubb committed Aug 18, 2010
  3. Renamed Model::DescendantSet to DescendantSet

    dkubb committed Aug 18, 2010
    * Prepare for future use everywhere descendant classes are tracked
Commits on Aug 17, 2010
  1. Removed redundant call setting the primitive

    dkubb committed Aug 17, 2010
    * This should already be handled by the code that copies settings
      to the descendant (just underneath this).
  2. Refactored Property option methods

    dkubb committed Aug 17, 2010
    * Instead of asking the parent class for an option value when it is
      unknown, copy the values when the descendant inherits from the
      parent class. Also, when an option value changes in a parent
      class copy the value to all the descendants. This has the same effect
      as the previous code, except that it should be more efficient in
      the general case.
    * Replace Property.primitive with a method created using accept_options.
  3. Minor simplification to Gemfile

    dkubb committed Aug 17, 2010
Commits on Aug 16, 2010
  1. Updated to use patched rspec

    dkubb committed Aug 16, 2010
Commits on Jul 28, 2010
  1. Minor formatting fix

    dkubb committed Jul 28, 2010
  2. Only track changed values when persisted state is Dirty

    dkubb committed Jul 28, 2010
    [#1355 state:resolved]
  3. Updated gemspec

    dkubb committed Jul 28, 2010
  4. Updated Property subclasses to lazily inherit defaults from parent cl…

    dkubb committed Jul 5, 2010
    * Instead of eagerly copying the default options to each subclass, the
      subclasses' accessor will ask the superclass for the value if it has not
      been explicitly set.
      This should not change behaviour of the subclass accessors in the
      normal case. The only extra behaviour this adds is the ability to
      reconfigure a Property and it's subclasses by explicitly setting
      a value in the Property, eg:
        # set all String properties to have a default length of 255
        # set all Boolean properties to not allow nil (force true or false)
        # set all properties to be required by default
        # turn off auto-validation for all properties by default
        # set all mutator methods to be private by default
      Please note that this has no effect when a subclass has explicitly
      defined it's own option. For example, setting the String length to
      255 will not affect the Text property even though it inherits from
      String, because it sets it's own default length to 65535.
Commits on Jul 15, 2010
  1. Put the Inflector into our own namespace

    dbussink committed Jul 15, 2010
    It's not a sign of being a nice citizen that in case people don't
    use ActiveSupport, they end up with this constant defined anyway.
Commits on Jul 12, 2010