Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on May 31, 2011
  1. @jrwest

    added type checking (on non-nil values) and required fields (to handl…

    jrwest authored
    …e nil values) to attributes DSL
  2. @jrwest
  3. @jrwest
Commits on May 30, 2011
  1. @jrwest
  2. @jrwest

    Added Boolean to supported types in attribute DSL (also fixed bug, fr…

    jrwest authored
    …om original Bool type converter, when converting to FalseClass, in the process)
  3. @jrwest

    begin implementing attribute DSL

    jrwest authored
    * 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. @jrwest

    updated TODO

    jrwest authored
  2. @jrwest
  3. @jrwest
  4. @jrwest

    modifiers now work when including Mongomatic module

    jrwest authored
    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
  5. @jrwest

    Move instance methods to seperate module.

    jrwest authored
    Also, stop using class << self for module functions in Mongomatic module
  6. @jrwest

    Gemfile.lock

    jrwest authored
  7. @jrwest
  8. @jrwest

    one more minor TODO change

    jrwest authored
  9. @jrwest

    updated TODO

    jrwest authored
  10. @jrwest

    move Base methods into Mongomatic module, begin using rspec, some oth…

    jrwest authored
    …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
  1. @jrwest
Commits on May 24, 2011
  1. Add items to TODO

    authored
  2. Merge remote-tracking branch 'dusty/master'

    authored
    Conflicts:
    	lib/mongomatic/base.rb
  3. Adding TODO for 0.9.0 release

    authored
  4. new gemspec for 0.9.0.pre

    authored
  5. whitespace cleanup

    authored
  6. cleanup whitespace

    authored
Commits on May 21, 2011
  1. @jrwest

    Merge pull request #3 from tonywok/master

    jrwest authored
    Using $set on a collection of nested documents
  2. @tonywok

    Add .rvmrc to gitignore

    tonywok authored
  3. @tonywok
Commits on May 19, 2011
  1. accidentally let in .bundle/config

    Dusty authored
  2. make save and save! easier

    Dusty authored
Commits on May 11, 2011
  1. update readme

    authored
Commits on May 7, 2011
  1. remove appendix from license

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