Switch branches/tags
Nothing to show
Commits on Jul 22, 2011
Commits on Jul 14, 2011
Commits on Jul 7, 2010
  1. Change tracking support for array deletions

    Ethan Rowe committed Jun 28, 2010
  2. Change tracking: flag full object as changed

    Flag an entire object as being changed with :all_changed!
    The setting is preserved on the change-tracking hash.
    If the entire object is thus marked, when converting to_simple
    with :changed=>true option, all attributes will be output whether
    or not they were actually changed.  This is accomplished by pruning
    out the :changed option, so the altered options propagate down the
    object graph.
    Ethan Rowe committed Jun 21, 2010
Commits on Jun 18, 2010
  1. Adjust change tracking to handle case of cleared nested attribute.

    If a nested attribute (the attribute has a "mapper" set) has a nil
    value, then rather than assuming it hasn't changed, we should check
    the state tracking for the attribute in the object containing that
    Ethan Rowe committed Jun 18, 2010
Commits on Jun 14, 2010
  1. Basic nested change tracking support

    Ethan Rowe committed Jun 14, 2010
Commits on Jun 4, 2010
Commits on May 20, 2010
Commits on May 19, 2010
  1. modified Integer type to encode to a string

    Jimmy Dee committed May 19, 2010
Commits on May 18, 2010
  1. Initial implementation of an array collection class

    Basically like a regular Ruby array, except it has :build support
    and :inject does key/value pairs per iteration instead of just values,
    to be compatible with hash-like :inject.
    Ethan Rowe committed May 18, 2010
Commits on May 16, 2010
  1. New SimpleMapper::Attribute::Collection module

    Factor out general collection-oriented code/behavior from
    SimpleMapper::Attribute::Pattern and move to a new reusable
    SimpleMapper::Attribute::Collection module to expand the
    utility of the collection-oriented work.
    Ethan Rowe committed May 16, 2010
Commits on May 14, 2010
Commits on May 11, 2010
  1. Introduce basic to/from_simple_key transform interface for pattern

    Ethan Rowe committed May 11, 2010
Commits on May 5, 2010
Commits on May 4, 2010
  1. Integer type for attribute values

    Ethan Rowe committed May 4, 2010
Commits on May 3, 2010
Commits on Apr 30, 2010
  1. Introduce the SimpleMapper::Attribute::Pattern attribute type.

    The SimpleMapper::Attribute::Pattern attribute class allows
    for the specification of a pattern (any object that supports :match)
    within an attribute definition, and all key/value pairs in the source
    hash for which the key matches the pattern will be slurped in as a
    member of this attribute.
    Ethan Rowe committed Apr 30, 2010
  2. Revised the attribute value behaviors to delegate to attribute object.

    Basic attribute value operations will delegate to the corresponding
    SimpleMapper::Attribute object:
    * retrieving source value
    * determining default value
    * transforming the source value
    Revised the unit tests for SimpleMapper::Attributes to mock the
    attribute objects and truly be a "unit" test, and moved some of the
    original related tests to a new integration test that only mocks types,
    and verifies the interrelationship of SimpleMapper::Attribute and
    Ethan Rowe committed Apr 30, 2010
Commits on Apr 27, 2010
  1. Revised to_simple strategy to rely on the attribute to_simple method.

    * created "mapper" attribute on the SimpleMapper::Attribute class
      for attributes that use nested Simplemapper structures
    * derive "type" attribute from "mapper" automatically, but allow
      specification if desired
    Ethan Rowe committed Apr 27, 2010
Commits on Apr 26, 2010
  1. Initial to_simple implementation on SimpleMapper::Attribute class

    This gets just the basic typed support and :defined support; next
    step will involve refactoring change-tracking interface so the
    attribute can determine its dirty-ness for :changed support in
    Ethan Rowe committed Apr 26, 2010