Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: mongomapper/mongomapper
...
head fork: mongomapper/mongomapper
This comparison is big! We're only showing the most recent 250 commits
Commits on Jul 09, 2012
John Nunemaker jnunemaker Rewrite identity map.
More rails and toystore style.
65744ce
John Nunemaker jnunemaker No longer need model clearing as it is removed. d41c360
John Nunemaker jnunemaker Always include IdentityMap, but disabled by default. 9f9a0a9
John Nunemaker jnunemaker Update identity map middleware.
Works with newer rack api of each and close.

Also, enables identity map for request and then disables, rather than
just always having it on.
aaadd84
John Nunemaker jnunemaker Middleware is now optional as it turns IM on. fad2ccc
Commits on Jul 14, 2012
Brian Alexander balexand allow options hash to be passed to safe method d629a86
Commits on Jul 21, 2012
John Nunemaker jnunemaker Release 0.11.2.
Noteable: plucky upgrade and rails 3.2 support
142aa68
John Nunemaker jnunemaker Update homepage in gemspec 89a9da0
Commits on Jul 27, 2012
Elijah Miller jqr Support for the new mongo hosts option format. 505caec
Commits on Sep 01, 2012
John Nunemaker jnunemaker Merge branch 'identity-map' 9cd9d3f
John Nunemaker jnunemaker Remove 1.9.2 from travis. 2fed18d
Commits on Sep 07, 2012
Darragh Curran darragh test/fix for records with partial set of fields being added to identi…
…ty map when using .each on Plucky::Query
1bead1a
John Nunemaker jnunemaker Merge pull request #447 from darragh/fix_identity_map_with_fields_and…
…_each

partial records incorrectly added to IdentityMap when using Plucky::Query#each
3723150
Commits on Sep 12, 2012
John Nunemaker jnunemaker Add a note about identity map usage. 8cf29ce
John Nunemaker jnunemaker Remove growl crap 6909939
John Nunemaker jnunemaker Force 0.5.2 of plucky.
Fixes count query loading all documents when using the identity map.
12d1f89
John Nunemaker jnunemaker Release 0.12.0 fb517ee
Commits on Sep 14, 2012
Winfield wpeterson Only set defaults values on initialize()
Use write_key to bypass attr_accessible protection for default values.

Add support for default _id values to id accessor.
6ef7fd1
Commits on Sep 17, 2012
Winfield wpeterson Initialize default values for all cases
Ensure we setup default attribute values for initialize() and initialize_from_database().

This fixes issues with id generation and other default values being set for embedded docs/associations.
29bf264
Winfield wpeterson Add automatic id generation when not set.
There are several cases (like clone()) where we want to generate a new id for a Document without initializing all other default values.

Allow the get() accessor for _id key to automatically generate the id if one is not defined.
182fb9f
Commits on Sep 19, 2012
Winfield wpeterson Declare TravisCI mongo service dependency.
Attempt to fix Travis build by enabling the mongo service.

This service was disabled by default and now requires an explicit service config.
20838ca
Commits on Sep 20, 2012
Winfield wpeterson Declare TravisCI mongo service dependency.
Attempt to fix Travis build by enabling the mongo service.

This service was disabled by default and now requires an explicit service config.
ad20a8c
Commits on Sep 21, 2012
John Nunemaker jnunemaker Merge pull request #451 from wpeterson/bug/travis_build
Fix Travis MongoMapper build
0506756
Daniel Becker danielbecker Added SSL connection support b06b72b
Alessandro Dal Grande aledalgrande fixed tests broken by the SSL change a3e0c22
Alessandro Dal Grande aledalgrande test case for active SSL config 60483b9
John Nunemaker jnunemaker Minor: formatting 65b04fd
John Nunemaker jnunemaker Only pass ssl key if present bd6d20f
John Nunemaker jnunemaker Merge branch 'feature/initialize_defaults' of https://github.com/wpet…
…erson/mongomapper into wpeterson-feature/initialize_defaults
684faf6
John Nunemaker jnunemaker Rewrite part of the default key stuff
* has_default changed to default?
* default_attributes removed in favor of a select/each with defaulted
keys
5106f80
John Nunemaker jnunemaker Inherit connection and database name.
Subclasses were not getting these before. Only collection name was
inherited.

