candy 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,15 @@
2
2
 
3
3
  This document aims to provide only an overview. Further, we've only really been tracking things since **v0.2**. For obsessive detail, just check out the `git log`.
4
4
 
5
+ ## v0.2.4 - 2010-04-21 (the "No shortcuts!" release)
6
+
7
+ While building validations and custom behavior on a new app, I realized that any method overrides in my classes
8
+ were being bypassed if I passed the values in a hash to .new() -- it was just setting everything straight in Mongo.
9
+ Inconsistent behavior is uncool. So now every hash key calls the relevant assignment method in the class.
10
+
11
+ * Values passed in hash to new objects call the relevant assignment methods
12
+ * Fixed typo in README (thanks, kfl62)
13
+
5
14
  ## v0.2.3 - 2010-04-13 (the "around and around we go") release
6
15
 
7
16
  Turns out some Rails environments get really ornery if you introduce circular dependencies into your code. Like, say, requiring 'candy/hash' inside 'candy/piece' and 'candy/piece' inside 'candy/hash'. Who knew?
@@ -311,7 +311,7 @@ We have the usual array of stuff for your learning pleasure...
311
311
  * **Home page:** <http://github.com/SFEley/candy>
312
312
  * **Documentation:** <http://rdoc.info/projects/SFEley/candy>
313
313
  * **Report issues:** <http://github.com/SFEley/candy/issues>
314
- * **Discussion list:** <http://groups.google.com/groups/candy-users>
314
+ * **Discussion list:** <http://groups.google.com/group/candy-users>
315
315
 
316
316
  ## Contributing
317
317
 
@@ -329,5 +329,5 @@ This project is licensed under the [Don't Be a Dick License][6], version 0.1, an
329
329
  [2]: http://snippets.dzone.com/posts/show/7891
330
330
  [3]: http://www.mongodb.org/display/DOCS/findandmodify+Command
331
331
  [4]: http://rvm.beginrescueend.com/
332
- [5]: http://groups.google.com/groups/candy-users
332
+ [5]: http://groups.google.com/group/candy-users
333
333
  [6]: http://github.com/SFEley/candy/blob/master/LICENSE.markdown
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{candy}
8
- s.version = "0.2.3"
8
+ s.version = "0.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Stephen Eley"]
12
- s.date = %q{2010-04-13}
12
+ s.date = %q{2010-04-21}
13
13
  s.description = %q{Candy provides simple, transparent object persistence for the MongoDB database. Classes that
14
14
  include Candy modules save all properties to Mongo automatically, can be recursively embedded,
15
15
  and can retrieve records with chainable open-ended class methods, eliminating the need for
@@ -84,7 +84,7 @@ module Candy
84
84
  elsif data.delete(EMBED_KEY) # We're being embedded: take any data, but don't save to Mongo
85
85
  @__candy = data
86
86
  else
87
- set data # Insert the data we're given
87
+ data.each {|key, value| send("#{key}=", value)} # Assign all the data we're given
88
88
  end
89
89
  end
90
90
  super
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 3
9
- version: 0.2.3
8
+ - 4
9
+ version: 0.2.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Stephen Eley
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-13 00:00:00 -04:00
17
+ date: 2010-04-21 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency