Permalink
Commits on Apr 30, 2010
  1. Bumping to mongo 1.0.

    jnunemaker committed Apr 30, 2010
Commits on Apr 20, 2010
  1. first_or_create|new now reject non-keys in the new and create calls. …

    …This allows you to query for things that aren't keys but not get an error during initialization. ie: first_or_new(:foo => 'bar', :age.gt => 10)
    jnunemaker committed Apr 20, 2010
Commits on Apr 19, 2010
  1. Version bump to 0.7.4.

      * 0.20.1 Ruby driver compatibility
      * descendants defaults to array
      * BSON::ObjectID#as_json
      * :fields now supports hash (:fields => {:content => 0, :title => 1})
      * one embeddable association
      * multiple symbol operators in query on one key now works (ie: {:age.gt => 10, :age.lt => 20} # => {:age => {'$gt' => 10, '$lt' => 20}})
      * many documents now accepts array of hashes (previously only array of association class objects)
      * bug fix for setting parent/root documents with embedded key
      * many association now keeps track of unsaved docs and saves them on owner save
      * updated validatable dependency
      * push_uniq now add_to_set and uses $addToSet (mongodb 1.3+)
      * unset modifier to remove keys from documents (mongodb 1.3+)
    jnunemaker committed Apr 19, 2010
  2. Small tweak to hopefully nab the random failure in this test. Only ha…

    …ppens like 1 in 30 runs or so.
    jnunemaker committed Apr 19, 2010
Commits on Apr 18, 2010
  1. Reorganized tests.

    jnunemaker committed Apr 18, 2010
  2. Updated #load_target on proxy.

    tjtuom committed with jnunemaker Mar 29, 2010
  3. Added tests.

    tjtuom committed with jnunemaker Mar 29, 2010
  4. Added :order => 'name' so there are never random failures when checki…

    …ng the pets by order.
    jnunemaker committed Apr 18, 2010
  5. Switched from fields to keys in a few spots. Moved multiple symbol op…

    …erators on one key merging to normalized_value from to_criteria.
    jnunemaker committed Apr 18, 2010
  6. Added normalized_direction internal method for Mongo::Query. Just mov…

    …ing some things around.
    jnunemaker committed Apr 18, 2010
  7. Add Mongo::ObjectID#as_json so that it does 'the right thing' when us…

    …ing render :json => object in Rails (which implicitly calls as_json) (rlivsey)
    jnunemaker committed Apr 18, 2010
  8. Update to new version of ruby driver, :fields support now hash like {…

    …:date => 1, :price => 0}
    Houdini committed with jnunemaker Mar 26, 2010
  9. added test for protected fixes

    fxposter committed with jnunemaker Apr 16, 2010
  10. Now MongoMapper::Document.new(nil) is a valid call.

    ActiveRecord allows to create models with nil as an attributes parameter.
    For example User.new(nil), e.g. User.new(params[:user]), when params[:user] is blank.
    fxposter committed with jnunemaker Apr 15, 2010
Commits on Apr 5, 2010