Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Commits on Apr 9, 2010
  1. Typo in README

    authored
Commits on Jan 5, 2010
  1. Bump to version 0.0.2

    authored
Commits on Jan 3, 2010
  1. Alter file reference

    authored
  2. Initial gemspec file

    authored
  3. Ensure aliased reload method returns correctly

    authored
    Aliased reload method was calling original implementation first and was returning nil.
  4. Add TODOs

    authored
  5. Remove superfluous stubbing of Time.now

    authored
    A lot of methods stubbed Time.now when they didn't need to as the create_pirate method does this for them.
  6. Updating tracked attributes updates timestamp

    authored
    When saving changes to tracked attributes the point in time the parent is set to is now equal to the start time of the new dated detail record. Previously it was left unchanged.
  7. Cope with reloading parent instances

    authored
    If a parent record has two instances and one is updated then reloading the other should:
     * reset the dated detail to the latest when tracking the latest history
     * do nothing when not tracking the latest history
  8. Add current? and current! methods

    authored
    Parent instances can now either point at a certain point in time or track the current time (and detail).
    
    The current? method determines which of these states the instance is in.
    
    The current! method forces the instance to track the current time and resets the detail to the current detail should it be pointing at a previous one.
    
    The on= method now forces the instance to point at a certain point in time (and still resets the detail to the detail at that point in time should it be pointing at another one).
Commits on Jan 2, 2010
  1. Update tracked columns on parent as well as dated detail

    authored
    Updating the columns on the parent ensures that all ActiveRecord functionality (e.g. dirty attribute tracking) works as expected. It will also allow us in future to use the values on the parent as the values effective as of the current time.
  2. Remove duplication from tests

    authored
    No need to create pirates manually in tests when a method exists to do so.
  3. Add requirement for tracked attributes to exist in parent table

    authored
    Updating multi-parameter attributes (e.g. dates on a form) currently doesn't work without the tracked attributes also existing on the parent table (see TODO). These columns should never get updated however as the getters and setters are overridden.
Commits on Jan 1, 2010
  1. Add tests for updating in various ways

    authored
    Alter test fixtures to include tracked integer, string and datetime datatypes.
    
    Also add a column which can later be used to test belongs to associations but this isn't intended to be working yet.
    
    These changes were necessary as currently updating fails when multiparameter attributes (e.g. datetime columns) are updated. This is due to the parent column not having the column in its table and ActiveRecord relying on this fact to perform the update.
Commits on Dec 31, 2009
  1. Use standard foreign key column name instead of parent_id

    authored
    Rather than using parent_id on the dated detail model to refer to the parent model use the conventional column name (e.g. super_hero_id)
Commits on Dec 30, 2009
  1. Dated detail now based on currently effective timestamp

    authored
    Added named scope to dated detail to return the record effective at a given timestamp.
    
    Altered dated_detail method to return detail effective at the time returned by the on method.
  2. Add getting and setting of currently effective timestamp

    authored
    The point in time at which the parent object fetches its details can now be set and retrieved.
Commits on Dec 28, 2009
  1. Add license

    authored
  2. Dated detail sets starts and ends correctly on update

    authored
    When the parent is saved and changes have been made to tracked attributes the old and new dated detail record's timestamps are correctly updated such that one follows the other.
Commits on Dec 27, 2009
  1. Detail record created on saving tracked attribute changes

    authored
    A new detail record is now created whenever changes to tracked attributes are saved in addition to initial creation of parent record
  2. Add dated_detail method

    authored
    The dated_detail method will eventually contain the currently relevant record from the dated_details association. Currently it just returns the first record to allow other details of the implementation to be progressed.
  3. Initial import

    authored
Something went wrong with that request. Please try again.