Fixes #420 and #424
6c1cb7c
John Nunemaker jnunemaker Merge branch 'bug/issue-421' of https://github.com/andrewtimberlake/m…
…ongomapper into andrewtimberlake-bug/issue-421
31c5b9a
John Nunemaker jnunemaker Fixes for ruby 1.8. 67b84ac
John Nunemaker jnunemaker Merge branch 'generator-parent-option' of https://github.com/bearded/…
…mongomapper into bearded-generator-parent-option
3d302fa
John Nunemaker jnunemaker Merge branch 'embedded-callbacks-optional' 3f28a93
John Nunemaker jnunemaker Merge branch 'safe_accepts_hash' of https://github.com/balexand/mongo…
…mapper into balexand-safe_accepts_hash
08ef976
John Nunemaker jnunemaker Optimization: use key?
keys.keys creates an uneeded array.
6bc16b5
John Nunemaker jnunemaker Optimization: _id just does this behind the scenes. 4c7419a
John Nunemaker jnunemaker Move test helpers to support folder. 289c844
John Nunemaker jnunemaker Moving generator tests around.
Trying to get travis to pass.
9b75659
Leif Ringstad leifcr Fixes tests for generators b192a8e
John Nunemaker jnunemaker Merge pull request #453 from leifcr/test_generator_fix
Fixes tests for generators
62f8183
John Nunemaker jnunemaker Use a bson ordered hash to fix 1.8.7/ree. b12af57
John Nunemaker jnunemaker A few modifier test tweaks. 17badd6
John Nunemaker jnunemaker Change assert keys removed to just take document 6fb1b01
John Nunemaker jnunemaker Added document found assertion 80ed6de
Commits on Sep 28, 2012
Chris Heald cheald Various performance fixes mostly related to avoid extraneous method i…
…nvocation
c4657ad
Chris Heald cheald OoO fix and a method call savings for Time#from_mongo 94e9825
Commits on Oct 01, 2012
Chris Gaffney gaffneyc Support non-ObjectID ids being given to modifiers.
The partially broken by cf82ec6 where it allowed a single ID to be
passed and it would work as expected. This also adds support for
multiple IDs to be provided.
73f30d9
Commits on Oct 02, 2012
John Nunemaker jnunemaker Merge pull request #459 from jnunemaker/support-string-ids-in-modifiers
Support non-ObjectID ids being given to modifiers.
e3521dc
Chris Gaffney gaffneyc Provide a fix for many associations not yielding to each in callbacks.
Ran into an issue when iterating over a many association in a
before_save callback on a document. For an association named foos,
`foos.inspect` would show the items but `foos.each` would never yield to
the given block since it appears to be empty.

The original issue I was tracking down was that instead of not yielding
it was yielding instances of Mongo::Cursor instead of the association
object. I haven't been able to recreate that case.
9844b2a
Commits on Oct 03, 2012
John Nunemaker jnunemaker Merge pull request #462 from jnunemaker/association-each-not-yielding
Provide a fix for many associations not yielding to each in callbacks.
d1eb6bc
Commits on Oct 19, 2012
Chris Heald cheald Don't iterate the whole cursor twice when using IdentityMap with #all…
…. Improve performance by avoiding explicit block bindings, extraneous method calls, and extraneous array creation.
ab77215
Chris Heald cheald Eliminate a couple more extraneous block bindings 400f4b3
Commits on Oct 22, 2012
Chris Heald cheald Save typecast/uncast values and use those where possible, rather than…
… recomputing them every time they're accessed.

Use #key? rather than #keys.include? for better performance

Significantly reduce calls to #read_keys by avoiding #attributes calls from ActiveModel::Dirty. Improve the speed of #read_keys by avoiding string interns and ivar lookups where possible. Eliminate extraneous array creations in Keys#attributes and Associations#embedded_associations. Improve the speed of Dirty#write_key by using ivars directly rather than going through instance methods.

Revert to the slower-but-more-semantic key reads for #attributes now that the Dirty attributes thrashing is fixed.

