Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 234 lines (168 sloc) 9.472 kB
4b889de @langalex added ghost attributes, meaning you can read access attributes that a…
authored
1 ## Changes
2
46f4144 @langalex Adds support for passing the model to blocks for computing the defaul…
authored
3 ### 1.4.0
4
5 * Added support for passing the model to blocks for computing the default value of a property (Alexander Lang)
6
a85ba48 @langalex bumps version
authored
7 ### 1.3.0
8
9 * Add support for built-in couchdb reduce functions in map reduce specs (Andy Morris)
10 * Make specs handle CommonJS modules via module.exports as well as exports (Andy Morris)
11 * Changed #attributes to return a HashWithIndifferentAccess (Owen Davies)
12
2ee5239 @langalex bumps version
authored
13 ### 1.2.0
14
15 * adds optional deep dirty tracking (andymorris)
16 * fixes an exception when deleting an already deleted document (Alexander Lang)
17
5bb1ab7 @langalex bumps version
authored
18 ### 1.1.4
19
20 * Removes the dependency to json/add/core (cstettner)
21
7c47ff8 @langalex adds 1.1.3 changes
authored
22 ### 1.1.3
23
24 * removes check if database exists to avoid lots of additional requests (Alexander Lang)
25
9b490db @langalex fixes child classes were not included in
authored
26 ### 1.1.2
27
28 * fixes `CouchPotato.models` did not include subclasses
459f511 @langalex adds changes for 1.1.1
authored
29 * adds `CouchPotato.use` (Daniel Lohse)
30 * fixes MapReduceToMatcher when reduce uses `sum` (Daniel Lohse)
31 * adds `CouchPotato::Config.database_host` for using multiple databases in a project (Daniel Lohse)
32 * makes `cast_native` cast floats with no leading digits (wrshawn)
9b490db @langalex fixes child classes were not included in
authored
33
6928edf @langalex fixes properties are leaked to sibling classes
authored
34 ### 1.1.1
35
36 * fixes properties were leaked to sibling classes (Alexander Lang)
37
53783c2 @langalex bumps version
authored
38 ### 1.1.0
39
40 * adds conflict handling for Database#save/destroy (Alexander Lang)
41
84d617a @langalex bumps version
authored
42 ### 1.0.1
43
44 * fixes error when bulk loaded document does not respond to database= (Alexander Lang)
45
48fb263 @langalex updates changes for 1.0
authored
46 ### 1.0.0
2e6c3b3 @langalex adds reload method
authored
47
48 * adds `reload` method (Alexander Lang)
7da4523 @langalex removes total_rows from database results
authored
49 * removes `total_rows` from database results (Alexander Lang)
71a79b4 @langalex documents new == implementation
authored
50 * changes `==` to use ids instead of comparing all attributes (orders of magnitude faster) ([Jochen Kramer](https://github.com/freetwix))
48fb263 @langalex updates changes for 1.0
authored
51 * fixes decoding JSON objects for newer versions of the JSON gem (Alexander Lang)
52 * adds support for testing map/reduce/rereduce (Andy Morris)
53 * fixes serializing dates in map/reduce specs (Andy Morris)
54 * adds support for Rails4 forbidden attributes protection (Alexander Lang)
55 * adds Rails4, drops 3.0/3.1 support (Alexander Lang)
56 * adds property default values returned by Procs (Andy Morris)
57 * adds suppot for BigDecimal properties (Fredrik Rubensson)
6b9c055 @langalex mentions Ruby 2.0 support
authored
58 * adds support for 2.0, Rubinius, 1.9.3, drops Ruby 1.8, 1.9.2
2e6c3b3 @langalex adds reload method
authored
59
520148d @langalex bumps version
authored
60 ### 0.7.1
61
62 * fixes a bug when trying to bulk-load non-existant documents
63
d66fec5 @langalex document changes for upcoming 0.7.0
authored
64 ### 0.7.0
65
66 * ActiveSupport/Rails 3.2 compatibility (Alexander Lang)
67 * removed Object#try, String#blank? as they are part of ActiveSupport - ActiveSupport's try behaves differently than the couch potato implementation so this change might break your app (now calling a non-existant method on a non-nil raises a NoMethodError, before it did not) (Alexander Lang)
68 * bulk document loading (Matthias Jakel)
69 * multi db support (Peter Schröder)
70 * hash-style access to attributes (Peter Schröder)
71 * support for properties of type Array, e.g. :type => [User] (Peter Schröder)
72 * improve compatibility with state_machine (Alexander Lang)
73 * allow false as default value for properties (Matthias Jakel)
74 * support for Erlang views (Alexander Lang)
aa743e7 @langalex only configure database in rails if couchdb.yml exists
authored
75 * don't crash, only warn if couchdb.yml is missing (Alexander Lang)
76 * use the therubyracer gem to run view specs instead of relying on a `js` executable (Alexander Lang)
d66fec5 @langalex document changes for upcoming 0.7.0
authored
77
4878636 @langalex bump version
authored
78 ### 0.6.0
79
80 * ActiveSupport/Rails 3.1 compatibility (Maximilian Mack)
81 * fix no such file to load with json/add/rails (Simone Carletti)
82
28bf955 @langalex version bump
authored
83 ### 0.5.7
84
85 * support CouchPotato::Database#first/#first! calls when using `stub_db` from tests (langalex)
86 * support RSpec2 block syntax in `stub_db` (langalex)
87
7d367d1 @langalex remove stale it it's nil
authored
88 ### 0.5.6
89
90 * remove the stale parameter from a view query if it's nil, as couchdb only allows stale to be ok or update\_after (langalex)
91
5ee22ae @langalex changes for 0.5.5
authored
92 ### 0.5.5
93
94 * support for split_design_documents_per_view (jweiss)
95 * errors now returns a Hash instead of an Array (bterkuile)
96 * support passing in list names as symbols in view specs (langalex)
97
b2ecfe6 @langalex bumped version
authored
98 ### 0.5.4
99 * cast 'false' to false for boolean properties (langalex)
100
fc61f26 @langalex version bump, updated changelog
authored
101 ### 0.5.3
102 * added CouchPotato::Database.load! (langalex)
103
612c8f3 @langalex updated changelog
authored
104 ### 0.5.2
fc61f26 @langalex version bump, updated changelog
authored
105 * added CouchPotato::Database#first and #first! methods (langalex)
106 * added workaround for BigCouch/Cloudant to not add null reduce functions to views (langalex)
107 * don't add _attachments if there are none (langalex)
612c8f3 @langalex updated changelog
authored
108
109 ### 0.5.1
110 * fixed issues with tzinfo gem (Bernd Ahlers)
111
669f903 @langalex bumped version to 0.5.0
authored
112 ### 0.5.0
fc61f26 @langalex version bump, updated changelog
authored
113 * time zone support (Time properties are now converted to current Time.zone) (langalex)
114 * lazy property initialization (performance!) (langalex)
115 * active_model is now the default validation framework (langalex)
669f903 @langalex bumped version to 0.5.0
authored
116
c118ea7 @langalex changes for 0.3.1 to 0.4.0
authored
117 ### 0.4.0
118 * ruby 1.9.2 compatibility (langalex)
119 * couch potato objects now behave correctly when used as keys in Hashes (langalex)
120 * use as\_json instead of to\_s(:json), which is the rails way
121 * use ActiveModel dirty tracking (langalex) - this means no more "deep tracking", e.g. `user.tags << 'new_tag'; user.dirty? # false`
122
123 ### 0.3.2
124 * support yielding to blocks on #initialize (martinrehfeld)
125 * support for negative numbers in Fixnum/Float properties (langalex)
126
127 ### 0.3.1
128 * ActiveModel callbacks (kazjote)
129 * do not use Rails.env in initializer as it will free Rails.env for all times and in Rails 2.3.x apps it will be called too early thus always beeing development (jweiss)
130 * ruby 1.9.2 compatibility (langalex)
131 * can configure validation framework in couchdb.yml, process couchdb.yml with erb (langalex)
132
d0c4aff @langalex support for lists
authored
133 ### 0.3.0
134 * support for lists (langalex)
135
521cffe @langalex 0.2.32
authored
136 ### 0.2.32
137 * added persisted? and to_key for proper ActiveModel compliance (thilo)
138 * id setter (jhohertz-work)
139 * load document ids if include\_documents is false (jweiss)
140 * persist given created\_at/updated\_at instead of Time.now (langalex)
141
df846f6 @langalex updated changes for 0.2.31
authored
142 ### 0.2.31
143 * Removed requirement for validatable gem. Allows for using more uptodate versions of the library, or doesn't install it when you're using ActiveModel. (mattmatt)
144 * fixed callbacks of super classes were not run (langalex)
145
feb03ef @langalex updated changes for 0.2.30
authored
146 ### 0.2.30
2f15596 @langalex pass multile keys when querying a view
authored
147 * pass in multiple keys when querying a view (langalex)
148
149 ### 0.2.29
58baa09 @langalex fixed (re)reduce for property views wasn't working
authored
150 * nicer inspect() for models (mattmatt)
151 * fixed (re)reduce for property views wasn't working (langalex)
152
fce907d @langalex updated changes for 0.2.28
authored
153 ### 0.2.28
154 * fixed reloading nested classes (langalex)
155 * fixed constant missing error when loading models with uninitialized classes via views (langalex)
156 * added rspec helpers for stubbing out views (langalex)
cae9063 @langalex updated changes
authored
157 * fixed design document names for nested model classes (svenfuchs)
fce907d @langalex updated changes for 0.2.28
authored
158
e02f878 @langalex moved bundler workaround to correct version
authored
159 ### 0.2.27
160 * workaround for Rails apps using bundler: database name was not initialized from couchdb.yml (langalex)
161
023660f @langalex updated changes
authored
162 ### 0.2.26
a6f19e3 @langalex added to_s(:json) to Date and Time to be able to get properly formatt…
authored
163 * added to_s(:json) to Date and Time to be able to get properly formatted dates/times for searching with dates/times (langalex)
e02f878 @langalex moved bundler workaround to correct version
authored
164 * all times are now stored as UTC (langalex)
a5724a9 @langalex workaround for Rails apps using bundler: database name was not initia…
authored
165 * added support for Float attributes (arbovm)
e02f878 @langalex moved bundler workaround to correct version
authored
166
a6f19e3 @langalex added to_s(:json) to Date and Time to be able to get properly formatt…
authored
167
78cd629 @langalex added specs to make sure we can persist date properties, when setting…
authored
168 ### 0.2.25
169 * automatic view updates: when you change the definition of a view couch potato will now update the design document in the database (langalex)
170 * support for properties of type Date, better support for Time (langalex)
171 * support for default reduce count methods in custom views (jweiss)
172
c1099a6 @langalex updated changes for 0.2.24
authored
173 ### 0.2.24
5d2cd5f @langalex mark object as dirty with #is_dirty
authored
174 * persistent instances can now be marked as dirty with #is_dirty (langalex)
175
91bc8b0 @langalex updated changes for 0.2.23
authored
176 ### 0.2.23
52bfe16 @langalex conform to ActiveModel if installed
authored
177 * Couch Potato models now conform to the ActiveModel interface when ActiveModel is installed, see http://yehudakatz.com/2010/01/10/activemodel-make-any-ruby-object-feel-like-activerecord/ (langalex)
7e73aca @langalex added latest change
authored
178 * fixed error with dirty tracking and BigDecimals (thilo)
7fcc422 @langalex documented new configuration to choose validation framework
authored
179 * added the ability to use ActiveModel validations instead of validatable (martinrehfeld)
52bfe16 @langalex conform to ActiveModel if installed
authored
180
c3bcace @langalex fixed properties with default values returned default when a blank va…
authored
181 ### 0.2.22
182 * fixed properties with default values returned default when a blank value like '' or [] was set (langalex)
183
49b4fbd @langalex updated changes for 0.2.21
authored
184 ### 0.2.21
27d63e8 @langalex automatically set a database instance on results of CouchPotato::Data…
authored
185 * automatically set a database instance on results of CouchPotato::Database#view (langalex)
03d0cca @langalex improved auto loading of unloaded constants - can now load constants …
authored
186 * improved auto loading of unloaded constants - can now load constants that have never been loaded before (langalex)
aaf3e24 @langalex raise exception on invalid parameters passed to a couchdb view query
authored
187 * raise exception on invalid parameters passed to a couchdb view query (langalex)
4878636 @langalex bump version
authored
188 * when querying a view: pass in ranges as key instead of startkey/endkey, pass in plain value instead of hash with key (langalex)
27d63e8 @langalex automatically set a database instance on results of CouchPotato::Data…
authored
189
4838d08 @langalex added 0.2.20
authored
190 ### 0.2.20
89eed9a @langalex updated changes, readme with boolean properties support
authored
191 * support for :boolean properties (jweiss)
11c4bc2 @langalex return the total_rows when querying a view
authored
192 * return the total_rows when querying a view (langalex)
89eed9a @langalex updated changes, readme with boolean properties support
authored
193
e032efe @langalex added conditions to views
authored
194 ### 0.2.19
195 * added conditions to views (langalex)
196
60f829e @langalex set fixnum property to nil if given a blank string
authored
197 ### 0.2.18
198 * set Fixnum property to nil when given a blank string (langalex)
199
83d8907 @langalex support for properties of type Fixnum
authored
200 ### 0.2.17
201 * fixed nil attributes were omitted in json (jweiss, mattmatt)
202 * support for properties of type Fixnum (langalex)
203
942cf79 @langalex fixed problem with classes being not loaded in rails development mode
authored
204 ### 0.2.16
205 * fixed problem with classes being not loaded in rails development mode (langalex)
0f30c22 @langalex fixed specs for ruby 1.9
authored
206 * fixed persist boolean false value (bernd)
942cf79 @langalex fixed problem with classes being not loaded in rails development mode
authored
207
f949948 use JSON.create_id so we can change the attribute that stores the mod…
Lennart Melzer authored
208 ### 0.2.15
209 * ability to change the name of the attribute that stores the ruby class in the documents by setting JSON.create_id (lennart)
c01b077 @langalex fixed issue with setting attachments
authored
210 * fixed double loading issue with bundler (jweiss)
211 * fixed an issue with setting attachments (endor)
f949948 use JSON.create_id so we can change the attribute that stores the mod…
Lennart Melzer authored
212
a13258e @langalex added specs to verify deserializing nested objects (thanks to hagenbu…
authored
213 ### 0.2.13
214
215 * support adding errors in before_validation callbacks (mattmatt)
216 * support for inheritance (mattmatt)
217 * support for save without validations (mattmatt)
218 * improved (de)serialization now supports deserializing nested objects (railsbros, specs by hagenburger)
d0fd1ef @langalex added support for unit testing map/reduce functions in views
authored
219 * RSpec matchers for testing map/reduce functions (langalex)
a13258e @langalex added specs to verify deserializing nested objects (thanks to hagenbu…
authored
220
719be30 @langalex 0.2.10 changes
authored
221 ### 0.2.10
222 * fixed bug with hardcoded timezone
223
4b889de @langalex added ghost attributes, meaning you can read access attributes that a…
authored
224 ### 0.2.9
225
226 * allow to overwrite attribute accessor of properties and use super to call the original accessors
90afe27 @langalex fixed type
authored
227 * allow read access to attributes that are present in the Couchdb document but not defined as properties
4b889de @langalex added ghost attributes, meaning you can read access attributes that a…
authored
228 * support default values for properties via the :default parameter
229 * support attachments via the _attachments property
230 * support for namespaces models
3cbd203 @langalex simplified database configuration by removing the database_server option
authored
231 * removed belongs_to macro for now
90b47ef @langalex is again ruby 1.9 compatible
authored
232 * removed CouchPotato::Config.database_server, just set CouchPotato::Config.database_name to the full url if you are not using localhost:5984
4878636 @langalex bump version
authored
233 * Ruby 1.9 was broken and is now working again
Something went wrong with that request. Please try again.