Permalink
Commits on Feb 1, 2011
  1. Merge branch 'master' into rails3

    * master:
      Call #save! instead of #save on the parent when calling #save! on an embedded doc
      Added turn test output formatter.
      No longer needed as I added tests for inspect in previous commit.
      Attributes are now alpha sorted in #inspect.
      Minor: errant inspect statement in test.
    
    Conflicts:
    	lib/mongo_mapper/plugins/embedded_document.rb
    bkeepers committed Feb 1, 2011
Commits on Jan 21, 2011
  1. Added turn test output formatter.

    Shows failure as you go and formats output a bit better.
    jnunemaker committed Jan 21, 2011
  2. Attributes are now alpha sorted in #inspect.

    Also added explicit inspect test. There are various points it was being tested in the code but no explicit tests for the module.
    jnunemaker committed Jan 21, 2011
  3. Merge branch 'refactor-associations' into rails3

    * refactor-associations:
      Define association accessors on a module instead of directly on the model class
      Extract accessors specific to one and belongs_to associations
      Move code specific to OneAssociation
      Move code specific to many association
      Refactor association base into separate classes instead of using conditionals
    
    Conflicts:
      lib/mongo_mapper/plugins/associations.rb
      lib/mongo_mapper/plugins/callbacks.rb
    bkeepers committed Jan 21, 2011
Commits on Jan 15, 2011
Commits on Jan 14, 2011
  1. Merge branch 'master' into rails3

    * master:
      Added ruby-debug
      Fix middleware test on Ruby 1.9
      Fix issue where belongs_to and one associations don't get reset if the value is nil
      Clone default values so they can't be modified
      cosmetics
      Fixed an issue using the association_name= method to assign a new object updated existing pointers to the proxy, rather than generating a new one
      Modified accessor method for one and belongs_to associations to return nil rather than a proxy object if the association does not exist Added additional method calls for build_<name>, create_<name>, and create<name>! since calling .build(), .create(), and .create!() would raise when the association is nil. Discussion from http://groups.google.com/group/mongomapper/browse_thread/thread/e311dd04b0af576f
    
    Conflicts:
      Gemfile
      Gemfile.lock
      lib/mongo_mapper/plugins/callbacks.rb
    bkeepers committed Jan 14, 2011
Commits on Jan 13, 2011
  1. Added ruby-debug

    bkeepers committed Jan 13, 2011
  2. Fix middleware test on Ruby 1.9

    Rack's MockResponse calls #each on the body, which is not defined on String in Ruby 1.9
    bkeepers committed Jan 13, 2011
Commits on Jan 12, 2011
Commits on Jan 8, 2011
Commits on Jan 7, 2011
  1. cosmetics

    bkeepers committed Jan 7, 2011
  2. Merge branch 'nil_associations' of https://github.com/jaronkk/mongoma…

    …pper
    
    * 'nil_associations' of https://github.com/jaronkk/mongomapper:
      Fixed an issue using the association_name= method to assign a new object updated existing pointers to the proxy, rather than generating a new one
      Modified accessor method for one and belongs_to associations to return nil rather than a proxy object if the association does not exist Added additional method calls for build_<name>, create_<name>, and create<name>! since calling .build(), .create(), and .create!() would raise when the association is nil. Discussion from http://groups.google.com/group/mongomapper/browse_thread/thread/e311dd04b0af576f
    bkeepers committed Jan 7, 2011
  3. Merge branch 'master' into rails3

    * master:
      Specify a source in the Gemfile so bundler can find missing gems
      Add a rack middleware to clear the identity map and register it
    
    Conflicts:
      Gemfile
      Gemfile.lock
      mongo_mapper.gemspec
      rails/init.rb
    bkeepers committed Jan 7, 2011
  4. Merge branch 'master' into rails3

    * master:
      Fixed issue with nested embedded one's not getting _id set properly.
      Optimized in array proxy to not query if ids are blank.
    bkeepers committed Jan 7, 2011
Commits on Jan 4, 2011
  1. Fixed an issue using the association_name= method to assign a new obj…

    …ect updated existing pointers to the proxy, rather than generating a new one
    jaronkk committed Jan 4, 2011
Commits on Jan 3, 2011
  1. Modified accessor method for one and belongs_to associations to retur…

    …n nil rather than a proxy object if the association does not exist
    
    Added additional method calls for build_<name>, create_<name>, and create<name>! since calling .build(), .create(), and .create!() would raise when the association is nil.
    Discussion from http://groups.google.com/group/mongomapper/browse_thread/thread/e311dd04b0af576f
    jaronkk committed Jan 3, 2011
Commits on Dec 27, 2010
  1. Fixed issue with nested embedded one's not getting _id set properly.

    Test thanks to bhbryant.
    jnunemaker committed Dec 27, 2010
Commits on Nov 20, 2010
  1. Merge branch 'master' into rails3

    * master:
      Option :typecast for key works with Key#get
    bkeepers committed Nov 20, 2010
  2. Merge branch 'master' of https://github.com/rainux/mongomapper

    * 'master' of https://github.com/rainux/mongomapper:
      Option :typecast for key works with Key#get
    bkeepers committed Nov 20, 2010
Commits on Nov 5, 2010
  1. Merge remote branch 'jnunemaker/master' into rails3

    * jnunemaker/master:
      Bundle update.
      Updated rake file test tasks.
      Fixed one proxy replace with nil value.
      Added safe example.
      Bump to 0.8.6 for connect_to_master => connect.
      Connect to master changed to connect.
      Bump 0.8.5. Just a plucky update.
      Threw bundler into the mix.
      Minor: remove stupid leftover.
      Update plucky dependency (and as such mongo, bson, etc.) and upgrade Binary type to use BSON::Binary instead of BSON::ByteBuffer.
      Quiet down the tests
      remove unnecessary conditional
    
    Conflicts:
    	Gemfile
    	Gemfile.lock
    	Rakefile
    	mongo_mapper.gemspec
    bkeepers committed Nov 5, 2010
  2. Bundle update.

    jnunemaker committed Nov 5, 2010
  3. Fixed one proxy replace with nil value.

    Now actually unassigns target foreign key if target exists.
    jnunemaker committed Nov 5, 2010
Commits on Nov 1, 2010
  1. Added safe example.

    jnunemaker committed Nov 1, 2010