ANN: Aquarium V0.3.0 released

Posted by Dean Wampler Mon, 21 Jan 2008 19:38:00 GMT

I released V0.3.0 of Aquarium today. The most visible change is a new set of synonyms for many of the parameters passed to API methods, providing a more “English-like” feel. For example, previously, you might declare an aspect like this:

around :methods => :all, :types => [Foo, Bar], :advice => advice_proc

Now you can write the same aspect as follows:

around :calls_to => :all_methods, :within_types => [Foo, Bar], :use_advice => advice_proc

which reads more like English.

Similarly, attribute matching is simpler.

after :attribute => name, :attribute_options => [:readers], :objects => [foo, bar] ...

becomes

after :reading => name, :on_objects => [foo, bar] ...

There are many internal improvements to improve DRY’ness, robustness, and performance.

There should be no upgrade issues, so give it a try!

Posted in ,  | no comments

Comments

(leave url/email »)

   Preview comment