attr_accessor -> attr_reader for semantic correctness
942003c
John Nunemaker jnunemaker Correctly define _id as bson ordered hash.
The reason the modifier tests were failing is because in #attributes, _id was being converted to a hash with indifferent access instead of staying a bson ordered hash.
197c2f6
Commits on Oct 26, 2012
Brian Alexander balexand if scope method is found and called in model, then don't raise NoMeth…
…odError
3a78f04
Brian Alexander balexand move delete and destroy methods to Querying::Decorator 8ae7ce0
Commits on Nov 03, 2012
Chris Heald cheald Fix Ruby 2.0 breakage caused by behavior changes to #respond_to? - fi…
…xes #473
eb232a9
Commits on Nov 25, 2012
Chris Heald cheald Skip dirty checks and assignments while loading from the DB; improves…
… load times
808cd4e
Chris Heald cheald Minor optimizations; memoize enum-build values and reduce iterations …
…where possible
12c131a
Commits on Dec 07, 2012
Blaž Hrastnik Fix legacy mongo class names, that are in deprecation as of 1.8.0.
mongodb/mongo-ruby-driver@d356355
Mongo::Connection -> Mongo::MongoClient
Mongo::ReplSetConnection -> Mongo::MongoReplicaSetClient
8d1f3fd
Chris Heald cheald Merge archSeer's mongo 1.8 changes, bump dependencies. 875e9a3
Chris Heald cheald Upgrade straggler connection references.
Upgrade safe semantics to be consistent with the new MongoClient safe semantics - legacy usage (:safe => true) is transparently upgraded to the new system.
BIG CHANGE: In keeping with the driver defaults, safety is now ON by default (:w => 1) rather than off by default. Use `safe false` to turn off safety in a model.
Fixed tests.
68373a5
Chris Heald cheald Instead of forcing safety on by default, let the connection settings …
…specify it. Add w, pool_size, and ssl option defaults to the config.
7a653a8
Chris Heald cheald Fix options in the template cb66ae4
Commits on Dec 25, 2012
Nicolas Viennot nviennot Some source files were executable
cleaned up with:

    find lib test -type f | xargs chmod 644
b3f469d
Nicolas Viennot nviennot reverse_merge! -> reverse_merge
Tampering with the caller's argument might not be a good idea.
Have our own copy.
016fa6e
Commits on Dec 28, 2012
John Nunemaker jnunemaker Ignore bin and vendor, but not bin/mmconsole. 2e854cb
John Nunemaker jnunemaker Merge pull request #485 from nviennot/reverse_merge
reverse_merge! -> reverse_merge
9a86e4f
John Nunemaker jnunemaker Merge branch 'query_methods_match_correct_docs' of https://github.com…
…/balexand/mongomapper into balexand-query_methods_match_correct_docs
5711274
John Nunemaker jnunemaker Ensure sort order of documents when verifying in query test. f8d078c
John Nunemaker jnunemaker Merge branch 'master' of https://github.com/nviennot/mongomapper into…
… nviennot-master
c6a4c60
John Nunemaker jnunemaker Change mode of executable files to 0644. 30e062c
John Nunemaker jnunemaker Restrict the mongo requirement a bit. f95c58e
John Nunemaker jnunemaker Update plucky version. 9ce41eb
Commits on Dec 31, 2012
John Nunemaker jnunemaker Upgrade plucky to latest.
New version of plucky includes a few performance tweaks.
ea6408d
John Nunemaker jnunemaker Bump up the plucky requirement for some bug fixes. f21862e
Commits on Jan 23, 2013
Kamil Bednarz Added record_timestamps class var to the timestamps plugin 7b72393
John Nunemaker jnunemaker Removed unnecessary then from pull request. 1e40d7e
Commits on Mar 06, 2013
José Valim josevalim Update bundler and fix mocha dependency 65d6e2d
Commits on Mar 14, 2013
John Nunemaker jnunemaker Merge pull request #502 from josevalim/bundler
Update bundler and fix mocha dependency
f309ed3
John Nunemaker jnunemaker Update to latest plucky. b927077
John Nunemaker jnunemaker Tweak the test helper requires. 6750c70
John Nunemaker jnunemaker Get all gemfiles on the same page. 11fd334
John Nunemaker jnunemaker Fix test name conflict. 829c919
John Nunemaker jnunemaker Prefer && to and. f330747
John Nunemaker jnunemaker Prefer parenthesis when using assignment and || over or. c0a4dca
John Nunemaker jnunemaker Minor: extra whitespace removed. f5f6952
Commits on May 31, 2013
Pablo Torres ptn Use ||= idiom fc3aea5
Commits on Jun 18, 2013
Chris Heald cheald Relax mongo driver requirement to permit 1.9 5986d29
James jamesbowles changed deleted cursor.next_object method to cursor.next 989f683
John Nunemaker jnunemaker Merge pull request #518 from jamesbowles/master
changed deleted cursor.next_object method to cursor.next
2cce239
Commits on Jun 22, 2013
Chris Heald cheald Merge branch 'master' of git://github.com/jnunemaker/mongomapper 55b5930
Commits on Jul 02, 2013
Chris Heald cheald Minor improvements to type cast speeds. Important since they're calle…
…d so often.

Remove instance #extends. They torch the ruby method cache! This is Very Very Bad. Don't do identity map stuff when the identity map is disabled.

Big changes to load behavior to improve load speeds substantially.

