On 05/31/2011 06:35 AM, Emmanuel Gomez wrote:
On May 30, 2011, at 8:41 PM, kristian wrote:
On May 30, 8:53 pm, Emmanuel Gomez<[email protected]> wrote:
Along these same lines, check out solnic's virtus project, which seeks to bring
DM's property API (& validations) to Plain Old Ruby Objects
(non-persisted):https://github.com/solnic/virtus
cool, that is a missing piece I was kind of waiting for . . .
I don't know just how far along things are with Virtus; I hope I haven't
mis-stepped by drawing attention to it too early.
Regardless, I'm excited about it.
Virtus hasn't been released yet but I'm actively working on it. It'll be
used by DataMapper 2.0 so my motivation is rather big to make it
rock-solid :)
At the moment I'm working on dirty tracking. So far I only had a quick
code spike and got dead-simple tracking working but that's really
nothing final. I want to support cases like attributes that can be
altered via their own APIs (like Hash and [] method) which as you
probably know doesn't work in DM right now.
When this is done I'm gonna work on validations. I'm not sure if
validations will be part of Virtus or if I'll create virtus-validations
project. I'm leaning towards having everything in one place tho...Dirty
tracking and validations will be optional anyway, you require them only
if you need them and I believe all those extra features can be a part of
Virtus project.
If you have any suggestions regarding attribute API, dirty tracking,
validations etc. please let me know :)
Cheers!
# solnic
--
You received this message because you are subscribed to the Google Groups
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/datamapper?hl=en.