2011-04-30 13:15:36 +02:00
# CouchRest Model Change History
2011-06-08 18:22:35 +02:00
## 1.1.0.rc - 2011-06-08
2011-05-19 00:08:58 +02:00
2011-05-21 14:16:39 +02:00
* New Features
* Properties with a nil value are now no longer sent to the database.
* Now possible to build new objects via CastedArray#build
2011-06-08 18:22:35 +02:00
* Implement #get ! and #find ! class methods
2011-05-21 14:16:39 +02:00
2011-05-19 00:08:58 +02:00
* Minor fixes
* #as_json now correctly uses ActiveSupports methods.
* Rails 3.1 support (Peter Williams)
* Initialization blocks when creating new models (Peter Williams)
* Removed railties dependency (DAddYE)
2011-05-19 00:37:17 +02:00
* DesignDoc cache refreshed if a database is deleted.
2011-05-20 02:15:18 +02:00
* Fixing dirty tracking on collection_of association.
2011-05-20 12:21:42 +02:00
* Uniqueness Validation views created on initialization, not on demand!
2011-06-05 11:21:01 +02:00
* #destroy freezes object instead of removing _id and _rev, better for callbacks (pointer by karmi)
* #destroyed ? method now available
2011-06-06 01:55:08 +02:00
* #reload no longer uses Hash#merge! which was causing issues with dirty tracking on casted models. (pointer by kostia)
2011-06-08 18:22:35 +02:00
* Non-property mass assignment on #new no longer possible without :directly_set_attributes option.
* Using CouchRest 1.1.0.pre3. (No more Hashes!)
2011-05-19 00:08:58 +02:00
2011-04-30 13:15:36 +02:00
## 1.1.0.beta5 - 2011-04-30
2011-04-30 00:34:12 +02:00
* Major changes:
* Database auto configuration, with connection options!
2011-04-30 13:13:38 +02:00
* Changed default CouchRest Model type to 'type' to be more consistent with ActiveRecord's reserverd words we're all used to (sorry for the change again!!)
* Minor changes
* Added filter option to designs (Used with CouchDB _changes feeds)
2011-04-30 00:34:12 +02:00
2011-04-30 13:15:36 +02:00
## 1.1.0.beta4
2011-04-14 00:19:10 +02:00
2011-04-18 22:29:25 +02:00
* Major changes:
2011-04-20 12:31:46 +02:00
* Fast Dirty Tracking! Many thanks to @sobakasu (Andrew Williams)
2011-04-18 22:29:25 +02:00
* Default CouchRest Model type field now set to 'model' instead of 'couchrest-type'.
2011-04-14 00:19:10 +02:00
* Minor enhancements:
* Adding "couchrest-hash" to Design Docs with aim to improve view update handling.
2011-04-17 02:46:33 +02:00
* Major changes to the way design document updates are handled internally.
* Added "auto_update_design_doc" configuration option.
2011-04-15 19:24:06 +02:00
* Using #descending on View object will automatically swap startkey with endkey.
2011-04-14 00:19:10 +02:00
2011-04-30 13:15:36 +02:00
## 1.1.0.beta3
2011-04-20 16:44:49 +02:00
* Removed
2011-04-30 13:15:36 +02:00
## 1.1.0.beta2
2011-04-01 19:45:13 +02:00
* Minor enhancements:
2011-04-08 15:42:30 +02:00
* Time handling improved in accordance with CouchRest 1.1.0. Always set to UTC.
2011-04-05 20:41:24 +02:00
* Refinements to associations and uniqueness validation for proxy (based on issue found by Gleb Kanterov)
2011-04-08 14:36:29 +02:00
* Added :allow_nil and :allow_blank options when creating a new view
* Unique Validation now supports scopes!
2011-04-08 22:34:25 +02:00
* Added support for #keys with list on Design View.
2011-04-01 19:45:13 +02:00
2011-04-30 13:15:36 +02:00
## 1.1.0.beta
2011-02-09 22:45:30 +01:00
* Epic enhancements:
* Added "View" object for dynamic view queries
* Added easy to use proxy_for and proxied_by class methods for proxying data
2011-02-05 22:38:22 +01:00
* Minor enhancements:
* A yield parameter in an anonymous casted model property block is no longer required (@samlown)
2011-03-13 19:34:25 +01:00
* Narrow the rescued exception to avoid catching class evaluation errors that has nothing to to with the association (thanks Simone Carletti)
* Fix validate uniqueness test that was never executed (thanks Simone Carletti)
* Adds a #reload method to reload document attributes (thanks Simone Carletti)
2011-03-13 19:53:52 +01:00
* Numeric types can be casted from strings with leading or trailing whitespace (thanks chrisdurtschi)
2011-03-13 19:34:25 +01:00
* CollectionProxy no longer provided by default with simple views (pending deprication)
2011-02-05 22:38:22 +01:00
2011-04-30 13:15:36 +02:00
## CouchRest Model 1.0.0
2010-09-05 20:06:44 +02:00
* Major enhancements
2010-09-17 23:00:55 +02:00
* Support for configuration module and "model_type_key" option for overriding model's type key
2010-09-18 15:19:15 +02:00
* Added "mass_assign_any_attribute" configuration option to allow setting anything via the attribute= method.
2010-09-05 20:06:44 +02:00
* Minor enhancements
* Fixing find("") issue (thanks epochwolf)
2010-10-22 15:42:48 +02:00
* Altered protected attributes so that hash provided to #attributes = is not modified
2010-10-23 20:59:24 +02:00
* Altering typecasting for floats to better handle commas and points
2010-12-02 01:53:45 +01:00
* Fixing the lame pagination bug where database url (and pass!!) were included in view requests (Thanks James Hayton)
2010-09-05 20:06:44 +02:00
2010-10-22 15:46:07 +02:00
Notes:
* 2010-10-22 @samlown:
* ActiveModel Attribute support was added but has now been removed due to major performance issues.
Until these have been resolved (if possible?!) they should not be included. See the
'active_model_attrs' if you'd like to test.
2011-04-30 13:15:36 +02:00
## CouchRest Model 1.0.0.beta8
2010-01-30 01:20:39 +01:00
2010-03-31 01:33:17 +02:00
* Major enhancements
2010-08-24 11:45:37 +02:00
* Added model generator
2010-03-31 01:33:17 +02:00
2010-03-31 02:25:23 +02:00
* Minor enhancements
2010-08-11 17:41:58 +02:00
* Raise error on adding objects to "collection_of" without an id
2010-08-12 00:41:32 +02:00
* Allow mixing of protected and accessible properties. Any unspecified properties are now assumed to be protected by default
2010-08-18 19:36:01 +02:00
* Parsing times without zone
* Using latest rspec (2.0.0.beta.19)
2010-03-31 02:25:23 +02:00
2011-04-30 13:15:36 +02:00
## CouchRest Model 1.0.0.beta7
2010-06-20 22:01:11 +02:00
* Major enhancements
* Renamed ExtendedDocument to CouchRest::Model
2010-08-12 00:41:32 +02:00
* Added initial support for simple belongs_to associations
2010-06-20 22:01:11 +02:00
* Added support for basic collection_of association (unique to document databases!)
* Moved Validation to ActiveModel
* Moved Callbacks to ActiveModel
* Removed support for properties defined using a string for the type instead of a class
2010-06-21 14:18:05 +02:00
* Validation always included
2010-06-21 21:36:28 +02:00
* Uniqueness validation now available
2010-06-20 22:01:11 +02:00
2010-06-23 11:58:35 +02:00
* Minor enhancements
* Removed support for auto_validate! and :length on properties
2010-06-20 22:01:11 +02:00
2011-04-30 13:15:36 +02:00
## 1.0.0.beta6
2010-06-15 01:26:23 +02:00
2010-06-20 22:01:11 +02:00
* Major enhancements
* Added support for anonymous CastedModels defined in Documents
2010-06-15 01:26:23 +02:00
* Minor enhancements
* Added 'find_by_*' alias for finding first item in view with matching key.
2010-06-16 22:02:12 +02:00
* Fixed issue with active_support in Rails3 and text in README for JSON.
* Refactoring of properties, added read_attribute and write_attribute methods.
2010-06-16 22:15:39 +02:00
* Now possible to send anything to update_attribtues method. Invalid or readonly attributes will be ignored.
2010-06-17 02:39:09 +02:00
* Attributes with arrays are *always* instantiated as a CastedArray.
2010-06-18 01:24:49 +02:00
* Setting a property of type Array (or keyed hash) must be an array or an error will be raised.
* Now possible to set Array attribute from hash where keys determine order.
2010-06-16 22:02:12 +02:00
2011-04-30 13:15:36 +02:00
## 1.0.0.beta5
2010-06-07 14:04:43 +02:00
* Minor enhancements
* Added 'find' alias for 'get' for easier rails transition
2011-04-30 13:15:36 +02:00
## 1.0.0.beta3
2010-05-12 23:43:17 +02:00
* Minor enhancements
* Removed Validation by default, requires too many structure changes (FAIL)
* Added support for instantiation of documents read from database as couchrest-type provided (Sam Lown)
* Improved attachment handling for detecting file type (Sam Lown)
* Removing some monkey patches and relying on active_support for constantize and humanize (Sam Lown)
2010-05-13 00:17:30 +02:00
* Added support for setting type directly on property (Sam Lown)
2010-05-12 23:43:17 +02:00
2011-04-30 13:15:36 +02:00
## 1.0.0.beta2
2010-05-11 16:27:06 +02:00
* Minor enhancements
* Enable Validation by default and refactored location (Sam Lown)
2011-04-30 13:15:36 +02:00
## 1.0.0.beta
2010-05-10 21:19:24 +02:00
* Major enhancements
* Separated ExtendedDocument from main CouchRest gem (Sam Lown)
2010-05-12 23:43:17 +02:00
* Minor enhancements
* active_support included by default
2011-04-30 13:15:36 +02:00
## 0.37
2010-03-31 02:25:23 +02:00
2010-03-31 01:33:17 +02:00
* Minor enhancements
2010-03-31 02:00:20 +02:00
* Added gemspec (needed for Bundler install) (Tapajós)
2010-03-31 01:33:17 +02:00
2011-04-30 13:15:36 +02:00
## 0.36
2010-03-31 01:33:17 +02:00
2010-02-28 01:38:20 +01:00
* Major enhancements
2010-03-11 02:05:24 +01:00
* Adds support for continuous replication (sauy7)
2010-03-16 01:12:38 +01:00
* Automatic Type Casting (Alexander Uvarov, Sam Lown, Tim Heighes, Will Leinweber)
2010-03-31 01:33:17 +02:00
* Added a search method to CouchRest:Database to search the documents in a given database. (Dave Farkas, Arnaud Berthomier, John Wood)
2010-08-12 00:41:32 +02:00
2010-02-28 01:38:20 +01:00
* Minor enhancements
2010-03-16 01:19:27 +01:00
* Provide a description of the timeout error (John Wood)
2010-02-28 01:38:20 +01:00
2011-04-30 13:15:36 +02:00
## 0.35
2010-02-28 01:38:20 +01:00
2010-01-30 01:20:39 +01:00
* Major enhancements
2010-02-27 01:39:09 +01:00
* CouchRest::ExtendedDocument allow chaining the inherit class callback (Kenneth Kalmer) - http://github.com/couchrest/couchrest/issues#issue/8
2010-01-30 01:20:39 +01:00
* Minor enhancements
* Fix attachment bug (Johannes Jörg Schmidt)
2010-02-03 17:10:31 +01:00
* Fix create database exception bug (Damien Mathieu)
2010-02-23 23:22:51 +01:00
* Compatible with restclient >= 1.4.0 new responses (Julien Kirch)
2010-02-27 00:27:24 +01:00
* Bug fix: Attribute protection no longer strips attributes coming from the database (Will Leinweber)
2010-02-27 01:02:18 +01:00
* Bug fix: Remove double CGI escape when PUTting an attachment (nzoschke)
2010-02-27 22:43:53 +01:00
* Bug fix: Changing Class proxy to set database on result sets (Peter Gumeson)
2010-02-27 22:47:42 +01:00
* Bug fix: Updated time regexp (Nolan Darilek)
2010-02-27 22:59:23 +01:00
* Added an update_doc method to database to handle conflicts during atomic updates. (Pierre Larochelle)
2010-02-28 01:38:20 +01:00
* Bug fix: http://github.com/couchrest/couchrest/issues/#issue/2 (Luke Burton)
2010-01-30 01:20:39 +01:00
2011-04-30 13:15:36 +02:00
## 0.34
2010-01-14 00:19:03 +01:00
* Major enhancements
* Added support for https database URIs. (Mathias Meyer)
* Changing some validations to be compatible with activemodel. (Marcos Tapajós)
* Adds attribute protection to properties. (Will Leinweber)
* Improved CouchRest::Database#save_doc, added "batch" mode to significantly speed up saves at cost of lower durability gurantees. (Igal Koshevoy)
* Added CouchRest::Database#bulk_save_doc and #batch_save_doc as human-friendlier wrappers around #save_doc . (Igal Koshevoy)
2010-08-12 00:41:32 +02:00
* Minor enhancements
2010-01-14 00:19:03 +01:00
* Fix content_type handling for attachments
* Fixed a bug in the pagination code that caused it to paginate over records outside of the scope of the view parameters.(John Wood)
* Removed amount_pages calculation for the pagination collection, since it cannot be reliably calculated without a view.(John Wood)
* Bug fix: http://github.com/couchrest/couchrest/issues/#issue/2 (Luke Burton)
* Bug fix: http://github.com/couchrest/couchrest/issues/#issue/1 (Marcos Tapajós)
* Removed the Database class deprecation notices (Matt Aimonetti)
* Adding support to :cast_as => 'Date'. (Marcos Tapajós)
* Improve documentation (Marcos Tapajós)
* Streamer fixes (Julien Sanchez)
* Fix Save on Document & ExtendedDocument crashed if bulk (Julien Sanchez)
* Fix Initialization of ExtendentDocument model shouldn't failed on a nil value in argument (deepj)
2010-01-14 00:48:15 +01:00
* Change to use Jeweler and Gemcutter (Marcos Tapajós)
2010-01-14 00:19:03 +01:00
2011-04-30 13:15:36 +02:00
## 0.33
2009-07-27 09:17:34 +02:00
* Major enhancements
* Added a new Rack logger middleware letting you log/save requests/queries (Matt Aimonetti)
2010-08-12 00:41:32 +02:00
* Minor enhancements
2009-08-03 21:23:13 +02:00
* Added #amount_pages to a paginated result array (Matt Aimonetti)
* Ruby 1.9.2 compatible (Matt Aimonetti)
* Added a property? method for property cast as :boolean (John Wood)
2009-07-30 05:16:59 +02:00
* Added an option to force the deletion of a attachments (bypass 409s) (Matt Aimonetti)
* Created a new abstraction layer for the REST API (Matt Aimonetti)
2009-07-27 09:17:34 +02:00
* Bug fix: made ExtendedDocument#all compatible with Couch 0.10 (tc)
2011-04-30 13:15:36 +02:00
## 0.32
2010-08-12 00:41:32 +02:00
2009-07-23 01:06:24 +02:00
* Major enhancements
* ExtendedDocument.get doesn't raise an exception anymore. If no documents are found nil is returned.
* ExtendedDocument.get! works the say #get used to work and will raise an exception if a document isn't found.
2010-08-12 00:41:32 +02:00
* Minor enhancements
2009-07-23 01:06:24 +02:00
* Bug fix: Model.all(:keys => [1,2]) was not working (Matt Aimonetti)
2009-07-22 08:38:50 +02:00
* Added ValidationErrors#count in order to play nicely with Rails (Peter Wagenet)
2009-07-22 08:06:35 +02:00
* Bug fix: class proxy design doc refresh (Daniel Kirsh)
* Bug fix: the count method on the proxy collection was missing (Daniel Kirsch)
2009-07-21 00:52:14 +02:00
* Added #amount_pages to a paginated collection. (Matt Aimonetti)
2011-04-30 13:15:36 +02:00
## 0.31
2009-07-17 04:52:53 +02:00
* Major enhancements
* Created an abstraction HTTP layer to support different http adapters (Matt Aimonetti)
2009-07-17 09:12:33 +02:00
* Added ExtendedDocument.create({}) and #create !({}) so you don't have to do Model.new.create (Matt Aimonetti)
2010-08-12 00:41:32 +02:00
2009-07-17 04:52:53 +02:00
* Minor enhancements
2010-08-12 00:41:32 +02:00
2009-07-17 19:53:00 +02:00
* Added an init.rb file for easy usage as a Rails plugin (Aaron Quint)
* Bug fix: pagination shouldn't die on empty results (Arnaud Berthomier)
2009-07-17 09:12:33 +02:00
* Optimized ExtendedDocument.count to run about 3x faster (Matt Aimonetti)
2009-07-17 04:52:53 +02:00
* Added Float casting (Ryan Felton & Matt Aimonetti)
2011-04-30 13:15:36 +02:00
## 0.30
2010-08-12 00:41:32 +02:00
2009-07-08 20:54:06 +02:00
* Major enhancements
2010-08-12 00:41:32 +02:00
2009-07-08 20:54:06 +02:00
* Added support for pagination (John Wood)
* Improved performance when initializing documents with timestamps (Matt Aimonetti)
2010-08-12 00:41:32 +02:00
2009-07-08 20:54:06 +02:00
* Minor enhancements
2010-08-12 00:41:32 +02:00
2009-07-08 20:54:06 +02:00
* Extended the API to retrieve an attachment URI (Matt Aimonetti)
* Bug fix: default value should be able to be set as false (Alexander Uvarov)
* Bug fix: validates_is_numeric should be able to properly validate a Float instance (Rob Kaufman)
* Bug fix: fixed the Timeout implementation (Seth Falcon)
2010-08-12 00:41:32 +02:00
2009-07-08 20:54:06 +02:00
---
Unfortunately, before 0.30 we did not keep a track of the modifications made to CouchRest.
2010-02-23 23:22:51 +01:00
You can see the full commit history on GitHub: http://github.com/couchrest/couchrest/commits/master/