The big change here is that when loading from the database, we use
an #internal_write_key method that isn't eligible for plugins to
overwrite. Previously, things like #dirty_key's write_key would
be invoked when loading from the DB, which in turn invoked read_key
and a whole other chain of things. This massively slowed down read
speeds.

Other changes have been made to improve internal_write_key. First off,
uncast values are now stored in write (by the app, not the DB), and
only then from the Rails plugin, as that's the functionality that is
concerned with uncast values. It's now a simple hash lookup rather
than being a whole mess of ivars.

Keys#keys now copies the class.keys to an ivar when it's used. This
method is used very frequently, and avoiding the extra function
call has substantial benefit when you start adding it up.

is_a? was replaced with instance_of? in a number of places; this is
faster when you want to compare types directly, rather than the
inheritance hierarchiy.

We're testing !foo rather than foo.nil? in a number of places for
similar reasons.

Several tests which were too brittle have been fixed.

These changes have resulted in something approaching a 1000% speed
increase when reading from the database.

Dirty doesn't need initialize_from_database anymore

Since MM depends on activesupport already, just go ahead and include the Time.zone patch so we can remove #try

Performance improvements to boolean#from_mongo

Eliminate a bunch of uninitialized ivar warnings. Slightly improve the runtime of Key#get by avoiding a few method calls.

Remove spec that shouldn't have made it into this branch
a60b04c
Chris Heald cheald Add test suite converted to rspec
Update gemfiles for travis builds. Minor spec fixes for 1.8.7 - not passing on 1.8.7 yet

Add common gemfile
0fa179f
Chris Heald cheald Turn embedded callbacks off until a callback is actually defined.
Conflicts:
	spec/functional/callbacks_spec.rb
4da7bff
Chris Heald cheald Fix syntax for Ruby 1.8.7 8b637c2
Commits on Jul 03, 2013
Chris Heald cheald Merge branch 'load_speed_fixes' 61aa557
Chris Heald cheald Merge branch 'rspec_suite' 4699250
Chris Heald cheald Merge branch 'embedded_callbacks_fix' 8e6cd50
Chris Heald cheald Get MM building on Rails 4.0. Add Ruby 2.0 and Rails 4 to the Travis …
…test matrix.
a37dca9
Chris Heald cheald Add specs for embedded callback deferral 4b4f7df
Chris Heald cheald Remove old test suite and update watchr scripts to point to rspec ins…
…tead
986875c
Chris Heald cheald Bump plucky version and fix the build list to reflect the spec suite …
…change
ea6ccda
Chris Heald cheald Add build status image to README 0e7f12a
Chris Heald cheald Limit subclass scopes to subclasses. Closes #512.
Prior to this change, scopes added to subclasses would be visible on the
superclass
88f1eff
Chris Heald cheald Fix run-all watchr task a8073ab
Chris Heald cheald Fix spec; shoulda syntax isn't valid here be119ff
Chris Heald cheald Fix link to Travis build [ci skip] 0a8c18b
Commits on Jul 04, 2013
Chris Heald cheald Merge branch 'use_assignment_idiom' of git://github.com/ptn/mongomapper
Closes #514
adfc75e
Commits on Jul 05, 2013
Chris Heald cheald Compact before setting embedded docs on a many association. Closes #288 e8723aa
Chris Heald cheald Add specs to cover #402, #403, #320 4f829f0
Chris Heald cheald Add Dumpable plugin for specific control over marshalling. Add specs …
…to cover #330.
520cc65
Chris Heald cheald Fix problems with @errors not being dumpable on 1.8 47b9a52
Commits on Jul 06, 2013
Chris Heald cheald Normalize IDs passed to #find!, so that it may accept an unsplatted a…
…rray of IDs, just like #find. Closes #468. Closes #469.
ce89315
Chris Heald cheald Don't remove @_id if it's not already set; this is possible since @_i…
…d is lazy-assigned on access. Closes #498.
e4c7943
Chris Heald cheald Accept blocks passed to new/build/create/create! on documents and ass…
…ociations. Closes #352.
98f264f
Chris Heald cheald Fix super call semantics which break on 1.8 061efc7
Chris Heald cheald Add #scoped for AR 3.x parity 5cfaa5a
Commits on Jul 07, 2013
Chris Heald cheald Don't attempt to create a connection when inheriting classes if one d…
…oes not already exist. Closes #460.
1456861
Chris Heald cheald mock is deprecated, use double instead c5582c9
Chris Heald cheald Add coveralls and simplecov support ae86a71
Chris Heald cheald Improve coverage via new specs and tagging non-coverable areas with :…
…nocov:
7873066
Chris Heald cheald Update README with doc links and coverage badge ff2332a
Chris Heald cheald Fix for unsorted hashes causing spec failures on 1.8 f205649
Chris Heald cheald Add JRuby to travis. Minor spec fixes for JRuby compatibility. ec08319
Chris Heald cheald Add testing information to README 6927d75
Chris Heald cheald Make the created_at/updated_at tests work on seconds rather than gett…
…ing hung up on microseconds
c44a29a
Chris Heald cheald If we find a klass or array of klass via ManyDocumentsProxy#method_mi…
…ssing, return it. Allows for ::many plugins. Closes #404.
ffd22e1
Chris Heald cheald Validate key names. Explicitly disallow keys named `id` since they ar…
…en't reachable via plucky due to key normalization. Validate key names via regex. Closes #399.
951f44c
Chris Heald cheald Disable SCI when an inherited model explicitly changes its collection…
…. Closes #396.
b6f75e0
Li Wang foxban mongo driver requires that read preference to be type of symbol acdd86f
Chris Heald cheald Add specs to cover read option conversion 08b4acd
Chris Heald cheald Fix issues with set_collection_name nullifying SCI on 1.8 0cc9903
Commits on Jul 08, 2013
Chris Heald cheald Add critera_hash when single collection inherited. Closes #454 c7856e4
Chris Heald cheald Add spec to cover SCI with polymorphic interfaces. Closes #322. 980be10
Chris Heald cheald Permit the use of #insert and #update in addition to #save, so that w…
…e can catch and raise errors in safe mode. Closes #398.
ee1c7ba
Chris Heald cheald When performing Time#to_mongo, round times off to milliseconds and di…
…scard microseconds. Closes #455.
9b3bd27
Chris Heald cheald Add key aliasing
Add spec for key names which don't map to Ruby names easily.

