Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > [ANN] doodle 0.1.9 Released

Thread Tools

[ANN] doodle 0.1.9 Released

Sean O'Halpin
Posts: n/a
doodle version 0.1.9 has been released.

* <>

Doodle is a gem for simplifying the definition of Ruby classes by
making attributes and their properties more declarative. Doodle is
eco-friendly: it does not globally modify Object, Class or Module.


## 0.1.9 / 2008-08-13
- Features:
- to_hash
- doodle do .. end blocks now support #has, #from, #must and
- will now initialize a setter from a block by calling if
kind is specified and kind is a Doodle or a Proc, e.g.

class Animal
has :species

class Barn
has :animals, :collect => Animal

class Farm
has Barn

farm = Farm do
# this is new - will call
barn do
animal 'chicken'
animal 'pig'

Will not try this for an attribute with :abstract => true

- attributes now have :doc option
- attributes now have :abstract option - will not try to
auto-instantiate an object from this class
- attributes now have a :readonly attribute - will not allow setting
outside initialization
- Doodle::Utils
- deep_copy(obj)
- normalize_keys!(hash, recursive = false, method = :to_sym),
optionally recurse into child hashes
- symbolize_keys!(hash, recursive = false)
- stringify_keys!(hash, recursive = false)

- Experimental:
- Doodle::App for handlng command line application options
- doodle/datatypes - added more datatypes

- Bug fixes:
- fixed reversion in 0.1.8 which enabled full backtrace from within
- fixed bug where required attributes defined after attributes with
default values were not being validated (had 'break' instead of 'next')

* <>

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[ANN] doodle 0.1.4 Released Sean O'Halpin Ruby 0 05-05-2008 11:29 PM
[ANN] doodle 0.1.1 Released Sean O'Halpin Ruby 0 04-28-2008 11:03 PM
Subject: [ANN] doodle 0.1.0 Released Sean O'Halpin Ruby 0 04-26-2008 08:55 PM
[ANN] doodle version 0.0.10 released Sean O'Halpin Ruby 0 04-13-2008 10:38 AM
[ANN] doodle-0.0.9 released Sean O'Halpin Ruby 2 04-13-2008 01:42 AM