Commits on May 31, 2011
  1. added type checking (on non-nil values) and required fields (to handl…

    jrwest committed May 31, 2011
    …e nil values) to attributes DSL
Commits on May 30, 2011
  1. Added Boolean to supported types in attribute DSL (also fixed bug, fr…

    jrwest committed May 30, 2011
    …om original Bool type converter, when converting to FalseClass, in the process)
  2. begin implementing attribute DSL

    jrwest committed May 30, 2011
    * Only supporting top-level keys currently, using dotted keys will result in unexpected/untested behavior
    * Supports getter/setter method for each attribute 
    * Supports optional type casting on-load and when setting values (though no type checking). nil values are ignored in casts
Commits on May 29, 2011
  1. updated TODO

    jrwest committed May 29, 2011
  2. modifiers now work when including Mongomatic module

    jrwest committed May 29, 2011
    Wrote spec/mongomatic/modifiers_spec.rb to replace test/test_modifiers.rb
    Other Changes: 
    * Moved Mongomatic::Util#create_array to Mongomatic::Modifiers since its the only file it is used in. Mongomatic::Util is probably useless now
    * Mongomatic::Base no longer includes Mongomatic::Util but no backwards compat. is lost
  3. Move instance methods to seperate module.

    jrwest committed May 29, 2011
    Also, stop using class << self for module functions in Mongomatic module
  4. Gemfile.lock

    jrwest committed May 29, 2011
  5. one more minor TODO change

    jrwest committed May 29, 2011
  6. updated TODO

    jrwest committed May 29, 2011
  7. move Base methods into Mongomatic module, begin using rspec, some oth…

    jrwest committed May 28, 2011
    …er changes (see entire commit for details)
    Beginning processes of making Mongomatic an includable module instead of a Base to subclass. Moved all functions (except #transaction, becasue it doesn't belong in main module) out of Mongomatic::Base and into Mongomatic module (plan is to move things out of this module into some sub-modules to clean it up, later). The move maintains backward compatibility so far by including the Mongomatic module in Base. The only thing that seems to be broken (when running the old tests) are the typed field checks, but I removed those explicitly so its expected. Note: I'm not sure how we want to handle backwards compat, if at all with the old _typed_field_ DSL (being replaced by _attribute_ DSL). 
    Also, began writing specs to replace existing unit tests. Leaving the old tests around for now so we can try to maintain some semblance of backwards compat. 
    Some other changes along the way: 
    * fixed bugs in #has_key? when accessing an array of embedded documents by index. it now should work as expected for all dotted keys
    * fixed bugs in #value_for_key and #set_value_for_key when dealing with arrays of embedded documents (small improvements on Tony Schneider's fix
    * #[], #[]= now support use of mongodb dot notation when accessing keys. They are aliases for #value_for_key and #set_value_for_key respectively
    * .count now uses collection.count. This is a minor improvement but reduces overhead of creating a useless Mongomatic::Cursor
    * reload now uses find_one instead of find
    * broke the to be deprecated/removed(?) typed_field syntax
Commits on May 28, 2011
Commits on May 24, 2011
  1. Add items to TODO

    jsmestad committed May 24, 2011
  2. Merge remote-tracking branch 'dusty/master'

    jsmestad committed May 24, 2011
  3. new gemspec for 0.9.0.pre

    jsmestad committed May 24, 2011
  4. whitespace cleanup

    jsmestad committed May 24, 2011
  5. cleanup whitespace

    jsmestad committed May 24, 2011
Commits on May 21, 2011
  1. Merge pull request #3 from tonywok/master

    jrwest committed May 21, 2011
    Using $set on a collection of nested documents
  2. Add .rvmrc to gitignore

    tonywok committed May 21, 2011
Commits on May 19, 2011
  1. accidentally let in .bundle/config

    Dusty committed May 19, 2011
  2. make save and save! easier

    Dusty committed May 19, 2011
Commits on May 11, 2011
  1. update readme

    jsmestad committed May 11, 2011
Commits on May 7, 2011