Permalink
Commits on Feb 8, 2011
  1. Merge branch 'master' of https://github.com/vuze/mongomapper into vuz…

    jnunemaker committed Feb 8, 2011
    …e-master
    
    Conflicts:
      lib/mongo_mapper/plugins/embedded_document.rb
  2. Create far fewer arrays.

    jnunemaker committed Feb 8, 2011
    Contributed by cheald:
    cheald@fbbcfef
Commits on Feb 3, 2011
  1. update plugin example

    bkeepers committed Feb 3, 2011
Commits on Feb 2, 2011
  1. Merge branch 'concerns'

    bkeepers committed Feb 2, 2011
    * concerns:
      Deprecate .append_inclusions and .append_extensions in favor of using .plugin
      ActiveSupport::Concern tweaks
      Use ActiveSupport::Concern for Document and Embedded Document
      Deprecate plugin structure in favor of using ActiveSupport::Concern
  2. Merge branch 'rails3' into concerns

    bkeepers committed Feb 2, 2011
    * rails3: (49 commits)
      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.
      Define association accessors on a module instead of directly on the model class
      Extract accessors specific to one and belongs_to associations
      Fix test for recent association changes
      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
      Move code specific to OneAssociation
      Move code specific to many association
      Clone default values so they can't be modified
      Refactor association base into separate classes instead of using conditionals
      cosmetics
      Specify a source in the Gemfile so bundler can find missing gems
      Add a rack middleware to clear the identity map and register it
      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
      ...
  3. Merge branch 'rails3'

    bkeepers committed Feb 2, 2011
    * rails3: (59 commits)
      Fix test for recent association changes
      Made test:prepare dependent on db:test:prepare
      Connect to master changed to connect.
      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.
      Clean up some style stuff
      Make create_association return the created association, so it can be made observable
      Ensured entire document graph will have new? flag set to false, relational references persisted, and dirty tracking reset upon saving of the root document regardless of depth of embedded documents
      Added rake tasks
      Reverted dirty behavior to pre-active model behavior with respect to multiple changes to the same attribute; implemented and tested 'previously_changed' feature from ActiveModel::Dirty
      #new? on embedded docs returns false when parent doc is saved
      Add :include option to serializable_hash
      Refactor #serializable_hash to call #serializable_hash on any objects returned from methods or embedded docs
      The cleanup of the dirty plugin introduced a bug where an unsuccessful call to Document#save would inappropriately clear changes. Added a test case to detect the problem and fixed the bug.
      ActiveModel lint tests no long need to be run separately
      Added XML serialization
      Replace JSON serialization with ActiveModel
      Clean up Dirty attribute support and remove untested support for @previously_changed attributes
      Replaced custom dirty tracking with ActiveModel::Dirty
      Add note about ActiveModel::Validations monkey patch
      ...
Commits on Feb 1, 2011
  1. Merge branch 'refactor-associations'

    bkeepers committed Feb 1, 2011
    * 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
  2. Merge branch 'master' into rails3

    bkeepers committed Feb 1, 2011
    * 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
Commits on Jan 28, 2011
  1. Merge branch 'edoc-save-bang'

    Tim Connor & Tim Uruski
    Tim Connor & Tim Uruski committed Jan 28, 2011
  2. save bang on edocs should not just call save

    Olivier Goussard & Tim Connor
    Olivier Goussard & Tim Connor committed Jan 28, 2011
Commits on Jan 24, 2011
  1. Merge branch 'master' of github.com:jnunemaker/mongomapper

    Jacob Maine & Travis Bell
    Jacob Maine & Travis Bell committed Jan 24, 2011
  2. prevent errors in many embedded docs

    Jacob Maine & Travis Bell
    Jacob Maine & Travis Bell committed Jan 24, 2011
    Prevents error: undefined method 'map' for nil
    initiated by interactions between different versions of models
Commits on Jan 21, 2011
  1. Added turn test output formatter.

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

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

    bkeepers committed Jan 21, 2011
    * 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
Commits on Jan 15, 2011
Commits on Jan 14, 2011
  1. Merge branch 'master' into rails3

    bkeepers committed Jan 14, 2011
    * 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
Commits on Jan 13, 2011
  1. Added ruby-debug

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

    bkeepers committed Jan 13, 2011
    Rack's MockResponse calls #each on the body, which is not defined on String in Ruby 1.9
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…

    bkeepers committed Jan 7, 2011
    …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
  3. Merge branch 'master' into rails3

    bkeepers committed Jan 7, 2011
    * 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