Add :field_name as alternate for :abbr/:alias

Closes #353
f001de0
Commits on Jul 09, 2013
Chris Heald cheald Add handling for default keys that permits for bad names. Disallow ke…
…ys starting with capital letters, as they'll run afoul of Ruby's naming expectations.
550b88f
Chris Heald cheald Add #dynamic_keys and #defined_keys to let developers distinguish def…
…ined schema from derived schema. Use a less clever idiom for 1.8-compatible hash filtering.
2dca0dc
Commits on Jul 10, 2013
Chris Heald cheald Guard against failures when the keys are read or written during a hij…
…acked #initialize before we've gotten to run our own #initialize. Closes #531. Closes pluginaweek/state_machine#268.
911db46
Chris Heald cheald Only use @_dynamic_attributes for actual dynamic attributes. Prevents…
… desync between instance variable attributes and dynamic attributes.

Unalias keys before writing
07d6da0
Chris Heald cheald Generate ivars for all keys that have valid ruby names to preserve ba…
…ckwards compatibility with 0.12.0. This commit should be reverted for 1.0.0.
d696d6e
Chris Heald cheald Test #ivar rather than #valid_ruby_name? for speed and clarity ebb2532
Commits on Jul 12, 2013
Chris Heald cheald Add Integer#from_mongo. Closes #533 815e46c
Commits on Jul 25, 2013
Chris Heald cheald Clear @object_id_keys memoization cache when a new key is defined. Cl…
…oses #534.
4792e96
Commits on Jul 26, 2013
Chris Heald cheald Bump to 0.13.0-beta1 f08b348
Commits on Jul 28, 2013
Chris Heald cheald Bump plucky requirement to 0.6.5 e008280
Commits on Aug 02, 2013
Chris Heald cheald Lock timecop to 0.6.1 for Ruby 1.8.7 support 969217b
Chris Heald cheald Revert 1.9 hash syntax for hashrockets. e0d7db1
Commits on Aug 05, 2013
Chris Heald cheald Permit suppression of accessor methods via the :accessors option to #…
…key. Closes #535.
71e25ce
Commits on Aug 06, 2013
Chris Heald cheald Cast data with loaded from an embedded proxy, as embedded proxies may…
… receive their values from uncast sources. Closes #536
e5deacd
Commits on Aug 07, 2013
Chris Heald cheald Bump version for 0.13.0.beta2 9b87dee
Commits on Aug 09, 2013
Nigel Ramsay nigelramsay Use ruby 1.8 syntax for hashes 3803c17
Commits on Aug 12, 2013
Luciano Sousa lucianosousa Update README.rdoc
fix travis-ci image url
9329f27
Chris Heald cheald Merge pull request #540 from lucianosousa/patch-2
Update README.rdoc
0118b38
Chris Heald cheald Merge pull request #538 from AbleTech/feature/fix_ruby_1.8.7_failures
Use ruby 1.8 syntax for hashes
97ebe75
Commits on Aug 20, 2013
Leif Ringstad leifcr Add railtie rescue_responses (Issue #492) 41e688e
Leif Ringstad leifcr Need action_dispatch railtie for rescue_responses b26e677
Leif Ringstad leifcr Fix rescue responses for rails 3.0 and 3.1 cf44aaa
Chris Heald cheald Merge pull request #542 from leifcr/active_record_rescue_responses
Add active record rescue responses
9b330e7
Kohei Hasegawa banyan More accurate match, "system.*" is a reserved collection namespace d3c659b
Chris Heald cheald Merge pull request #543 from banyan/more-accurate-reserved-name
More accurate match, "system.*" is a reserved collection namespace
da452fe
Commits on Sep 19, 2013
Kristine Jennings KristineHines Clarify that Rails 4 support is only in the beta, add example Gemfile…
… entry for beta
fdd750a
Joseph Caudle jcaudle Merge pull request #545 from KristineHines/patch-1
Clarify that Rails 4 support is only in the beta, add example Gemfile en...
a0825a5
Commits on Oct 08, 2013
Chris Heald cheald Add rubysl for rubinius support 5f3db3e
Chris Heald cheald Add rbx to travis 14a8edb
Commits on Oct 09, 2013
Chris Heald cheald Add transparent alias conversion during query/modifier usage 6167523
Chris Heald cheald Remove RBX 48c31ca
Chris Heald cheald Dealias :fields options as well 1eec9d2
Commits on Oct 10, 2013
Chris Heald cheald Add de-aliasing for ensure_index et al 1aec36e
Chris Heald cheald Spec typo fix a84e4a9
Commits on Nov 21, 2013
Tad Hosford rthbound Be more clear when specifying which version of JRuby mongo_mapper is …
…tested against

There is no version 1.9; this change should avoid confusion.
355eac1
Chris Heald cheald Merge pull request #552 from rthbound/patch-1
There is no JRuby version 1.9; this change should avoid confusion
bbe8fb5
Commits on Dec 04, 2013
Tad Hosford rthbound Removes trailing whitespace and hard tabs dbd1c4e
Chris Heald cheald Merge pull request #555 from rthbound/removes_trailing_whitespace_and…
…_hard_tabs

Removes trailing whitespace and hard tabs
b80ad17
Tad Hosford rthbound Adds quality spec
  - Runs with: rspec spec/quality_spec.rb
8d84c4d
Commits on Dec 12, 2013
Tim Perkins tjwp-yesware Setting a key using send should return the new value
There seems to be an unnecessary line at the end of `internal_write_key`
that results in `send("#{key_name}=", value)` returning nil. This breaks
compatibility with 0.12.

The `@attributes` variable that is set to nil in the last line of
`internal_write_key` does not appear to be
referenced elsewhere.
ee7f1d4
Chris Heald cheald Test no longer breaks on JRuby 14dae37
Chris Heald cheald Merge branch 'fix-send-writer' of git://github.com/tjwp-yesware/mongo…
…mapper into tjwp-yesware-fix-send-writer

Fixes #557
04d7a1c
Chris Heald cheald Rather than removing the @attributes nilling, which is needed for Act…
…iveModel compat, just return value
651d0d8
Commits on Dec 15, 2013
Thomas Dmytryk Added error message: can't mass assign protected attribute c20089c
Commits on Dec 20, 2013
Michael Groeneman mgroeneman Proxy#send should work with blocks and procs e7a4e00
Commits on Jan 07, 2014
Joel Junström joeljunstrom Failing tests showing mutation of model state 73aa6a7
Joel Junström joeljunstrom Do not mutate model values using key with typecast
When setting an array key with the typecast option, the array members is currently
typecasted using `Array#map!`. Since `Key#set` can be called with a models ivar as
argument this will mutate the outer state on the model.

For example if we store an array with timestamps with another time zone
than utc we will get discrepancies when accessing the models data before
and after persisting it.
b13c927
Chris Heald cheald Merge pull request #563 from Oktavilla/key-serialization-mutates-docu…
…ment-state

Key serialization mutates model state when using key Array with option typecast
d3cc527
Commits on Feb 05, 2014
Chris Heald cheald Only add the _type key to inherited classes when they have the same c…
…ollection as their parent. Classes with a different collection name don't need the SCI keys. Ref: https://groups.google.com/forum/?hl=en%3Fhl%3Den#!topic/mongomapper/2ZilWUrlGdw
ca70c43
Chris Heald cheald Merge branch 'master' of github.com:jnunemaker/mongomapper f7138fc
Commits on Feb 06, 2014
Chris Heald cheald More complete fix for the previous issue; remove the _type key when S…
…CI is turned off with set_collection_name. Add specs to cover it.
d8e7d18
Commits on Mar 12, 2014
Leif Ringstad leifcr Update travis to test on 2.1.1 54b2be3
Commits on Mar 16, 2014
Dima Samodurov Support inheriting OneAssociation. 1c17c07
Commits on Apr 16, 2014
Frederick Cheung fcheung validatior#setup is deprecated in activemodel 4.1
instead class is passed to initialize
4d5bb9e
Chris Heald cheald Merge pull request #569 from fcheung/validator_setup_deprecated
validatior#setup is deprecated in activemodel 4.1
25b04e3
Commits on May 01, 2014
Chris Heald cheald Release 0.13.0 1af7f98
Commits on May 08, 2014
Leif Ringstad leifcr Merge remote-tracking branch 'upstream/master' into ruby_2_1_1 66213e0
Leif Ringstad leifcr Fixes autosupport loading. Rails issue 14664 64f9fc6
Commits on May 23, 2014
Scott Taylor smtlaissezfaire write_attribute should return a type casted value 7bc7137
Commits on Jun 03, 2014
Chris Heald cheald Merge pull request #572 from leifcr/ruby_2_1_1
Fix autosupport loading issue (See rails issue 14664), and add test for ruby 2.1.1
edff646
Chris Heald cheald Merge pull request #574 from smtlaissezfaire/write_attribute_returns_…
…typecasted_value

write_attribute should return a type casted value
ed64e55
Chris Heald cheald Merge pull request #566 from DimaSamodurov/master
Support inheriting OneAssociation.
24cd9dc
Chris Heald cheald Merge pull request #559 from mgroeneman/master
Proxy#send should work with blocks and procs
f30e11e
Commits on Jun 24, 2014
Bethany bsoule fixes syntax error in rescue responses
syntax error in rescue response declarations for rails < 3.2 was
causing MongoMapper::DocumentNotFound exceptions to cause an exception
in WebBrick's exception handling in development.
fb57604
Chris Heald cheald Merge pull request #579 from bsoule/not-found-error
fixes syntax error in rescue responses
6caa720
Commits on Jul 23, 2014
miyucy miyucy add to_mongo/from_mongo to Symbol fa49dc5
Commits on Aug 26, 2014
Srdjan Grubor sgnn7 Added ability to pull stats on a class
  Since going through the collection API is a bit awkward and the keys
  returned are camel-cased, this commit adds the ability to get these
  stats through ClassName.stats.snake_cased_field.
339df59
Srdjan Grubor sgnn7 Fixed be_true -> be_truthy deprecation warning in specs d6bc31e
Srdjan Grubor sgnn7 Fixed be_false -> be_falsey deprecation warning in specs
  Used the follwoing command to do this:
  $ grep -R be_false spec/ | awk -F: '{print $1}' | uniq | xargs sed -i 's/be_false/be_falsey/g'
11a512a
Srdjan Grubor sgnn7 Fixed other rspec depprectations (its) b25f18d
Commits on Sep 26, 2014
Chris Heald cheald Add support for mongos/sharded flag in config 698666e
Chris Heald cheald Merge branch 'master' of github.com:mongomapper/mongomapper ed85677
Commits on Oct 26, 2014
Scott Taylor smtlaissezfaire Add counter caching. 639aa29
Scott Taylor smtlaissezfaire counter caching: Add more conventional syntax: belongs_to :associatio…
…n, :counter_cache => true
aa30a90
Commits on Oct 27, 2014
Christian Murphy Fix remove_validations_for for AS 4.1
This is a slightly reworked version of the @fcheung's pull
request #584, using the same method across ActiveSupport
versions.  I added a definition for `set_callbacks`, which is
present in AS 4.1 but not in earlier versions.  This can be
discarded once older versions of AS are no longer supported.
49b3946
Commits on Oct 28, 2014
Christian Murphy Fix remove_validations_for fix for AS 3.x/4.x 947e9b6
Commits on Nov 18, 2014
Chris Heald cheald Merge pull request #587 from cpmurphy/fixes/keys_active_support_4_1
Fix remove_validations_for for AS 4.1
92df69e
Chris Heald cheald Merge pull request #583 from sgnn7/add_collection_stats
Add collection stats and cleanup deprecation warnings
9122bcc
Chris Heald cheald Merge pull request #556 from rthbound/adds_quality_spec
Adds quality spec
7928725
Chris Heald cheald Merge pull request #581 from miyucy/add-symbol-extension
add to_mongo/from_mongo to Symbol
2d2ba66
Chris Heald cheald Merge pull request #558 from ThomasAlxDmy/explicit_error_message
Added error message: can't mass assign protected attribute. This should be deprecated for proper protected_attributes support down the road.
c406a47
Chris Heald cheald Merge pull request #586 from smtlaissezfaire/counter_cache
Counter cache
ae03f80
Scott Taylor smtlaissezfaire Add counter caching. e2fde6c
Scott Taylor smtlaissezfaire counter caching: Add more conventional syntax: belongs_to :associatio…
…n, :counter_cache => true
4aabc63
Chris Heald cheald We don't support rspec 3 yet.
Revert "Fixed other rspec depprectations (its)"

This reverts commit b25f18d.

Revert "Fixed be_false -> be_falsey deprecation warning in specs"

This reverts commit 11a512a.

Revert "Fixed be_true -> be_truthy deprecation warning in specs"

This reverts commit d6bc31e.
ac9937d
Chris Heald cheald Remove trailing whitespace 518738b
Chris Heald cheald Merge branch 'master' of github.com:mongomapper/mongomapper a89e9aa
Chris Heald cheald Lock rest-client to 1.6.7 to ensure installation on 1.8.7 d446a30
Chris Heald cheald Bump to 0.13.1 410d6dc
Commits on Nov 19, 2014
Chris Heald cheald [skip ci] update the readme d219f70
Scott Taylor smtlaissezfaire Add changelog entries for 0.13.1, 0.13.0 a6c9816
Scott Taylor smtlaissezfaire Rename Gemfile.common => Gemfile.common.rb 7a66403
Scott Taylor smtlaissezfaire upgrade rspec to 2.99 to get deprecation warnings for rspec 3 5188c66
Scott Taylor smtlaissezfaire upgrade to rspec 3.0
rspec: convert mock expectations into new syntax to avoid deprecation warnings

fix rspec deprecation warning: failure_message

upgrade to rspec 3.1.0

maybe fix spec failures on linux
705eed0
Scott Taylor smtlaissezfaire Revert "We don't support rspec 3 yet."
This reverts commit ac9937d.
ba8d098
Scott Taylor smtlaissezfaire [skip ci] Update the changelog b418a39
Commits on Nov 24, 2014
Scott Taylor smtlaissezfaire add after_find, after_initialize callbacks cc20a74
Scott Taylor smtlaissezfaire Only partially update objects (using $set and $unset) when updates oc…
…cur.

Note: this does not use ActiveModel::Dirty as ActiveModel::Dirty doesn't find in place changes (such as appending to an array or calling gsub! on a string).

Partial Updates can be turned on or off per class (by default they are off):

  class Person
    include MongoMapper::Document
    self.partial_updates = false
  end
16402af
Commits on Dec 18, 2014
Chris Heald cheald Disallow class as a key name 2476f8b
Chris Heald cheald Don't create accessors for reserved keys (id, class, etc) 0661d78
Commits on Jan 08, 2015
dpoineau dpoineau Fixing failing tests for rails 4 0f10b32
Commits on Jan 12, 2015
dpoineau dpoineau Adding ruby 1.8.7 specific gem files to use specific version of i18n 8692c8e
Commits on Feb 04, 2015
Chris Heald cheald Merge pull request #601 from dpoineau/fixing-failing-tests-all
Fixing all currently failing tests
66ecff4
Chris Heald cheald Merge pull request #589 from smtlaissezfaire/partial_updates
Only partially update objects (using $set and $unset) when updates occur...
8732073
dpoineau dpoineau Allowing with_cast to be passed to identity_map.load 66e90a6
Chris Heald cheald Merge pull request #597 from dpoineau/allow-with-cast-for-identity-ma…
…p-load

Allowing with_cast to be passed to identity_map.load
cfe48ed
Commits on Feb 11, 2015
Scott Taylor smtlaissezfaire Fix counter caching with polymorphic belongs_to. (Thanks @bhernez). C…
…loses #602.
e4e9912
Scott Taylor smtlaissezfaire Add option to allow static only keys (mimic Mongoid's allow_dynamic_f…
…ields = false). Closes #476.
250481c
Scott Taylor smtlaissezfaire changelog updates e0f43db
Scott Taylor smtlaissezfaire Don't use alias_method (instead just use proxy methods) for Keys#[]
and Keys#attribute (this way plugins that override read_key don't
also have to override those methods)
71969bb