Sha256: 40f03f88fa9c56707fb28bb13642a4e577f1f1476ab0b4daf0a5f5dee35ae3b0
Contents?: true
Size: 1.45 KB
Versions: 3
Compression:
Stored size: 1.45 KB
Contents
== Changelog === 0.2.2 * async mode works again, but now you have to manually require: require "mongoo/async" Mongoo.conn = Mongo::Connection.new("localhost", 27017, :pool_size => 5, :timeout => 5) Mongoo.db_name = "mongoo-test" see test_async.rb for an example. === 0.2.1 * Identity Map now also stores results from find.to_a, find.each and find.next === 0.2.0 * Depends on mongo gem >= 1.3.1 * Can no longer set Mongoo.config = {...} Set Mongoo.conn and Mongoo.db_name instead (more flexibility): Mongoo.conn = Mongo::Connection.new("localhost", 27017, :pool_size => 5, :timeout => 5) Mongoo.db_name = "mongoo-test" You can set these on a model level as well: Person.conn = Mongo::Connection.new("localhost", 30000, :pool_size => 5, :timeout => 5) Person.db_name = "mongoo-test" * You can optionally set the collection name on a model now: class Person < Mongoo::Base collection_name "spacemen" end * There is a new Identity Map feature available. It will only work when using find_one to find a specific id. You need to manually turn it on: Mongoo::IdentityMap.on! If using it in a web application like Rails be sure to flush the map after each request: Mongoo::IdentityMap.flush! The map is scoped to the current thread or fiber. You can also turn the map back off: Mongoo::IdentityMap.off! Inspired by: http://railstips.org/blog/archives/2010/02/21/mongomapper-07-identity-map/
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongoo-0.2.4 | CHANGELOG |
mongoo-0.2.3 | CHANGELOG |
mongoo-0.2.2 | CHANGELOG |