I will do my best to keep this up to date with significant changes here, starting in 0.8.3.
- Added instrumentation and log subscriber
- Removed Toy.logger, Toy.logger? and Toy.logger=. All logging is now through log_subscriber. See the README.
- No longer defaulting uuid to new instance, use :default instead. This allows for nil values for attributes of uuid type.
- No longer persisting nil attributes
- Added Toy::Types::JSON for storing serialized JSON as an attribute value
- Added #persisted_id and made it public so people can override confidently. It is now used in adapter.write and adapter.delete.
- Made #persist method public so people can override confidently.
- Moved Identity to Toy::Store from Toy::Object
- Update to adapter 0.7.0
- Removed .get_multi
- Change read multiple methods to take array with options.
- Allow passing options to read methods
- Added rails model/scaffold generators
- Delegate #to_key to key factory. Allows non-Stringish ids to work with to_key.
- Removed plugins
- Removed Toy.clear and Toy.reset
- Ruby 1.9 only. Officially not supporting Ruby 1.8.x.
- Added :native_uuid key factory for using when your data store supports them.
- Aliased .find and .read to .get.
- Aliased .find_multiple and .read_multiple to .get_multiple.
- Added get_multiple which returns Hash of id pointed at instance.
- Aliased get_multi to get_multiple which means it now returns Hash instead of Array.
- Updated to latest version of adapter.
- Support for ActiveSupport/ActiveModel 3.2.*
- More liberal uuid gem dependency version
- Allow changing list attribute type
- No longer include id in
persisted_attributes
- Allow overriding
persist
safely - Choose accessor over
write_attribute
forattributes=
- Reference proxy api changes thanks to jakehow
- Support for inheritance
- Pass model class to callable default
- Added #hash
- Added pretty inspect for classes
- Always show id first in #inspect
- Moved object serialization into Toy::Object
- Changed from
store
toadapter
- Embedded objects were removed
- Defaulted
adapter
to memory and removedhas_adapter?
- Introduced Toy::Object.
- Default Identity Map to off
- Removed several class methods related to identity map as well (identity_map_on/off/on?/off?/etc)