Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Nov 08, 2011

  1. Thorbjørn Hermansen

    Field type to classes is now defined from a class method.

    thhermansen authored
  2. Thorbjørn Hermansen

    An integer might be returned as a Bignum.

    thhermansen authored
  3. Thorbjørn Hermansen

    Updated Changelog.

    thhermansen authored
  4. Thorbjørn Hermansen

    Fixed a couple of failing specs in 1.9.3.

    (I am currently on preview though).
    thhermansen authored
  5. Thorbjørn Hermansen

    Gem file updated.

    thhermansen authored

Oct 24, 2011

  1. Thorbjørn Hermansen

    Bump version.

    thhermansen authored

Oct 10, 2011

  1. Thorbjørn Hermansen

    Made it possible to force Persistence operations. Opposite to suppress.

    For instance, callbacks in embedded objects should be executed within
    force, which will ensure that operations are enabled.
    thhermansen authored

Oct 09, 2011

  1. Thorbjørn Hermansen

    Updated changelog.

    thhermansen authored
  2. Thorbjørn Hermansen

    Merge branch 'feature/embedded_records_and_callbacks' into develop

    thhermansen authored
  3. Thorbjørn Hermansen

    Callbacks on embedded when owner.save().

    The before- and after validation is ran cos
    parent will validate associated. Thus, we don't
    need to run validations in the embeds_many proxy's
    parent_will_be_saved!
    
    Save is stilled applied, so the rest of the
    callbacks are applied thereafter.
    
    Now, there is a problem with embedded before-callbacks.
    Normally, returning false inside of one will short
    circuit the save call, but in this case it does not.
    thhermansen authored
  4. Thorbjørn Hermansen

    Fixed typo in saving tracker. Validation state was not reset.

    thhermansen authored
  5. Thorbjørn Hermansen

    Callbacks on Embedded records behaves equal to Table.

    Fixed a couple of cases when validations where
    running "wild" on embedded. Dunno if I have fixed
    it all, but at least it behaves a bit nicer now.
    thhermansen authored
  6. Thorbjørn Hermansen

    Updated callback spec. Rest embeds_many proxy before tests.

    ..or else record will contain callback history for
    creations as well.
    
    I see two problems with the situation as it is now:
    
    1. Calling save on an embedded record when the owner
       is not persisted will call save on the same
       record again when owner is saved and informs
       embeds many proxy that it is being about to be
       saved. Resulting in all callbacks fire again
       on the record which issued the save in the first
       place.
    2. Calling save on an embedded record when the owner
       is not persisted will first validate the embedded
       record, then the owner will validate all associated
       records, including the one record which issued
       the save and therefor is validated.
    
    (..there might be more situations as well)
    thhermansen authored
  7. Thorbjørn Hermansen

    Completed refactor of callbacks spec. Is applied on Table & Embedded.

    ..and not surprisingly - the callbacks related to
    embedded records is a bit fucked up.
    thhermansen authored
  8. Thorbjørn Hermansen

    Refactored callbacks test even more :-)

    thhermansen authored
  9. Thorbjørn Hermansen

    Refactored callbacks spec. Makes it a bit easier to reuse.

    thhermansen authored

Oct 07, 2011

  1. Thorbjørn Hermansen

    Merge branch 'release/0.2.2.rc1' into develop

    thhermansen authored
  2. Thorbjørn Hermansen

    When calling embedded.destroy embedded is removed in embeds_many coll…

    …ection.
    
    This should fix #72.
    thhermansen authored
  3. Thorbjørn Hermansen

    record.destroy returns record.

    In fact; record.freeze returns record.
    thhermansen authored
  4. Thorbjørn Hermansen

    References many returns same on delete/destroy/_all as embeds_many.

    thhermansen authored
  5. Thorbjørn Hermansen

    embeds_many proxy delete/destroy/*_all returns removed records.

    thhermansen authored
  6. Thorbjørn Hermansen

    Fixed problem with records.embeds_many.destroy_all.

    This fixes #73.
    thhermansen authored
  7. Thorbjørn Hermansen

    Updated Changelog.

    thhermansen authored
  8. Thorbjørn Hermansen

    Dirty state is now tracked correctly for new records.

    Fixes #75. The problem was:
        a = User.new :email => "wefwef"
        => #<User id: "15", ….. > a.email_changed?
        => false 
        ruby-1.9.2-p180 :003 > a.email = "dfgdfg"
        => "dfgdfg" 
        ruby-1.9.2-p180 :004 > a.email_changed?
        => true
    
    a.email_changed? will now return true on first
    query.
    thhermansen authored

Oct 05, 2011

  1. Thorbjørn Hermansen

    Fixed a argument overflow problem with multiparameter assignment.

    It will now simply use the x number of arguments
    the initializer is expecting. 3 for Date and 6
    for Time.
    thhermansen authored
  2. Thorbjørn Hermansen

    Silently ignore multi param on invalid format, setting value to nil.

    I don't know if we need to take care of this in
    another way, but as far as I see now; if the user
    chooses to manipulate the values sent via Rails'
    form date/time helpers, then we just don't care
    and we do set the value to nil silently.
    
    This should complete #71.
    thhermansen authored
  3. Thorbjørn Hermansen

    Added time support for multiple parameters.

    Need to try more values which might triggers some
    parse errors, like non integer string values etc.
    thhermansen authored
  4. Thorbjørn Hermansen

    Added multi parameter date support for ORM::Base#attributes=.

    Time will come next.
    thhermansen authored
  5. Thorbjørn Hermansen

    Refactored attribute methods spec to use subject.

    thhermansen authored

Oct 04, 2011

  1. Thorbjørn Hermansen

    Changed embedded database_id separator from '-|-' to '|'.

    Maybe it should be settable per class as well?
    thhermansen authored
  2. Thorbjørn Hermansen

    RawData#inspect now simply delegates to it's value.

    Makes it easier to read raw_data hash on records.
    thhermansen authored
  3. Thorbjørn Hermansen

    Added ability to push invalid record on to a embeds_many collection.

    But: pushing invalid records on to embeds_collection accepts them, but does not save parent.
    thhermansen authored
  4. Thorbjørn Hermansen

    Updated version to 0.2.2.rc1

    thhermansen authored
  5. Thorbjørn Hermansen

    Merge branch 'feature/embeds_many' into develop

    thhermansen authored

Oct 03, 2011

  1. Thorbjørn Hermansen

    Updated some documentation for embeds_many / embedded_in.

    This completes #56, even though I guess we'll get stuff to fix after
    actually beginning to use this in the front-application for
    Companybook.
    thhermansen authored
Something went wrong with that request. Please try again.